URL Encoder/Decoder
Encode and decode URLs and query strings
URL Encoding
URL encoding converts characters into a format that can be transmitted over the Internet. Special characters are replaced with a % followed by their hex value.
encodeURI: Encodes a complete URL, preserving special characters like : / ? & =
encodeURIComponent: Encodes everything including special characters. Use for query parameters.
Common Encodings
Space → %20 or +
& → %26
= → %3D
? → %3F
/ → %2F