URL Encoder
encodeURIComponent and decode in one box.
Loading tool
Encode a search term before it goes into a query string, or decode a messy log line.
How to use this tool
- Paste the snippet. Drop JSON, code, or a token into the input. It is not sent to a server.
- Run the action. Format, decode, or generate. Parse errors stay on the page.
- Copy the output. Copy the result back into your editor or terminal.
Two modes
Component mode encodes reserved characters. Full-URL mode leaves : / ? & = intact so a complete address stays clickable.
Frequently asked
Should I encode a whole URL including https?
Only if that URL is itself a query value. Otherwise use full-URL mode.
Does + become a space?
In query decode, + is treated as space. In path decode it stays plus.
Are Unicode characters encoded as UTF-8?
Yes, then percent-escaped.
Is this the same as HTML entities?
No. Use the HTML entity tool for markup.
Does percent-encoding leave the browser?
No. The encoder never posts the string.