URL Encoder / Decoder
Encode and decode URLs, query parameters, and form data with full or component mode.
Input
Output
Click "Encode" or "Decode" to see the result.
encodeURIComponent vs encodeURI
encodeURIComponent encodes all special characters including /?:&=+@# — use it for query parameter values.
encodeURI preserves URL structure characters — use it for full URLs where you need the slashes and colons to remain intact.
| Character | Component | Full URL |
|---|---|---|
| / | %2F | / (preserved) |
| ? | %3F | ? (preserved) |
| & | %26 | & (preserved) |
| = | %3D | = (preserved) |
| # | %23 | # (preserved) |
| space | %20 | %20 |