security.url()
Encode / decode URLs · components · form data
waiting input
URL Encoder/Decoder
Encode and decode URLs for safe transmission using different encoding strategies.
encodeURIComponent
Encodes all special characters including URI reserved characters
Example: hello world! → hello%20world%21
Original URL/Text
0 characters
Lines: 1 | Bytes: 0
Encoded Result
Common URL Encodings
' '
%20
Space
'!'
%21
Exclamation mark
'"'
%22
Quotation mark
'#'
%23
Hash/Fragment
'$'
%24
Dollar sign
'%'
%25
Percent sign
'&'
%26
Ampersand
'''
%27
Apostrophe
'+'
%2B
Plus sign
'='
%3D
Equals sign
'?'
%3F
Question mark
'@'
%40
At symbol
URL Encoding Information
When to Use URL Encoding:
• Query parameters with special characters
• Form data submission
• API requests with user input
• Embedding URLs in other URLs
Reserved Characters:
• : / ? # [ ] @
• ! $ & ' ( ) * + , ; =
These have special meaning in URLs
Safety Tips:
• Always encode user input in URLs
• Use appropriate encoding method
• Test with special characters
• Validate decoded output