URL Encode / Decode
Percent-encode and decode URLs and query strings in your browser. Switch between encodeURIComponent and full-URI modes, then copy the result instantly.
How it works
- 01Choose Encode or Decode mode.
- 02Paste the URL or text you want to convert.
- 03Pick component encoding for a single value, or full-URI for a whole address.
- 04Copy the converted result with one click.
Frequently asked questions
What is URL encoding?
URL encoding, also called percent-encoding, replaces characters that are unsafe in a URL, such as spaces, ampersands and question marks, with a percent sign followed by their hex code.
What is the difference between the two modes?
Component mode uses encodeURIComponent, which encodes almost every reserved character and is right for a single query value. Full-URI mode uses encodeURI, which preserves characters like : / ? & that structure a whole URL.
When should I decode a URL?
Use decode mode to turn a percent-encoded string like hello%20world back into readable text. It is handy for inspecting query parameters, redirect URLs and logged requests.
Is my input sent anywhere?
No. Encoding and decoding run entirely in your browser using standard JavaScript functions. Nothing you type is uploaded, stored or logged.
Why does decoding show an error?
Malformed percent sequences, such as a lone % or an incomplete %A, cannot be decoded. The tool reports this inline so you can correct the input instead of crashing.
