URL Encoder
Encode or decode URL components. Choose between encodeURI and encodeURIComponent.
Runs entirely in your browser — files never uploaded
Component escapes everything special including &, =, ? — use for query parameter values. URI preserves &, =, ?, / — use for whole URLs.
How to use URL Encoder
- 1. Pick a mode. Encode (raw → percent) or Decode (percent → raw).
- 2. Pick a variant. Component for query parameter values, URI for full URLs.
- 3. Run. Output appears below — copy it or hit Swap to round-trip.
FAQ
What's the difference between encodeURI and encodeURIComponent?
encodeURIComponent escapes more characters (including ?, &, =, /). Use it for query string values. encodeURI preserves URL structure characters — use it for an entire URL.
Why does '+' decode to a space sometimes?
That's form-encoding (application/x-www-form-urlencoded), not standard percent-encoding. Our decoder follows RFC 3986 strictly: + stays as +. If you need form decoding, replace + with %20 first.
Is my data uploaded?
No. Encoding and decoding happen entirely in your browser.
Related tools
Advertisement