Tools / URL Encoder
URL Encoder & Decoder
Percent-encode text so it is safe inside a URL, or decode %XX sequences back to readable text. Everything runs in your browser.
Uses encodeURIComponent / decodeURIComponent. Press Ctrl / ⌘ + Enter to convert.
What is URL encoding?
URLs may only contain a limited set of ASCII characters. URL encoding (also called percent-encoding) replaces unsafe characters with a % followed by two hexadecimal digits, so values survive being passed through query strings and paths.
How to use this tool
- Choose Encode or Decode.
- Paste text, a URL, or a percent-encoded string.
- Click Convert — the result appears instantly.
- Copy or download the result.
FAQ
encodeURIComponent or encodeURI — which one does this use?
This tool uses encodeURIComponent, which escapes characters such as ?, &, = and # — exactly what you need when encoding a query parameter value.
Why does decoding fail on some strings?
A percent-encoded string needs complete %XX sequences. A lone % or an invalid sequence such as %ZZ cannot be decoded.
Is my data uploaded?
No. Everything happens locally in your browser.