URL Decoder: Decode Percent-Encoded URLs
By TheToolsBank Editorial TeamLast updated:
How to decode a URL
- Paste the encoded URL, query string or parameter value into the box.
- Select Decode URL.
- Read the decoded text under Result, then select Copy result.
- Select Clear to start again.
Example: name%3DAda%26city%3DNew%20York decodes to name=Ada&city=New York. Accented letters and emoji work too. caf%C3%A9 decodes to café, because each UTF-8 byte is written as its own %XX group.
Common percent codes
Each code is a % sign followed by two hex digits. Upper and lower case both work, so %2f and %2F both decode to a slash.
| Encoded | Decoded | Character |
|---|---|---|
%20 (or + with the box ticked) | (space) | Space |
%21 | ! | Exclamation mark |
%23 | # | Hash |
%25 | % | Percent sign |
%26 | & | Ampersand |
%2B | + | Plus sign |
%2F | / | Slash |
%3A | : | Colon |
%3D | = | Equals sign |
%3F | ? | Question mark |
%40 | @ | At sign |
%0A | (line break) | Newline |
How this decoder works
The tool decodes every %XX code the way JavaScript's decodeURIComponent does, including reserved ones like %2F, %3F and %26. It works through the codes one group at a time, so one bad code does not stop the rest of the text from decoding. The related decodeURI function leaves those reserved codes alone, so a%2Fb would stay as it is.
A plus sign stays a plus unless you tick Treat + as a space. Tick it for form data such as q=new+york, which then decodes to q=new york. When the input has a + and the box is off, a hint under the result reminds you. An encoded plus, %2B, always decodes to +, so C%2B%2B gives C++ either way.
Fixing "URIError: URI malformed"
In JavaScript, decodeURIComponent throws URIError: URI malformed when the input is not valid percent-encoding. This tool does not fail. It leaves each bad sequence exactly as typed, decodes everything else, and says how many malformed sequences it found. Three inputs cause them:
- A % sign not followed by two hex digits, such as
100%or%zz. - A string cut off in the middle of a code, often from an incomplete copy.
- Bytes that are not valid UTF-8, such as
%E9on its own, which stays as%E9. Some older systems encode é that way. UTF-8 needs%C3%A9.
To keep a literal percent sign, encode it as %25. For example, 50%25%20off decodes to 50% off. To build correctly encoded text, use the URL Encoder.
Double-encoded URLs
If the result still contains codes like %20, the text was encoded twice. Here %2520 decodes to %20, because %25 is the percent sign. The tool notices this and shows a Decode again button. Select it until no % codes remain. If a parameter holds JSON, decode it, then tidy it with the JSON Formatter. If it looks like random letters ending in =, it may be Base64. Try the Base64 Encoder/Decoder.
Common Mistakes to Avoid
Decoding form data with the + box unticked.
Solution:
Copying only part of an encoded URL.
Solution:
Decoding once when the text was encoded twice.
Solution:
Pasting text that uses Latin-1 codes like %E9.
Solution:

