URL Encoder / Decoder

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

 

About URL Encoding

URL encoding (percent-encoding) replaces unsafe characters with a % followed by their hex value. This ensures URLs are transmitted correctly across the internet, as certain characters have special meanings in URLs.

Common Encodings

CharacterEncoded
Space%20 or +
&%26
=%3D
?%3F
/%2F
#%23

Frequently Asked Questions

What is URL encoding?
URL encoding (percent-encoding) converts special characters into a format that can be safely transmitted in URLs. Characters like spaces, &, =, and non-ASCII characters are replaced with % followed by their hex value.
Why do URLs need encoding?
URLs can only contain certain ASCII characters. Special characters like spaces, quotes, and non-English characters must be encoded to be valid in URLs. Without encoding, browsers and servers may misinterpret the URL.
What's the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URI but preserves characters like :, /, ?, and # that have special meaning in URLs. encodeURIComponent encodes everything except letters, digits, and - _ . ~ — use it for encoding individual parameter values.
Keyboard Shortcuts
Ctrl+Enter Run / Format
Ctrl+Shift+C Copy output
Ctrl+L Clear