🔗

URL Encoder/Decoder

Percent-encode or decode URLs and query strings.

🔒 Runs entirely in your browser — nothing is uploaded.

How URL Encoder/Decoder works

How does the URL encoder/decoder work?

It combines two settings: action (encode or decode) and mode (Component or Full URI), mapping to JavaScript's four built-in functions. "Component" uses encodeURIComponent/decodeURIComponent, which escapes reserved characters like & = ? /; "Full URI" uses encodeURI/decodeURI, which leaves URL-structural characters alone and only escapes things like spaces.

When should I use Component vs Full URI mode?

Use Component mode when encoding a single value, like a query string parameter, that might itself contain & or = characters; use Full URI mode when you already have a complete URL and just want to escape unsafe characters like spaces without breaking its structure.

What happens with malformed input?

Decoding a string with broken percent-encoding, such as a trailing % with no hex digits after it, makes the underlying JavaScript function throw a URIError. The tool catches that and shows an error message instead of crashing or returning garbled text.