URL Encoder & Decoder
Convert spaces, symbols and Unicode to or from percent escapes.
Paste a link or parameter to encode or decode it.
Example · Space and ampersand
Whole URL keeps /, ? and &. Parameter encodes them.
Result
14 bytes encoded as one parameter.
Showing the first 2,048 characters. Copy or download the full result.
Processed on this device — nothing is uploaded
What you can do here
- Whole URL and parameter modes
- UTF-8 percent encoding
- Readable percent-decoded text
- Copy or download conversions
When should you encode a whole URL or one parameter?
Choose Whole URL when you need a link to keep its slashes, question mark and query separators. Choose One parameter when you want to encode a single value, including any ampersands it contains. Decode reverses percent encoding in the selected scope and displays the text in your browser.
Paste text, choose Encode or Decode, then pick a scope. In One parameter mode, tea & biscuits becomes tea%20%26%20biscuits, so the ampersand cannot be mistaken for a separator. In Whole URL mode, /search?q=tea break&size=large becomes /search?q=tea%20break&size=large, with the slash, question mark, equals sign and ampersand left alone. A space is written %20 and a literal percent sign %25. Copy the result or download it as a text file.
Key facts
- Price
- Free
- Sign-up
- None
- Upload
- None — runs on your device
- Limits
- 16 MiB pasted UTF-8 text
- Works with
- Full link · Individual parameter value · Percent-encoded string
- Output
- Percent-encoded text · Decoded text
- Updated
How do you encode or decode a URL?
- Enter the text
Paste a URL or a parameter value.
- Choose the direction and scope
Pick Encode or Decode, then choose Whole URL or One parameter.
- Copy or download
Use the converted string where you need it, or save it as a local text file.
How percent encoding handles separators
The page uses JavaScript’s encodeURI and decodeURI for a whole URL, and encodeURIComponent and decodeURIComponent for one parameter.
| Input | Whole URL encoding | One parameter encoding |
|---|---|---|
| a & b | a%20&%20b | a%20%26%20b |
| a+b | a+b | a%2Bb |
| é | %C3%A9 | %C3%A9 |
Frequently asked questions
What is the URL encoding for a space?
This tool encodes a space as %20. The form encoding used by some websites can also represent a space with a plus sign.
Does decoding turn plus signs into spaces?
A literal + stays unchanged by default. For form-encoded values, turn on Decode + as a space. In Parameter mode, %2B still decodes to a literal +.
Can I encode a URL that already contains percent escapes?
The encoder escapes a literal % as %25. If a URL has already been encoded, encoding it again can change the meaning of existing escapes.
Why does the decoder leave %26 in my link?
Whole URL mode preserves escapes for structural delimiters. Select One parameter to decode an individual value containing %26 into an ampersand.
Related tools
About this tool
Made by ZirkoMirko. Last updated .
Check it yourself in your browser’s Network panel while using the tool. How we handle your data.
Sources
- ECMAScript URI handling functions (checked )
- WHATWG URL Standard, percent-encoded bytes (checked )