Tools.GamesLoop Logo
TOOLS.GAMESLOOP160+ Free Online Tools

URL Encoder

Percent-encode text for safe use in URLs and query strings.

URL Encoder

Developer tool running locally in browser

Advertisement
Ad Space (auto) — Configurable via NEXT_PUBLIC_ADSENSE_CLIENT

What does URL Encoder do?

Encode text for use in a URL, with a choice between encoding a full URL and encoding a single component. Getting that distinction right is the difference between a working link and a broken one.

How to Use URL Encoder

  1. 1
    Enter your textA value, a query string or a whole URL.
  2. 2
    Pick the modeComponent for a single value, full URL to keep slashes.
  3. 3
    Copy the encoded textReady to paste into a link.

Key Features

  • Component mode for query values, and full-URL mode that keeps structure intact
  • UTF-8 encoding so any language works
  • Optional space-as-plus for form-encoded data
  • Highlights which characters were changed
  • Batch mode for a list of values

Frequently Asked Questions

What is the difference between the two modes?

Component mode encodes everything unsafe including / ? & = #, which is right for a single query value. Full-URL mode leaves those structural characters alone so the URL still works.

Why does a space become %20?

Because spaces are not allowed in a URL. %20 is the standard percent-encoded form. Form submissions historically use + instead, which is why both options exist.

How are non-English characters encoded?

They are converted to UTF-8 bytes first, then each byte is percent-encoded. The character é becomes %C3%A9 — two bytes, two escapes.

When must I encode an ampersand?

Whenever it is part of a value rather than a separator. A search for "Marks & Spencer" must send %26, or everything after the ampersand is read as a new parameter.