URL Encoder/Decoder
Encode or decode URLs and strings using JavaScript's built-in functions
Input
Results
URL Encoded
URL Decoded
About URL Encoding
What is URL Encoding?
URL encoding converts characters into a format that can be transmitted over the Internet. It replaces unsafe ASCII characters with a "%" followed by two hexadecimal digits.
When to Encode
Use encoding when including special characters in URLs, such as spaces, symbols, or non-ASCII characters. This ensures the URL is properly interpreted by browsers and servers.
Common Encodings
Space → %20
& → %26
= → %3D
? → %3F
# → %23