Query string to JSON

Paste a URL or just the query string portion (with or without the leading ?) and get a JSON object. Bracket notation builds nested objects and arrays — user[name]=Anna&tags[]=red&tags[]=blue becomes {"user":{"name":"Anna"},"tags":["red","blue"]}.

Query string to JSON

Notes

  • The leading ? and any URL prefix (https://example.com/path?) are stripped automatically.
  • URL-encoded values are decoded (e.g. %20 → space, %26&).
  • Repeated keys without brackets become arrays: tag=a&tag=b{"tag":["a","b"]}.
  • Bracket notation: user[email]=… creates nested objects; user[]=… appends to an array.

FAQ

What happens with empty values?

foo="foo": "". foo with no equals sign → "foo": null.

Related calculators