URL Encoder / Decoder
Encode or decode URLs and query strings. Handles Unicode, special characters, and percent-encoding.
Result will appear here...
What is URL Encoding?
URL encoding (percent-encoding) replaces unsafe characters in URLs with a % followed by two hexadecimal digits. For example, a space becomes %20, and & becomes %26. This ensures URLs are transmitted correctly across the internet.
encodeURI vs encodeURIComponent
- Encode (encodeURI): Encodes a full URI, preserving characters like
:,/,?,# - Encode Component: Encodes everything including reserved URI characters — use for query parameter values
- Decode: Reverses both encoding types automatically