Skip to content

JSON to Query String

Serialise a JSON object into a percent-encoded URL query string.

Quick Tool Overview

The JSON to Query String converter serialises an object into a percent-encoded query string, writing nested objects in bracket notation and letting you pick which of the three array conventions your backend actually parses.

What it does
Serialises a JSON object into a URL query string
You give it
A JSON object, nested or flat
You get back
An encoded query string ready to append to a URL
Best for
Building test URLs, curl commands and tracking links
Developer Tools Free, unlimited use No sign-up Runs in your browser

About the JSON to Query String

The reverse trip: a JSON object becomes a query string ready to append to a URL. Nested objects are written in bracket notation, and every key and value is percent-encoded so the result is safe to paste into an address bar or a curl command.

Arrays are the part libraries disagree about, so the format is a choice rather than an assumption. Bracket style writes tags[]=a&tags[]=b, which PHP and Rails expect. Indexed style writes tags[0]=a&tags[1]=b, which some strict parsers require. Repeated style writes tags=a&tags=b, which Express and most Java frameworks read. Pick the one your backend actually parses and the output will round-trip through the Query String to JSON tool unchanged.

Key features of the JSON to Query String

Three array styles

Bracket for PHP and Rails, indexed for strict parsers, repeated for Express and most Java frameworks. Pick the one your backend reads.

Correct percent-encoding

Reserved characters inside a value are escaped rather than breaking the string, so an ampersand in a name stays part of that name.

Nested objects supported

Any depth of nesting is written in bracket notation, which is what server-side parsers rebuild into structures.

Readable mode

Turn encoding off to inspect the structure of a long query string, then turn it back on for the real thing.

Round-trips exactly

The output reads back through the Query String to JSON tool unchanged, which is the quickest way to confirm it is right.

How to use the JSON to Query String

  1. 1

    Paste a JSON object

    Nested objects and arrays are supported; the root must be an object.

  2. 2

    Pick an array style

    Bracket, indexed or repeated — match whatever your backend parses.

  3. 3

    Choose the encoding

    Leave percent-encoding on for a usable URL, or turn it off to read the structure more easily.

  4. 4

    Copy the query string

    Append it to a URL after a question mark.

Frequently asked questions

Bracket for PHP and Rails, repeated for Express and most Java frameworks, indexed when a strict parser insists on positions. If you are unsure, repeated is the most widely understood.

Reviews of the JSON to Query String

What people who use the JSON to Query String think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the JSON to Query String. It takes half a minute and no account.

Write the first review

More developer tools