Skip to content
Free developer tool

Query string parser

This query string parser reads the part of a URL after the ? and lists every key and value in order, fully decoded. It helps when you are debugging tracking links, form submissions or API calls and need to see exactly what was sent.

  • Runs in your browser
  • Free, no account needed
  • Copy or download the result

Your input

73 characters

Result

Pairs6
Distinct keys
5
Repeated keys
tag
Empty values
1
KeyValue
qgreen tea & honey
tagorganic
tagloose-leaf
sortprice
page2
gift(empty)

The short answer

Parsing a query string splits it at & into pairs, splits each pair at the first =, and decodes + as a space and %XX as a byte. Repeated keys are kept as separate pairs in their original order. A key with no value is read as empty.

FormulaSplit at &, then at the first = of each pair; + means space and %XX means one byte

Worked exampleThe sample string has 6 pairs and 5 distinct keys; the key tag repeats (organic and loose-leaf), q decodes to green tea & honey, and gift has an empty value.

Example

Input
?q=green+tea+%26+honey&tag=organic&tag=loose-leaf&sort=price&page=2&gift=
Result
Pairs6
Distinct keys
5
Repeated keys
tag
Empty values
1
KeyValue
qgreen tea & honey
tagorganic
tagloose-leaf
sortprice
page2
gift(empty)

How to use the query string parser

  1. Paste the query into the Query string, optionally starting with ? box.
  2. Remove any # fragment from the end.
  3. Read the pair count and the Key and Value table, which update as you type.
  4. Press Copy result or Download.

How it works

A leading ? is removed and pairs are split on &. Empty pieces, such as the gap in &&, are skipped.

Repeated keys are kept as separate pairs in their original order, and a key with no = gets an empty value.

Only the first = in a pair splits the key from the value, so any later = signs stay in the value.

Each + becomes a space and percent codes are decoded. Bad codes or invalid UTF-8 cause an error.

A # anywhere in the input is rejected. Remove the fragment, or write a literal # as %23.

Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.

Questions and answers

Can I paste a whole URL?

Paste only the part after the ?. A full URL would be read as part of the first key. Use the URL parser for complete addresses.

Why are repeated keys not merged?

Servers handle repeated keys in different ways, so the tool keeps every pair in order instead of guessing how to combine them.

Is ; treated as a separator?

No. Only & separates pairs, so a semicolon stays part of the key or value.

Is the query sent anywhere?

No. Parsing runs in your browser.

Last updated November 1, 2026. Maintained by SnowRock. How our tools work

All 220 SnowRock tools