URL decoder
Percent-encoding (also called URL encoding) is how URLs carry spaces,
punctuation and non-English characters safely: each one is written as a %
followed by two hexadecimal digits, so a space becomes %20 and a slash becomes
%2F. This decoder reverses that, turning an encoded string or query parameter
back into readable text — useful for inspecting links, debugging API requests, or
reading logged URLs.
How it works
The tool uses the browser’s two built-in decoding functions:
- Component mode —
decodeURIComponentdecodes every escape sequence, including reserved characters like:/?&#. Use it for a single piece such as one query value or path segment. - Full-URL mode —
decodeURIdecodes the same percent sequences but leaves reserved URL separators untouched, so a whole URL keeps its structure.
Each %XX is interpreted as a UTF-8 byte, so multi-byte characters (like é,
stored as %C3%A9) are reassembled correctly. A % that is not followed by two
valid hex digits is malformed and raises an error.
Example
The encoded value name%3DJohn%20Doe%26city%3DZ%C3%BCrich decodes in component
mode to name=John Doe&city=Zürich: %3D becomes =, %20 a space, %26 an
ampersand, and %C3%BC the character ü.
| Encoded | Decoded |
|---|---|
| %20 | (space) |
| %2F | / |
| %3D | = |
| %26 | & |
| %C3%A9 | é |
It all happens in your browser with built-in functions — nothing is uploaded. To encode again, use the URL encoder.