URL Encoder / Decoder
Paste a URL or text string on the left and encode or decode it on the right. Uses encodeURIComponent and decodeURIComponent — safe for query parameters and path segments.
When to use URL encoding
- Building query strings with spaces or special characters
- Passing URLs as parameters in another URL
- Decoding percent-encoded values from logs or redirects
- Preparing data for
application/x-www-form-urlencodedrequests
FAQ
What characters get encoded?
All characters except unreserved ones: A–Z, a–z, 0–9, - _ . ! ~ * ' ( ). Spaces become %20.
What is the difference between encode and encodeURIComponent?
This tool uses encodeURIComponent which also encodes reserved URI characters like / ? # & =, making it safe for encoding individual parameter values.
Related: Base64 Encoder / Decoder · HTML Entity Encoder · All Tools