URL Encode/Decode
Encode special characters in URLs or decode percent-encoded strings. Essential for working with query parameters, form data, and API endpoints.
How to use
- Paste a URL, query string, or a single parameter.
- Click Encode to convert special characters to percent-encoding.
- Click Decode to turn percent-encoded text back into readable form.
- Copy the result and use it in your API requests or browser debugging.
FAQ
What's the difference between encodeURI and encodeURIComponent?
encodeURIComponent encodes more characters and is best for individual query params. encodeURI is for full URLs and keeps reserved characters like : / ? &.
Why do spaces become %20 or +?
In URLs, spaces are typically encoded as %20. In application/x-www-form-urlencoded (forms), spaces may become +.
Is decoding safe?
Yes. Decoding only converts percent sequences back to characters. Still, don't execute decoded input as code.