Ctrl+E Encode
Ctrl+D Decode
Ctrl+Shift+C Copy Output
Ctrl+Shift+X Clear All
Input
0 chars
0 bytes
Output
0 chars
0 bytes
Common Examples (click to load)
Spaces
?q=hello world&lang=en
JSON
?data={"key":"value"}
Email
john.doe@example.com
Special chars
price=$19.99 (50% off!)
Nested URL
?url=https://other.com/?id=1
Accents
Café, crêpes & éclairs!
What is URL Encoding?
URL encoding (also called percent-encoding) converts characters into a format that can be transmitted over the Internet. Special characters are replaced with a % sign followed by two hexadecimal digits.
For example, a space becomes %20, an ampersand & becomes %26, and a forward slash / becomes %2F.
encodeURIComponent vs encodeURI
encodeURIComponent— Encodes almost all special characters. Best for encoding individual query parameters or values.encodeURI— Preserves URL-safe characters like:,/,?,#,&. Best for encoding a full URL while keeping its structure.
Features
- Real-time encoding and decoding as you type
- Switch between encodeURIComponent and encodeURI modes
- Character count and byte size display
- One-click copy, swap, and clear
- Keyboard shortcuts for power users
- Works offline — no data leaves your browser
- No signup, no ads, completely free