URL Encode / Decode
Percent-encode a value so it is safe inside a URL, or decode an encoded URL to see what it really says. Non-ASCII characters are encoded as UTF-8.
Output
🔒 Runs in your browser. Your data is never uploaded.
How to use
- Choose Encode or Decode.
- Paste the text, query value or URL.
- For a complete URL, tick the whole-URL option so separators are kept.
Component vs. whole URL
Encoding a single query value must escape & = ? and /, otherwise the value breaks the URL. Encoding a whole URL must leave them alone. That is the difference between encodeURIComponent and encodeURI, and what the checkbox switches.
Frequently asked questions
- Why is a space sometimes %20 and sometimes +?
- %20 is the general percent-encoding. + means space only inside form-encoded query strings. This tool encodes spaces as %20 and decodes both.
- What does “malformed” mean when decoding?
- A % sign that is not followed by two hexadecimal digits, or bytes that do not form valid UTF-8. A literal percent sign must be written as %25.
- Should I encode a URL twice?
- No. Double encoding turns %20 into %2520 and is a common cause of broken links.
Related tools
- Base64 Encode / DecodeEncode text to Base64 or decode Base64 back to text.
- JSON Formatter & ValidatorFormat, validate and minify JSON in your browser.
- QR Code GeneratorCreate a QR code for a URL or text and download it as PNG or SVG.
- Regex TesterTest a regular expression against sample text and see every match, its position and capture groups.