jsontoolskit.org
JSON and JSON Schema utilities, in the browser
Say hi →

JSON to Query String

JSON object → URL-encoded query parameters · updated 28 July 2026

Turn a JSON object into a URL query string. Nested objects and arrays are serialised in the style your backend expects — bracket, dot, repeated keys, or comma-joined — and everything is percent-encoded so the result is safe to paste into a URL.

Paste input to start.

How to convert JSON to a query string

  1. Paste a JSON object into the input pane.
  2. Pick the style that matches your server. Rails and PHP expect brackets; Express with extended query parsing accepts brackets too; many Go and Java handlers want repeated keys.
  3. Tick Skip null values if a null should mean "omit the parameter" rather than send an empty one.
  4. Turn off percent-encoding only to read the output more easily — the unencoded form is not safe in a real URL.
  5. Copy the query string and append it to your endpoint.

Which style does my framework want?

Query-string nesting is a convention, not a specification. When in doubt, send a test request and see what the server actually parses.

Privacy

Nothing is uploaded. The conversion runs in this tab using your own browser's JavaScript engine — no server sees your data, and the page keeps working with the network disconnected.

FAQ

Why are my brackets encoded as %5B and %5D?

Because that is correct — brackets are reserved characters in a URI. Every mainstream framework decodes them before parsing, so nesting still works. Turn encoding off if you only want to read the output.

Are spaces encoded as %20 or +?

As %20, which is valid everywhere in a URL. The + form is only correct for application/x-www-form-urlencoded bodies, though most servers accept both in a query string.

Is there a length limit?

Not in this tool, but there is in practice: browsers and proxies start failing somewhere between 2,000 and 8,000 characters. If your query string is that long, use a POST body.