URL Encode / Decode
Percent-encode or decode query strings and fragments correctly.
How to use this tool
- Paste the URL or text.
- Choose encode or decode, and whether to treat it as a full URL or a component.
- Copy the result.
How it works
encodeURIComponent/decodeURIComponent handle reserved characters; a URL-mode option preserves structural characters like / : ?.
Tips
- Encoding the full URL encodes the slashes — use URL mode when the input is an address.
- Decode before analyzing query params for readable keys.
Limitations
Spaces encoded as '+' only apply to query components.
Frequently asked questions
What does percent-encoding do?
It replaces unsafe characters with %XX hex codes so text survives URLs, query strings and HTML attributes.
Which spaces: + or %20?
Both are common — + traditionally meant space in the query string; %20 works everywhere. The tool lets you choose.
When would I decode?
When inspecting query strings in analytics or debugging links that show %-codes.