URL Encode / Decode
Encode or decode URL components for query strings and API debugging.
When to use this tool
- Encoding a query string value that contains special characters.
- Inspecting an oddly-escaped redirect URL.
- Building a deep link where fragments and queries must be preserved.
How it works
- Paste the string.
- Pick encode or decode.
- Copy the result into your URL.
- Remember to encode each component separately, not the whole URL.
Privacy: This tool runs entirely in your browser. Your input is not sent to our servers.
Output
Advertisement
Frequently asked questions
What is the difference between encodeURI and encodeURIComponent?
`encodeURIComponent` escapes more characters and is correct for query string values. `encodeURI` preserves URL structure.
Why does my encoded string still look wrong?
Ensure you are encoding only the component, not the entire URL. A full URL encode breaks slashes and colons.
Does it support double-encoding?
Decode twice if the original was double-encoded. The tool decodes once per click.