Query String to JSON
Convert a URL query string into JSON. Handles repeated keys as arrays, bracket notation like a[b][]=1 as nested objects, and decodes every value. Free tool.
Runs in your browser. Nothing is uploaded.
About Query String to JSON
Paste a full URL or just the part after ?, and every parameter becomes a JSON key. Repeated keys turn into arrays and PHP/Rails-style bracket keys such as filters[size][]=42 become nested objects and arrays.
Optionally convert numeric and true/false values to real JSON numbers and booleans, which is handy when building test fixtures or comparing what a form actually submitted.
How to use Query String to JSON
- Type or paste your text into the input box. Press Sample to see an example.
- Adjust the options. The result updates as you type.
- Copy the result, or press Use as input to chain another transformation.
Frequently asked questions
Are + signs treated as spaces?
Yes. Query strings use + for spaces in form encoding, and the parser decodes them the same way browsers do.
What is the reverse tool?
JSON to Query String builds a URL query from a JSON object.
Is Query String to JSON free and private?
Yes. Query String to JSON is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.