URL Encoder/Decoder
Encode and decode URLs for web use. Convert special characters to URL-safe format.
URL Encoder/Decoder
Encode and decode URL strings for web use
Characters: 0
Output will appear here...
Characters: 0
→ %20
! → %21
# → %23
$ → %24
& → %26
' → %27
( → %28
) → %29
+ → %2B
, → %2C
FAQ
What is URL encoding?
URL encoding converts special characters into a format that can be transmitted over the internet. It replaces unsafe characters with a % followed by two hexadecimal digits.
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a complete URL, preserving characters like : / ? & =. encodeURIComponent encodes individual URL components and encodes all special characters.
When should I use URL encoding?
Use URL encoding when passing data in query parameters, especially if the data contains special characters, spaces, or non-ASCII characters.