Networking
URL Encoder/Decoder
Input Text
Encoding Algorithm
Standard URL encoding for query parameters. Encodes everything except A-Z a-z 0-9 - _ . ! ~ * ' ( )
Output
Encoding Reference
encodeURIComponent
Encodes everything except: A-Z a-z 0-9 - _ . ! ~ * ' ( )
hello world → hello%20world encodeURI
Encodes for full URI, preserves: : / ? # [ ] @ ! $ & ' ( ) * + , ; =
https://example.com/?q=hello world Form Data (+ for spaces)
application/x-www-form-urlencoded format
hello world → hello+world RFC 3986 (Strict)
Encodes everything except: A-Z a-z 0-9 - _ . ~
hello! → hello%21 Base64
Binary-to-text encoding, not URL-specific
hello → aGVsbG8= Base64URL
URL-safe Base64: + → -, / → _, no padding
hello → aGVsbG8