URL Encoder & Decoder Online — Free Tool
Safely encode special characters in URLs or decode URL-encoded (percent-encoded) strings back to plain text.
About this tool
URLs reserve certain characters; others must be percent-encoded (e.g. space as %20). Encode query strings safely or decode percent-encoded URLs back to readable text.
Essential when building links, debugging redirect chains, or fixing broken query parameters in APIs.
Common use cases
- Encoding query parameters with special characters
- Decoding analytics or redirect URLs for inspection
- Debugging broken links with spaces or unicode
- Preparing safe href values in HTML templates
How to use
- Choose encode or decode mode.
- Paste the URL or text fragment to transform.
- Review percent-encoded or decoded output.
- Copy into your app, curl command, or browser bar.
This page is available at /tools/url-encoder-decoder/.
Understanding the result
- encodeURIComponent encodes more aggressively than encodeURI—use component for query values.
- Plus (+) in query strings sometimes means space in application/x-www-form-urlencoded.
- Decoding invalid sequences may throw or leave sequences unchanged—verify input.
- Unicode encodes as UTF-8 bytes then percent-hex (e.g. café → multi-byte sequence).
Related tools
FAQ
encodeURI vs encodeURIComponent?
encodeURI keeps : / ? # [ ] @ intact for full URLs. encodeURIComponent encodes those for query parameter values.
Why is space %20 or +?
Percent encoding uses %20. HTML forms often use + in application/x-www-form-urlencoded bodies.
Double encoding?
Encoding already-encoded text produces %25 sequences. Decode once to inspect original.
Is data sent to a server?
No. Encoding runs locally.
