Query String to JSON Converter

Paste a full URL or a query string and see its parameters as JSON.

100% Client-Side Processing — your data never leaves this browser. Works offline. How it works

0 lines • 0 bytes Ready
Tip: drop a file anywhere on the editor
Input
Paste, type or drop a file
1
Result
Updates as you type
// Output will appear here…
About this tool

How the Query String to JSON works

Convert a URL or query string to JSON. Decodes values, builds arrays from repeated keys and tags[]=, and nests filter[color]=blue style parameters.

How to use the Query String to JSON

  1. Paste a URL or query string.
  2. Choose whether to detect numbers and booleans.
  3. Copy the JSON.

Query String to JSON example

Input
https://shop.example/search?q=running+shoes&page=2&size[]=9&size[]=10&filter[color]=blue
Result
{
  "q": "running shoes",
  "page": 2,
  "size": [
    9,
    10
  ],
  "filter": {
    "color": "blue"
  }
}

When to use it

  • Debugging tracking links and UTM parameters.
  • Inspecting search and filter URLs from web apps.
  • Turning a URL into a test fixture.

Tip: Use JSON to Query String to rebuild the URL after changing a parameter.

Full URLs

Paste a whole URL; everything before ? and after # is ignored.

Decoding

Percent-encoding and + as space are decoded.

Arrays and objects

Repeated keys and tags[]= build arrays; filter[color]=blue builds nested objects.

Typed values

Numbers and booleans are detected, while values like 007 keep their leading zeros.

FAQ

Common questions

Which bracket styles are supported?

a[]=1, a[0]=1 and a[b][c]=1, the styles used by PHP, Rails, Express (qs) and most frameworks.

What happens with repeated keys?

id=1&id=2 becomes "id": [1, 2].

Can I keep everything as strings?

Yes, untick "Detect numbers & booleans".

Is the URL sent anywhere?

No, it is parsed in your browser.