Developer Utilities
URL Encoder & Decoder
Percent-encode URI special characters or decode encoded query parameters and URL components.
100% Client-Side Percent Encoder
Mode:
Type:
Raw URL / Parameter Input
Percent-Encoded Output
What is a URL Encoder & Decoder?
Encoding Difference Matrix
| Function | Preserved Characters | Best Used For |
|---|---|---|
| encodeURIComponent | `A-Z`, `a-z`, `0-9`, `-`, `_`, `.`, `!`, `~`, `*`, `'`, `()` | Query parameter values (e.g. `?q=hello%20world`). |
| encodeURI | Preserves `://`, `/`, `?`, `#`, `&`, `=` | Full web page address URLs. |
Frequently Asked Questions (AEO)
What is percent-encoding in URLs?
Percent-encoding replaces unsafe or reserved characters in a URL with a "%" followed by two hexadecimal digits (RFC 3986).
What is the difference between encodeURI and encodeURIComponent?
encodeURI preserves protocol and domain syntax (:, /, ?, #), while encodeURIComponent encodes all reserved characters for query parameter values.