URL Encoder & Decoder

Encode and decode URLs and query strings to and from UTF-8 percent-encoding. Supports encodeURIComponent, encodeURI, and RFC 3986.

Samples:
Encoding Standard:
Space Format:
Result:
</> Embed this tool on your website / blog No code required · Copy and paste
HTML Embed Code (iframe):
<iframe src="https://lucentool.com/url-encoder-decoder" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/url-encoder-decoder" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - URL Encoder & Decoder Online</a></div>

encodeURI vs encodeURIComponent Explained

The URL specification (RFC 3986) mandates that only certain ASCII characters are valid. Non-ASCII characters (like Chinese or accents) and reserved delimiters must be converted to hexadecimal percent-encoding: