How to use the URL Encoder / Decoder
- Choose “Encode” or “Decode”.
- Pick the encoding type. “URL component” suits most cases, such as a single query-parameter value.
- Type or paste your text. The result updates as you type.
- Copy the result, or use “Swap input and result” to check that it converts back to the original.
Examples
café & crème = 50% off
caf%C3%A9%20%26%20cr%C3%A8me%20%3D%2050%25%20off
https://example.com/search?q=new shoes&size=42
https://example.com/search?q=new%20shoes&size=42
name=Zo%C3%AB+Martin&city=S%C3%A3o+Paulo
name=Zoë Martin&city=São Paulo
What gets encoded in each mode
URL component leaves only letters, digits and - _ . ! ~ * ' ( ) as they are and encodes everything else, including / ? & = #. That makes the value safe anywhere inside a URL.
Full URL additionally keeps ; , / ? : @ & = + $ #, so a complete address stays usable. When decoding in this mode, encoded versions of those characters (for example %2F for “/”) are left encoded, so the decoded URL keeps the same meaning.
Form data follows the HTML standard for form submissions: spaces become +, and every other character except letters, digits and * - . _ is percent-encoded.
Checking your result
“Swap input and result” moves the result into the input and switches between encoding and decoding. If the converted text matches your original, the round trip is safe.
Related developer tools
If a decoded value looks like a long run of letters, digits, “+” and “/”, it may be Base64: try the Base64 decoder. If it is JSON, the JSON Formatter makes it readable and checks that it is valid.
Common uses
- Building links with search terms, names or addresses in the query string.
- Reading encoded URLs from logs, analytics reports or redirect chains.
- Preparing values for API requests and webhooks.
- Debugging double-encoded links such as “%2520” instead of “%20”.
- Decoding form submissions captured in browser developer tools.
Limitations
- Encoding a whole URL as a “URL component” also encodes “:” and “/”, which breaks the link. Use “Full URL” for complete addresses.
- “Full URL” cannot tell whether a “&” or “=” inside a value belongs to the data or to the URL structure. Encode each value separately as a component when in doubt.
- The decoder expects UTF-8, which modern websites use. Links made with old encodings such as Latin-1 (for example “%E9” for “é”) are reported as invalid.
- International domain names are not converted to Punycode (the “xn--” form).