URL encode and decode text
Percent-encoding, both directions, live.
Files stay on your device. No accounts. Free.
Loading tool...
About this tool
Encode text for safe use in URLs and query strings, or decode percent-encoded strings back to readable text, live as you type, in both directions. Choose full component encoding or URI-preserving mode depending on whether you're encoding a value or a whole URL.
Constant companion when debugging query strings, webhooks, OAuth redirects and log lines full of %2F. Local-only, like everything here.
How it works
- Paste your input, or drop a text file onto the box.
- The output updates live as you type.
- Copy it to the clipboard, or download it as a file.
Frequently asked questions
What is the difference between the two encoding modes?
Component mode encodes everything reserved, right for a single query parameter value. URI mode leaves structural characters like :, / and ? intact, right when you are encoding a whole URL and want it to stay a URL.
Why do spaces sometimes show as %20 and sometimes as +?
%20 is the standard percent encoding; + means space only inside the query string of a form submission. This tool produces %20, which is valid everywhere, and decodes both.
Why does my decoded string still contain % signs?
Either it was encoded twice, decode it again, or it contains a stray % that is not part of a valid escape. Double encoding is the classic cause of %2520 appearing where %20 was expected.