URL Encode
Operation Mode
Input Plain Text
Output Encoded
Options
Spaces become +, safe for query strings
Keep ! # $ & ' ( ) * + , / : ; = ? @ [ ] unencoded
Automatically convert when input changes
URL Encoding Reference (Click to expand)
Common Encodings
| Character | Encoded | Description |
|---|---|---|
space | %20 / + | Space character |
! | %21 | Exclamation |
# | %23 | Hash/Pound |
$ | %24 | Dollar |
& | %26 | Ampersand |
+ | %2B | Plus |
/ | %2F | Slash |
= | %3D | Equals |
? | %3F | Question mark |
@ | %40 | At sign |
When to Use
- urlencode For query string parameters (spaces become +)
- rawurlencode For URL path components (spaces become %20)
- RFC 3986 For strict standard compliance
URL encoding ensures special characters are safely transmitted in URLs. Characters like spaces, &, =, and ? have special meanings in URLs and must be encoded.