Query String to JSON Converter

Turn a URL or query string into JSON. Repeated keys become lists and bracket notation becomes nested objects.

Processed on your device. Files are not uploaded

How to turn a query string into JSON

  1. Paste your URL or query string

    Paste or type it into the box, or press Try an example. A full URL works too.

  2. Convert values

    Tick the box to turn numbers and true or false into real JSON values. Pick the layout too.

  3. Copy or download

    Use the JSON to inspect or rebuild the request.

Worked example

This is what Query String to JSON Converter gives for its own sample values. Open the tool above and change anything to try your own.

URL or query string

https://example.com/search?q=red+shoes&page=2&tags=new&tags=sale&filter[size]=42
Indentation
2 spaces
Convert numbers and true/false
No

JSON

{
  "q": "red shoes",
  "page": "2",
  "tags": [
    "new",
    "sale"
  ],
  "filter": {
    "size": "42"
  }
}

About Query String to JSON Converter

Turn a whole URL or just its query string into JSON. Plus signs and percent codes are decoded, repeated keys become lists, and brackets such as filter[size]=42 become nested objects.

FAQs

Do I need to paste the whole URL?

No. A bare query string works, with or without the leading question mark.

What about repeated keys?

tags=a&tags=b becomes a list.

Can I go the other way?

Use JSON to Query String Converter.

Related tools