URL Encoder / Decoder
FreeEncode or decode URLs and query strings instantly. Supports full URLs and components.
Type:
What is URL Encoding?
URL encoding (percent-encoding) is a mechanism for encoding special characters in URLs. Because URLs can only contain certain ASCII characters, any data that falls outside that set — including spaces, special symbols, and non-ASCII characters — must be encoded before being included in a URL.
encodeURIComponent vs encodeURI
encodeURIComponent
Encodes all characters except: A-Z a-z 0-9 - _ . ! ~ * ' ( ). Use this for individual query parameter values.
encodeURI
Encodes all characters except those used in URL syntax: A-Z a-z 0-9 ; , / ? : @ & = + $ - _ . ! ~ * ' ( ) #. Use this for a complete URL.