Percent-encode or decode URLs and query strings, fix double-encoded links, and break any URL into its parts.
Last updated:
Double-encoded strings (%2520) are decoded fully, layer by layer.
| Mode | Encodes | Use for |
|---|---|---|
| Component | Everything except A-Z a-z 0-9 - _ . ! ~ * ' ( ) | Query values, path segments, API parameters |
| Full URL | Spaces and unsafe characters, keeps : / ? # & = | A complete link with spaces or non-English characters |
| Form | Like Component but spaces become + | HTML form posts (application/x-www-form-urlencoded) |
| Every character | All bytes as %XX | Debugging and testing filters |
| Character | Encoded | Character | Encoded |
|---|---|---|---|
| space | %20 (or + in forms) | & | %26 |
| / | %2F | ? | %3F |
| = | %3D | # | %23 |
| : | %3A | @ | %40 |
| + | %2B | % | %25 |
| é | %C3%A9 | ₹ | %E2%82%B9 |
| Language | Encode | Decode |
|---|---|---|
| JavaScript | encodeURIComponent(s) | decodeURIComponent(s) |
| Python | urllib.parse.quote(s, safe="") | urllib.parse.unquote(s) |
| PHP | rawurlencode($s) | rawurldecode($s) |
| Java | URLEncoder.encode(s, UTF_8) | URLDecoder.decode(s, UTF_8) |
| C# | Uri.EscapeDataString(s) | Uri.UnescapeDataString(s) |
| Tool | How |
|---|---|
| Excel / Google Sheets | =ENCODEURL(A1) |
| curl | curl -G --data-urlencode "q=cafe & tea" https://example.com |
| Postman | Select text in Params → right-click → EncodeURIComponent |
| HTML forms | Browsers encode fields automatically on submit |
| Google Analytics UTM builder | Encodes campaign values for you |
Paste it in the Encoded box. It decodes instantly, including double-encoded strings, and the parts are shown below.
Type it in the Decoded box with Component mode. Copy the encoded result.
encodeURI keeps characters that structure a URL (: / ? & =); encodeURIComponent encodes them too, which is what you want for a single value.
Use %20 in paths and most APIs. + means space only in form-encoded query strings.
The value was encoded twice. Decoding once gives %20; decoding again gives a space. This tool removes all layers.
Paste a full https:// URL. The parser lists every query parameter with its decoded value.
Yes. Characters are encoded as UTF-8 bytes, as browsers do.
No. Encoding, decoding and parsing all run in your browser.