URL Encoder and Decoder
Percent-encode text for a URL or decode it back, as you type. Paste a full URL and it is also split into its parts, with every query parameter decoded into a table. It all runs in your browser.
The result shows up here as you type.Component or full URL?
Component uses encodeURIComponent. It escapes everything with a meaning in a URL, including &, =, ?, / and #. Use it for one value you're putting into a query string, such as a search term or a redirect URL.
Full URL uses encodeURI. It leaves those characters alone and only escapes spaces and characters that can't appear in a URL. Use it on a whole address you want to keep working.
The classic bug is encoding a redirect URL with encodeURI: its own & splits into extra parameters of the outer URL.
%20 or +?
Both can mean a space. %20 works everywhere in a URL. + means a space only in query strings sent as application/x-www-form-urlencoded, which is what HTML forms produce. Turn on Space as + when you're matching form-style query strings. Elsewhere a + is a literal plus sign.
Reading long tracking URLs
Ad and email links pile up utm_ tags, click IDs and nested, double-encoded redirects. Paste one into decode mode and the table lists each parameter decoded, so you can see where the link really goes before you click it.