~ / tools / url-encoder

URL Encoder / Decoder

Percent-encode & decode URLs — free, instant, 100% in your browser.

Input

component = encodeURIComponent (encodes everything) · full URL = encodeURI (preserves URL structure)

$ man url

URLs can only contain a limited set of characters, so anything else — spaces, ampersands, question marks, non-ASCII text — must be percent-encoded before it can travel in a query string or path segment. Getting this wrong is one of the most common causes of broken links, mangled search parameters and failed API calls.

This tool offers the two encoding modes you actually need. Component mode (encodeURIComponent) encodes everything that could terminate or split a parameter, which is what you want for individual query-string values. Full-URL mode (encodeURI) preserves the structural characters — :, /, ?, & — so you can safely encode a complete address without destroying it.

Decoding works the same way in reverse and is the quickest way to read a gnarly callback URL, an OAuth redirect, or a tracking link several layers deep. Everything executes in your browser using the platform's native functions — fast, accurate to the spec, and completely private.