URL Encoder/Decoder
Encode and decode URL strings safely
Encoding Type
0 characters
0 characters
Common URL Encodings
| Character | Original | Encoded |
|---|---|---|
| Space | %20 | |
| Question Mark | ? | %3F |
| Ampersand | & | %26 |
| Equals | = | %3D |
| Forward Slash | / | %2F |
| Colon | : | %3A |
| Pound/Hash | # | %23 |
| Plus | + | %2B |
About URL Encoding:
- Component Encoding (encodeURIComponent): Encodes all special characters including ?, &, =, etc. Use for query parameters and form data.
- Full URL Encoding (encodeURI): Preserves URL structure like :, /, ?, #. Use for complete URLs.
- URL encoding is essential for passing data safely through URLs
- Spaces are encoded as %20 (not + in modern standards)
- Always encode user input before adding it to URLs