URL Encode/Decode
Encode text for safe use in URLs and query strings, or decode percent-encoded strings back to readable characters.
- Runs in your browser
- Free to use
About this tool
URL Encode/Decode handles the three flavours of percent-encoding you meet in practice: component, whole-URI and form-style, plus decoding that tolerates stray characters. It replaces encodeURIComponent, urlencode(), rawurlencode() and their inverses when you just need to look at or fix a URL.
To strip tracking parameters from a URL use the Google URL Cleaner.
How to use it — quick steps
- 01
Enter the text or url
Type or paste the text or url in the field above, for example name=Tom & Jerry/café. Nothing is uploaded.
- 02
Adjust the options
Pick the settings that fit your case; the defaults work for most people. Changes apply instantly.
- 03
Press "Convert"
Press "Convert" or Ctrl + Enter. The result appears instantly below the form. Results can be copied.
Key features of this tool
Nothing leaves your browser
The processing is plain JavaScript that runs on your device: the text you paste is never uploaded to our servers or to anyone else.
Instant results
Results appear the moment you press the button, even for long inputs, and every block has copy and download actions.
Works everywhere
No installation, no account and no limits: the tool works on desktop and mobile, in any modern browser, as often as you like.
Frequently asked questions
Component vs whole-URI encoding?
Component encoding escapes everything except unreserved characters and is right for a single parameter value. Whole-URI encoding keeps the characters that structure a URL (:, /, ?, #, &, =) and is used to fix spaces and Unicode in an existing address.
Why does a space become + sometimes?
HTML forms (application/x-www-form-urlencoded) encode spaces as +; everywhere else %20 is used. The form style option reproduces that.
Are my files or data uploaded?
No. The tool is plain JavaScript that runs in your browser; the files or data you provide here are never uploaded to our servers.