URL Encode Decode
Percent-encode strings for query parameters or decode messy URL fragments back into readable text.
URL text
How to use this tool
Paste the value you want to put into a query string and click Encode. Characters such as spaces, ampersands, and non-ASCII letters become percent-encoded so the URL remains valid.
Paste an encoded segment and click Decode to inspect the original text. This is useful when debugging redirects, OAuth callbacks, or logs that store escaped URLs.
Encode full URLs carefully: encoding an entire URL including `https://` will escape characters you usually want to keep. Prefer encoding only the parameter values.
Frequently asked questions
- Is this encodeURIComponent or encodeURI?
- This tool uses encodeURIComponent / decodeURIComponent, which is the usual choice for query parameter values.
- Why do spaces become %20?
- Spaces are not safe in many URL components. Percent-encoding represents them as %20 so servers parse the value correctly.
- Is data uploaded?
- No. Encoding happens entirely in your browser tab.