1666889← Home

URL Encoder & Decoder

Percent-encode or decode any text or full URL, and parse query strings into a readable table. Everything runs locally in your browser — nothing is uploaded.

Action
Scope

Full URL leaves the characters that give a URL its structure untouched (: / ? # & =), so a whole link stays a working link. Component encodes those characters too — use it for one value inside a URL, such as a single query parameter, so it cannot break the surrounding URL. Example: https://example.com/a b?x=1&y=2 → full URL gives https://example.com/a%20b?x=1&y=2, component gives https%3A%2F%2Fexample.com%2Fa%20b%3Fx%3D1%26y%3D2.

Query string parser

Paste a full URL or just a query string. The parser shows each parameter decoded — duplicate keys are listed separately, empty values are shown as (empty), and a + in a query value means a space.

Press “Parse query string” to see the decoded parameters.

Frequently asked questions

What is URL encoding (percent-encoding)? URL encoding, or percent-encoding, replaces characters that are not allowed or have a special meaning in a URL with a % followed by two hexadecimal digits for each UTF-8 byte — for example, a space becomes %20 and é becomes %C3%A9. It lets any text travel safely inside a URL.

What is the difference between encodeURI and encodeURIComponent? encodeURI is for a complete URL: it leaves the characters that give a URL its structure untouched (: / ? # & = and similar), so https://example.com/a b stays a working link with only the space encoded. encodeURIComponent is for one piece of a URL, such as a single query value: it encodes those structural characters too, so a value like a&b=c becomes a%26b%3Dc and cannot break the query string. Use encodeURI for whole URLs and encodeURIComponent for individual values.

Why does decoding fail with a malformed percent sequence? A valid percent sequence is % followed by exactly two hexadecimal digits (0–9, A–F). %ZZ is not valid hex, and a lone % at the end of the text has no digits at all, so the decoder cannot know which byte was meant and reports an error instead of guessing. Fix the sequence or re-encode the original text.

What happens to + in a query string? In a query string, + means a space, following the application/x-www-form-urlencoded rule used by HTML forms. The query parser on this page therefore turns + into a space before decoding. Everywhere else in a URL, + is a literal plus sign and is left alone.

Is my text uploaded anywhere? No. All encoding, decoding, and query parsing happens locally in your browser.

URL Encoder & Decoder · Runs locally in your browser

More tools are coming. Back to thetool list.