URL encode and decode
Encode text for safe use in a URL, or decode percent-encoded text back to readable form.
🔒 Everything runs in your browser. Nothing you choose or type is uploaded. How to verify
How to use it
- Paste your text.
- Choose encode or decode.
- Select Run and copy the result.
Handy for
Building query strings, reading encoded links and debugging URLs.
Good to know
Use component encoding for a single query value and full URL encoding for a whole address. Spaces become %20.
Privacy: where the work happens
Everything you enter or choose is processed by JavaScript in your browser and never sent anywhere. Only the page code, and any library this tool needs, is downloaded from cdnjs or jsDelivr.
Questions
What is the difference between the two encode options?
Component encoding also escapes characters such as / and &. Full URL encoding leaves them alone.
Why does decoding fail?
The text contains a percent sign that is not followed by two valid hex digits.