URL Encoder / Decoder
Percent-encode URLs and query strings for safe transmission, or decode encoded URLs back to plain text. Supports full URL encoding and component-level encoding.
URL Encoding Reference
URL encoding (percent-encoding) replaces unsafe characters with a % followed by two hexadecimal digits. This ensures URLs are valid and correctly interpreted by browsers and servers. Use component encoding for individual query parameter values, and full URL encoding when you need to encode an entire URL while preserving its structure.
encodeURIComponent vs encodeURI
encodeURIComponent encodes everything except A-Z a-z 0-9 - _ . ! ~ * ' ( ). Use it for query parameter values and path segments.
encodeURI preserves URL structure characters (: / ? # [ ] @ ! $ & ' ( ) * + , ; =). Use it to encode a complete URL.