Encode and decode URLs and URL components. Convert special characters to percent-encoded format and back.
Select encode or decode mode.
Component encodes all special characters. Full URL preserves URL structure characters like :, /, ?, &, =, #.
Encode/decode spaces as + instead of %20 (common in query strings).
Encode and decode URLs and URL components using percent-encoding. Special characters like spaces, ampersands, and question marks have reserved meanings in URLs — encoding converts them to %XX sequences so they can travel safely in query strings and paths.
Choose Component mode (encodeURIComponent) for query-string values and path segments, or Full URL mode (encodeURI) to encode a complete URL while preserving its structure. Both directions run instantly and entirely in your browser.
encodeURIComponent encodes every reserved character, making it right for individual values like query parameters. encodeURI leaves characters that are structurally meaningful in URLs (like /, ?, and &) intact, making it right for encoding a whole URL.
Whenever you place user data in a URL — query parameters, path segments, or fragments. Unencoded special characters can break the URL or change its meaning.
Percent-encoding replaces a character with a % followed by its byte value in hexadecimal — for example, a space becomes %20. It is the standard way (RFC 3986) to represent special characters in URLs.