Developer Tools
URL Encoder
Percent-encode URLs and query strings.
Your information is processed in your browser and is not uploaded to our servers.
URL or text
Result
About this tool
encodeURIComponent encodes a query value, including &, ?, and /. encodeURI leaves URL structure characters intact.
How to use
- Paste text or a URL.
- Leave the checkbox on for query values.
- Copy the encoded string.
Formula and methodology
Default is encodeURIComponent. Uncheck to use encodeURI.
Worked example
a & b becomes a%20%26%20b as a component.
Frequently asked questions
Which mode should I use?+
Use component encoding for search params. Use encodeURI for a full URL that already has a scheme.
Is the URL uploaded?+
No.
Related tools
Developer Tools
URL Decoder
Decode percent-encoded URLs.
Open tool →
Developer Tools
Base64 Encoder
Encode text to Base64.
Open tool →
Developer Tools
JSON Formatter
Pretty-print and minify JSON in the browser.
Open tool →
Text Tools
Word Counter
Count words, characters, sentences and estimated reading time.
Open tool →
Developer Tools
JSON Validator
Validate JSON and show parse errors clearly.
Open tool →
Developer Tools
Base64 Decoder
Decode Base64 back to text.
Open tool →