URL Encoder & Decoder
Encode special characters for URLs or decode percent-encoded strings.
About URL Encoding
URL encoding (percent-encoding) converts characters that aren't allowed in URLs into a format that can be transmitted. Special characters are replaced with a % followed by their hex value.
When to Use
- Query parameters: When passing user input in URLs
- Special characters: Spaces, &, =, ?, #, etc.
- Non-ASCII: International characters, emojis
- API requests: When building URLs programmatically
Encode vs Encode Component
- Encode: Uses encodeURI() - preserves URL structure characters like /, ?, #
- Encode Component: Uses encodeURIComponent() - encodes everything except alphanumerics
Use "Encode Component" for query parameter values. Use "Encode" for full URLs.