URL Encoder / Decoder supports both encodeURIComponent (for individual query parameter values) and encodeURI (for full URLs that preserve structural characters). Toggle between encode and decode mode for instant bidirectional conversion.
encodeURIComponent — encodes all special chars including : / ? # & =
Component mode (encodeURIComponent) encodes all special characters including :, /, ?, #, &, and = — safe for embedding a value inside a query parameter. Full URL mode (encodeURI) preserves URL structure characters so the result remains a navigable URL.
Percent encoding replaces unsafe or reserved ASCII characters with a % followed by two hexadecimal digits representing the character's byte value, as required by the URL specification.
Use Component mode when encoding a single value that will be placed inside a query string (e.g. a search term). Use Full URL mode when you have a complete URL and want to encode special characters in it without breaking its structure.
encodeURIComponent and encodeURI both produce %20 for spaces, which is the standard percent-encoding. The + character for spaces is specific to the application/x-www-form-urlencoded format used in form submissions, not general URL encoding.
Yes. decodeURIComponent and decodeURI handle percent-encoded sequences and leave already-unencoded characters unchanged.
If the input contains a malformed percent-encoded sequence (e.g. a stray % not followed by two hex digits), decoding will fail with an error rather than producing incorrect output.
Yes. encodeURIComponent and encodeURI correctly percent-encode multi-byte UTF-8 characters, including emoji and accented letters.