URL Encoder / Decoder

Encode special characters for URLs or decode percent-encoded strings.

FAQ

What is URL encoding?

URL encoding (percent-encoding) replaces characters that have special meaning in URLs — like spaces, &, and = — with a % followed by their hexadecimal code. For example, a space becomes %20.

When do I need to URL-encode?

When building query strings or embedding parameters in URLs. Characters like &, =, ?, /, and # need encoding to avoid being misinterpreted as URL structure.

What's the difference between encodeURI and encodeURIComponent?

This tool uses encodeURIComponent, which encodes everything including &, =, and /. Use it for encoding individual parameter values. encodeURI is for encoding a full URL and leaves those characters intact.