Query String to JSON Converter
Turn a URL or query string into JSON. Repeated keys become lists and bracket notation becomes nested objects.
How to turn a query string into JSON
Paste your URL or query string
Paste or type it into the box, or press Try an example. A full URL works too.
Convert values
Tick the box to turn numbers and true or false into real JSON values. Pick the layout too.
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.