Loading tool…
Loading tool…
Loading tool…
Safely percent-encode or decode URLs and query string values in your browser using `encodeURIComponent` or `encodeURI`.
Your inputs stay in your browser. Make something useful.
Loading tool…
Here’s how to get the most out of url encode & decode.
Use Query Component mode (encodeURIComponent) when encoding a parameter value that may contain &, =, ?, or / characters. Use Full URI mode (encodeURI) when encoding a complete URL while keeping https://, /, and ? intact.
A few things you might want to know before you start.
encodeURI preserves URL structure characters (: / ? & =), whereas encodeURIComponent encodes them so a URL can be safely embedded inside a query parameter.
No, all processing happens in your browser.
Use our related Campaign UTM Link Builder tool linked below.
RFC 3986 defines %20 as the standard percent-encoding for space characters in URIs.