Encode text so it is safe inside a URL, decode percent-encoded text, or paste a full URL to see its parts and query parameters.
Loading the tool…
How it works
- “Component” encodes everything except letters, digits and - _ . ! ~ * ' ( ) (encodeURIComponent) – use it for values. “Full URL” keeps the URL structure characters : / ? # & = intact (encodeURI).
- Form style treats + as a space when decoding and writes spaces as + when encoding.
- Runs entirely in your browser: what you paste is not sent anywhere.
Assumptions and limits
- Text is encoded as UTF-8. Decoding fails on malformed sequences such as a lone %.
Frequently asked questions
encodeURI or encodeURIComponent?
Use component encoding for individual values (query parameters), full-URL encoding for a whole address.