url-encoder

Encode or decode a URL / query string value, parse a full URL into its components, or build a URL from parts. Everything runs in your browser.

client-side only encodeURIComponent URL parser URL builder
input
output
url-parser — paste a full URL in the input above to parse it
Paste a URL in the input box above.
url-builder — assemble a URL from parts

// encodeURIComponent vs encodeURI

The most common mistake: using encodeURI on a query parameter value. That leaves & and = unencoded, which breaks query string parsing when the value contains those characters.

// in .NET