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

Query String to JSON

URL or query string → JSON object · updated 28 July 2026

Paste a full URL or just the query part and get structured JSON. Percent-escapes and +-as-space are decoded, bracket and dot nesting is rebuilt, repeated keys collect into arrays, and numbers and booleans are recognised.

Paste input to start.

How to convert a query string to JSON

  1. Paste a whole URL, a ?… fragment, or a bare a=1&b=2 string — all three work.
  2. Any #fragment is discarded, since it never reaches the server.
  3. Leave nesting on to rebuild tags[0] and a.b into real structures, or tick Keep flat keys to see exactly what was sent.
  4. Tick Split comma-separated values if your API uses the comma-joined array convention.
  5. Copy or download the JSON.

How ambiguity is resolved

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

My URL contains a token. Is that safe to paste?

The parsing runs in your browser and the URL is never transmitted. Still, treat tokens carefully and clear the pane afterwards — and remember that a token in a URL is already exposed to browser history and server logs wherever it came from.

Why did my zip code become a number?

Type inference. A value with leading zeros stays a string, but a plain numeric value becomes a number. Switch Value types to strings to keep everything verbatim.

Can I rebuild the query string?

Yes — JSON → query string. For URL surgery beyond parameters, see urltoolskit.org.