Query String to JSON Converter
Example
Input:
q=loona%20tools&page=2
Output:
{
"q": "loona tools",
"page": 2
}About this converter
Debugging an API call usually starts with reading its query string, and bracket-encoded strings defeat the human eye quickly. This parser inverts the mainstream encoding: %XX decoding with + as space, a[b][c] paths building nested objects, repeated keys collecting into arrays, and clean numeric values typed as numbers. It is deliberately strict about one thing — malformed percent-escapes are reported, because a query string with a broken escape was usually truncated in a log, and knowing that beats a silently wrong parse.
Frequently Asked Questions
Does + mean space here?
Yes — in query strings + is the form-encoding space. A literal plus arrives as %2B and decodes to +.
What if the same key appears with brackets and without?
Values merge into an array at the colliding key — the parse stays lossless rather than picking a winner.