URL Encode & Decode
Percent-encode and decode URLs and query strings safely.
Runs in your browser Works offline No uploads, no sign-up
Input
Output
How to use the URL Encode & Decode
Encode special characters for URLs or decode percent-encoded strings. Ideal for query params, redirects, and debugging APIs.
- 1Paste a URL, query string or encoded value into the input.
- 2Choose encodeURIComponent for single query or path values, or encodeURI for a whole URL.
- 3Press Encode or Decode, then copy the output. Swap moves the output back into the input.
Frequently asked questions
When should I use encodeURIComponent vs encodeURI?
Use encodeURIComponent for a single value going into a query parameter or path segment: it escapes reserved characters such as &, =, ? and /. Use encodeURI for a full URL whose structure you want to keep.
Why does a space become %20 or +?
Percent-encoding turns a space into %20. HTML form encoding (application/x-www-form-urlencoded) uses + instead. Both decode back to a space in most servers.
Is my data uploaded anywhere?
No. Everything runs as JavaScript inside this browser tab. The site’s Content-Security-Policy blocks network requests to any other origin, so your input has nowhere to go. It also works offline once loaded.