URL Encode/Decode
Percent-encode or decode URLs and query parameters, with full UTF-8 support and exact error positions.
0 characters · 1 line
0 characters · 1 line
Shortcut: Ctrl/⌘ + Enter uses the result as input and switches mode
How to use
- Choose “Encode” or “Decode”.
- Choose the scope: “Parameter value” for a single query value, or “Full URL” to keep the URL structure such as :/?#&.
- Paste or type into the input, or click “Example” to try it. The result updates instantly.
- For data from HTML forms, turn on the option that treats + as a space.
- Click “Copy” to grab the result, or “Use result as input” to convert it back and check it.
FAQ
Is my data uploaded?
No. Encoding and decoding happen in your browser. Your data never leaves your device, and the tool even works offline.
What is the difference between “Parameter value” and “Full URL”?
“Parameter value” works like encodeURIComponent and encodes / ? & = # as well, which is right for a single query value. “Full URL” works like encodeURI and keeps those characters so the URL structure survives; only spaces, non-ASCII characters and the like are encoded.
Should a space be %20 or +?
Both mean a space, but + only does in HTML form data (application/x-www-form-urlencoded) query strings. In a URL path, + is a literal plus sign, so %20 is the default.
Why does decoding fail or produce garbled text?
Usually part of the text is missing (a Chinese character needs three %XX groups), a % is not followed by two hex digits, or the text was encoded with Big5 instead of UTF-8. The tool shows the position of the problem.
Why aren't ! ' ( ) * encoded?
The tool matches the browser’s built-in encodeURIComponent, which leaves these characters as they are because they are safe in URLs.
Related tools
URL Parser
Break a URL into scheme, host, port, path, query parameters and fragment, with IDN support and an editor that rebuilds the URL.Base64 Encode/Decode
Encode text to Base64 or decode it back, with full UTF-8 support for Chinese and emoji and a URL-safe option.HTML Entities
Escape < > & and other characters as HTML entities or decode them back. Supports all 2,125 named and numeric references, with a quick reference.