JSON to Query String Converter
Example
Input:
{"q": "loona tools", "page": 2}Output:
q=loona%20tools&page=2
About this converter
APIs speak in query strings while code thinks in objects; this converter bridges them the way mainstream libraries (qs, Axios params, Rails) do: scalars as key=value with full percent-encoding, nested objects in bracket notation, arrays as repeated keys. Keys are encoded too — a key containing & or = would otherwise split the string apart. One warning from experience: bracket notation is a convention, not a standard — some servers expect a[]=1 arrays or dot notation instead. If your API disagrees with the output, its docs define the dialect; this page implements the most widely accepted one.
Frequently Asked Questions
How are arrays encoded?
As repeated keys: {"tag": ["a","b"]} becomes tag=a&tag=b — the form most server frameworks parse back into an array.
Why brackets for nested objects?
a[b]=1 is the de-facto standard (qs/Rails/PHP lineage) for expressing structure in a flat string.