URL Encoder / Decoder
Percent-encode and decode URL components.
mode
input
output
output will appear here
url breakdown
history
no history yet
FAQ
What is URL encoding?
URL encoding (percent-encoding) replaces characters that are not allowed in a URL with a % followed by two hexadecimal digits. For example, a space becomes %20.
When should I encode a full URL vs a component?
Use encodeURIComponent (component mode) for individual query-string values. Use encodeURI (full URL mode) only when you need to preserve the structural characters (://, /, ?, &, =) of a complete URL.