URL Encoder / Decoder (Percent Encoding)
URL encoder converts characters into percent-escapes so a URL stays valid. The tool shows encodeURIComponent and encodeURI side by side, because picking the wrong one is a common source of broken links.
Runs locally · files stay on device · works offline
How it works in 4 steps
- 1
Pick or drop
Select or drag files into the card — loaded directly into local memory.
- 2
Set options
Adjust target KB, format, dimensions or filters with instant feedback.
- 3
Process locally
Canvas, WebAssembly, or Web Crypto completes the job on your device.
- 4
Save result
Download directly; close the tab to clear everything from memory.
When to use this
| Scenario | Recommended | Why |
|---|---|---|
| A query parameter contains & or = | URL Encoder | encodeURIComponent escapes them so parsing works |
| Chinese characters turn into percent signs | URL Decoder | Decode to see the original text |
| An entire URL must be embedded in another | URL Encoder | encodeURI leaves :// and ? intact |
Privacy & Offline Guarantee
Ready to use with zero installation or login. Once loaded once, core dependencies cache locally so the tool works offline.
FAQ
encodeURI or encodeURIComponent?
Use encodeURIComponent for a single parameter value; use encodeURI when the whole URL must stay a URL. Choosing wrongly breaks either the parameter or the URL structure.
Why is a space sometimes %20 and sometimes +?
%20 is the URL standard; + is only valid inside application/x-www-form-urlencoded bodies. Mixing them up breaks query parsing.
Is my input uploaded?
No — encoding uses the built-in browser functions.
Something failed, or you wish this tool also did something else? Tell me →
Related Tools
Ready to process your files privately?
Back to tool ↑