How to use it
- Choose a direction
Decode makes a link readable; Encode makes text safe for a link.
- Pick the mode
Use "Parameter value" for parts of a link, "Whole URL" for a full address.
- Copy the result
When decoding a link, every query parameter is listed separately.
Why links fill up with % signs
A URL may only contain a small set of ASCII characters. Everything else, including spaces, Arabic letters and emoji, is first turned into UTF-8 bytes, and each byte is written as % plus two hex digits. That is percent-encoding (RFC 3986). The Arabic word مرحبا is 10 bytes in UTF-8, so it becomes 10 %XX groups.
Which mode to use
- Parameter value (
encodeURIComponent) encodes everything that could break a URL, including&,=,/,?and#. Use it for a single value you are putting into a query string or path segment. - Whole URL (
encodeURI) leaves the URL structure alone and only encodes characters that are never allowed, such as spaces and non-ASCII letters. - Form data is how HTML forms send data (
application/x-www-form-urlencoded): like a parameter value, but spaces become+.
The plus sign problem
In a query string, + often means a space because of how forms work, but in a path it is a literal plus. If a decoded search term shows + between words, turn on "Treat + as space". If it is part of a phone number or a Base64 value, leave it off.
Double encoding
If the output still contains %25, the text was encoded twice (%25 is the encoding of % itself). Decode it again. Need to decode something else? Try the auto-detect decoder, or the Punycode converter for Arabic domain names.