Percent-encode text for URLs or decode an encoded URL.
Processed locally in your browser.
Understanding your result
Use this for query-string values and parameters so special characters do not break the link.
Formula and method
Encoding replaces unsafe characters with a “%” followed by their hex byte values (encodeURIComponent); decoding reverses the process.
Worked example
“a b&c” encodes to “a%20b%26c”.
How to use this tool
- Choose Encode or Decode.
- Paste your input.
- Copy the result.
Common mistakes to avoid
- Decoding a string that contains an invalid percent sequence.
About the URL Encoder / Decoder
Make text safe to include in a URL by percent-encoding special characters, or decode an encoded URL back to normal text.
Explore all Developer Tools tools
Frequently asked questions
Component or full URL?
This encodes for component values (the safest default), so reserved characters like & and ? are escaped.