URL Encode Decode
Percent-encode strings for query parameters or decode messy URL fragments back into readable text.
Runs in your browser · nothing uploaded
URL text
How to use this tool
- Paste or type your input in the tool above.
- Run the action and inspect the output.
- Copy the result — nothing was uploaded.
Details
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.
Query strings treat `&` and `=` as structure. If a search term contains those characters, encode the value before you append it. Path segments and hash fragments have their own rules; this tool follows `encodeURIComponent`, which is the usual choice for values you place after `?key=`.
When debugging redirects, decode the suspicious segment, fix the plain text, then re-encode before rebuilding the URL. Mixing encoded and raw pieces in the same parameter is a common source of 400 errors and broken OAuth callbacks.
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.