URL encoder and decoder

Percent-encode or decode URLs and query parameters, and see a link's parameters as a table. Handles Hindi and emoji. Runs in your browser.

Runs in your browser. Nothing you paste is uploaded.

Query parameters
NameValue
qphoto size 20 KB
langhi

How to use it

  1. Choose Encode or Decode.
  2. Paste the text, URL or query string.
  3. When encoding, keep Whole URL off to encode a single value (like a search term) or turn it on to keep :, /, ? and & in a full link.
  4. Copy the result; if the input is a link, its query parameters are also listed in a table.

Why URLs need encoding

URLs may only contain a limited set of characters. Spaces, &, =, ?, # and non-English letters inside a value must be written as % codes, otherwise the browser or server misreads where one parameter ends and the next begins. A space becomes %20, & becomes %26, and the Hindi word नमस्ते becomes a run of %E0%A4… codes representing its UTF-8 bytes.

Encode a single value with the default mode, which works like JavaScript's encodeURIComponent and escapes everything except letters, digits and - _ . ! ~ * ' ( ). Use Whole URL, like encodeURI, only for a complete link whose structure must stay intact.

Decoding links

Tracking links, redirects and API logs are often full of %2F and %3D. Decoding them shows what they really point to; the parameter table makes long links with many parameters easy to read. In query strings, + traditionally means a space, so that option is on by default when decoding.

Questions

What is the difference between %20 and +?
Both can mean a space in a query string. %20 works everywhere in a URL; + only means a space in the query part.
Why does decoding fail?
The text contains a broken % sequence, for example a % that isn't followed by two hex digits, or half of a multi-byte character.
Should I encode the whole URL or just the values?
Encode each value before putting it into the URL. Encoding a finished URL can double-encode parts of it.
Is what I paste sent to a server?
No. The tool runs as JavaScript in your browser. Your text, files and keys stay on your device, so it is safe to use with internal data, tokens and customer records. It keeps working offline after the page has loaded once.

More free tools