URL Encoder & Decoder
Encode and decode URLs and URI query parameters with RFC 3986 percent-encoding.
Technical Specifications & Standards
Conforms to RFC 3986 Uniform Resource Identifier (URI) Generic Syntax. Characters outside the unreserved set (ALPHA, DIGIT, '-', '.', '_', '~') are escaped using `%HH` hex representations.
Verified Technical Example
Encoding search parameters containing spaces, ampersands, and slashes
Frequently Asked Questions
What is the difference between encodeURI and encodeURIComponent?
`encodeURI` preserves protocol delimiters and slashes (`:`, `/`, `?`, `#`) for full URLs. `encodeURIComponent` escapes all reserved characters, making it mandatory for query parameter values.
Should spaces be encoded as '+' or '%20'?
RFC 3986 defines `%20` for URI path and query strings. The `+` character is specific to `application/x-www-form-urlencoded` POST bodies.
Is this tool executed in the browser?
Yes, 100% client-side. No URLs or search query parameters are logged or sent to any server.
Scope & Technical Limitations
- Malformed percent sequences (such as `%` not followed by two hex digits) will generate a URIError.