Loona Automation logoLoona Developer Tools
Home › Data Converters

JSON to Query String Converter

In short: turn a JSON object into a URL query string — values percent-encoded, nested objects in bracket notation (a[b]=1), arrays as repeated keys.
🔒 Private by design: everything runs in your browser on this device. Your input is never uploaded to a server.

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.

Related Developer Tools

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.