// security
URL Encoder
Encode and decode URLs for safe transmission.
idle
encodeURIComponent
Encodes all special characters including URI reserved characters
e.g. hello world! → hello%20world%21
0 bytes
Encoded URL will appear here.
' '%20Space
'!'%21Exclamation mark
'"'%22Quotation mark
'#'%23Hash/Fragment
'$'%24Dollar sign
'%'%25Percent sign
'&'%26Ampersand
'''%27Apostrophe
'+'%2BPlus sign
'='%3DEquals sign
'?'%3FQuestion mark
'@'%40At symbol
When to use
- • Query parameters with special characters
- • Form data submission
- • API requests with user input
- • Embedding URLs in other URLs
Reserved characters
: / ? # [ ] @ ! $ & ' ( ) * + , ; =
Safety tips
- • Always encode user input in URLs
- • Use the appropriate encoding method
- • Validate decoded output