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
Private: runs on this device

Input

40 characters

Result

{
  "pairCount": 4,
  "pairs": [
    [
      "q",
      "tea & coffee"
    ],
    [
      "tag",
      "data"
    ],
    [
      "tag",
      "AI"
    ],
    [
      "empty",
      ""
    ]
  ]
}

Example

Input
?q=tea+%26+coffee&tag=data&tag=AI&empty=
Result
{
  "pairCount": 4,
  "pairs": [
    [
      "q",
      "tea & coffee"
    ],
    [
      "tag",
      "data"
    ],
    [
      "tag",
      "AI"
    ],
    [
      "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. Press Run. This tool has no options.
  4. Copy result or Download the JSON list of pairs.

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.

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.

All 100 SnowRock tools