Encode special characters for use in URLs, or decode percent-encoded URL strings back to readable text. Supports both encodeURIComponent and encodeURI modes.
A URL encoder/decoder converts special characters in URLs to their percent-encoded equivalents and vice versa. URL encoding (also called percent-encoding) replaces unsafe characters with a % followed by their hexadecimal value, ensuring URLs are valid and interpreted correctly by browsers and servers. Our browser-based tool supports both encodeURIComponent mode for query parameters and encodeURI mode for full URLs. All encoding and decoding happens locally in your browser, so your URLs and data remain completely private and never leave your device.
URL encoding (percent-encoding) replaces special characters with a '%' followed by their hex code. For example, a space becomes '%20'. This ensures URLs are valid and interpreted correctly.
encodeURIComponent encodes everything except letters, digits, and - _ . ! ~ * ' ( ). encodeURI preserves URL-structural characters like :, /, ?, #, and &.
Use 'Component' mode for encoding query parameter values. Use 'Full URL' mode for encoding a complete URL while preserving its structure.
Yes. Unicode characters are first converted to UTF-8 byte sequences, then each byte is percent-encoded. Decoding reverses this process.