Encode and decode URLs to ensure special characters are properly formatted for web transmission. All processing happens in your browser.
Input
Enter URL or text with special characters to encode/decode
Output
Statistics
| Input Length: | 0 |
| Output Length: | 0 |
| Characters Encoded: | 0 |
| Percent Signs (%): | 0 |
Common URL Encodings
| Character | URL Encoded | Usage |
|---|---|---|
| (space) | %20 or + | Spaces in URLs |
& | %26 | Query parameter separator |
= | %3D | Key-value separator |
? | %3F | Query string start |
# | %23 | Fragment identifier |
% | %25 | Escape character |
/ | %2F | Path separator |
: | %3A | Protocol/port separator |
@ | %40 | User info separator |
+ | %2B | Plus sign (or space in query) |
When to Use Each Mode
URL Component Mode
- Best for query parameter values
- Encodes all special characters including / ? &
- Use when encoding part of a URL
- Example:
encodeURIComponent("hello world")
Full URL Mode
- Best for complete URLs
- Preserves URL structure (://?&=)
- Use when encoding entire URL strings
- Example:
encodeURI("https://example.com")