URL encode
EncodeExperimentalLimited support. Verify anything critical.
URL encode escapes characters outside the unreserved set so a value can travel safely in a query string or path segment. It uses encodeURIComponent: letters, digits, and -_.!~*'() stay literal; everything else becomes UTF-8 percent-encoded hex pairs. Encode parameter values only — not a complete URL with scheme and host.
This tool processes text on your device. The text is not uploaded.
Steps
Paste one parameter value
Run locally
Paste into the query string
How to use URL encode
Encode values, not whole URLs
Paste R&D or a=b&c, not https://example.com/?q=…. Encoding an entire URL turns : and / into percent sequences and breaks the link.
Spaces
Spaces become %20. If you are preparing application/x-www-form-urlencoded bodies that expect +, convert after encoding or use a form serializer instead.
How it works
- Enter what you haveType or pick your text. Nothing is submitted anywhere.
- It runs in this tabThe calculation happens on your device, using your browser's own data.
- Take the resultRead the text, then copy or download.
Reimplemented locally. Not derived from IT-Tools source.
- Basis
- independent
- Licence
- MIT
- Last reviewed
Frequently asked questions
Why should I encode URL parameters?
Reserved characters like '&', '=', '?', and '#' have structural meaning in URLs. If your query string data contains these characters (e.g. searching for 'R&D'), it will truncate or break the URL unless properly percent-encoded as '%26'.
Is this safe for full URLs?
No. This tool encodes the entire input string. If you paste a full URL (like 'https://example.com/'), the colon and slashes will be encoded, breaking the link. Only use this for individual parameter values.
How are spaces handled?
Spaces are converted to their percent-encoded hexadecimal format ('%20'). While some application/x-www-form-urlencoded forms accept '+' for spaces, '%20' is the universal standard for URI components.