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
URL Decoder
Decode percent-encoded URLs.
Open tool →
Base64 Encoder
Encode text to Base64.
Open tool →
JSON Formatter
Pretty-print and minify JSON in the browser.
Open tool →
Word Counter
Use this word count checker to check word count, characters with and without spaces, sentences, paragraphs and reading time.
Open tool →
JSON Validator
Validate JSON and show parse errors clearly.
Open tool →
Base64 Decoder
Decode Base64 back to text.
Open tool →