How to decode a URL
Paste the link or encoded text. The decoded version appears instantly, and if it's a full URL you'll see the host, path and each query parameter on its own line, which makes long marketing and redirect links easy to read.
Encode a parameter or a whole URL?
- Parameter value (like
encodeURIComponent) encodes everything that isn't a letter, digit or-_.!~*'(), including/ ? & =. Use it for a single value you're putting into a query string. - Whole URL (like
encodeURI) leaves the characters that give a URL its structure alone, so the link still works.
Common encodings
| Character | Encoded |
|---|---|
| space | %20 (or + in form data) |
| & | %26 |
| / | %2F |
| £ | %C2%A3 |
| é | %C3%A9 |
Questions people ask
Why are spaces sometimes + and sometimes %20?
HTML forms encode spaces as +, while the URL standard uses %20. When decoding, tick Treat + as a space for form data; leave it off if your text has real plus signs.
What does URL decoding do?
It turns percent-encoded sequences like %3D and %E2%82%AC back into the characters they stand for, = and €.
Why do I get an error when decoding?
There's a % that isn't followed by two hex digits, for example 100% on its own. Encode it as %25 first, or fix the broken sequence.