Small Tools
Web utility

Query String Parser

Decode a query string and group repeated parameter values.

● This tool runs entirely in your browser. Your input is never uploaded to our servers.
Output
Your result will appear here…

How to use Query String Parser

  1. Paste a query string or a URL.
  2. Select Parse.
  3. Read the JSON, where repeated names appear as arrays.

Example

Input / settings:

?tag=tools&tag=privacy&page=2

Output:

{
  "tag": [
    "tools",
    "privacy"
  ],
  "page": "2"
}

tag appeared twice, so it is an array. page appeared once and is the string 2, not a number.

When to use

Overview

Query String Parser decodes the parameters in a query string with the browser's URLSearchParams and prints them as JSON. It accepts a bare query, a query with a leading ?, or a full URL, in which case everything up to the first ? is dropped. A name that appears once becomes a string, and a name that repeats becomes an array of strings.

Supported input

query string

Output details

JSON parameters

Common mistakes

Practical tips

Privacy and security

This tool runs entirely in your browser. Your input is never uploaded to our servers. Parsing runs locally in your browser and decoded values are shown only as text. Query strings often carry tokens or personal data; this tool does not send them anywhere, but servers and browsers that handled the original URL may already have logged it.

References

Frequently asked questions

How does Query String Parser treat a plus sign?

A plus sign is decoded as a space, so q=a+b gives "a b". Percent sequences such as %E2%9C%93 are decoded as UTF-8.

What happens to a parameter that has no value?

It is kept with an empty string, so flag and x= both give an empty value.

Are parameter names case-sensitive?

Yes. A=1&a=2 produces two separate entries named A and a.

Learn more

Related tools