JSON to query string

Paste a JSON object and get a URL-encoded query string ready to append to a URL. Nested objects and arrays serialise via bracket notation by default — switch to dot notation or repeated-key form if your server expects them.

JSON to query string

Array styles

  • Brackets (default) — tags[]=red&tags[]=blue. PHP, Rails, Node Express all accept this.
  • Indicestags[0]=red&tags[1]=blue. Useful when order matters and the server uses indexed access.
  • Repeattags=red&tags=blue. ASP.NET, Java EE.
  • Commatags=red,blue. Compact but breaks if values themselves contain commas.

FAQ

What about null and undefined?

Keys whose value is null are emitted as bare keys (foo); keys whose value is undefined are skipped. true/false become the literal strings.

Related calculators