URL Encoder / Decoder
Encode and decode URL-safe text
Encodes everything (use for query parameters).
Plain text
Encoded text
Quick steps
1
Pick mode
Switch between Encode and Decode at the top.
2
Choose variant
'Component' encodes every special character (use for query values). 'Full URI' preserves : / ? & =.
3
Copy the result
Result updates live as you type. Use the swap button to flip input and output.
Frequently asked questions
What's the difference between encodeURI and encodeURIComponent?
encodeURIComponent encodes everything that's not a letter, digit, or one of -_.!~*'(). encodeURI is more lenient — it leaves URI structural characters like : / ? & = alone.
When do I need URL encoding?
Whenever you put user input into a URL — query parameters, path segments, fragment identifiers. It prevents characters like spaces, &, ?, = from breaking the URL structure.