DevToolbox

URL Encoder / Decoder

Percent-encode text for a URL, a query value or a full URI, and decode %XX back to readable text. UTF-8 safe.

Ready.

Query string builder

One key=value per line. Values are encoded as components, so spaces and & are safe.

Which encoder to use

Invalid percent sequences are reported instead of silently mangled.

What this URL encoder does

Two encoders, because they are not the same: encodeURIComponent escapes a value to be placed inside a query parameter, while encodeURI keeps structural characters such as slashes and colons intact.

Decoding accepts plus signs as spaces, which is how form submissions encode them, and reports the offset of a malformed percent escape instead of failing silently.

The query builder assembles key and value pairs into a ready-to-paste string with each part encoded correctly. All processing happens in the page.