JSON to Query String
Turn a JSON object into a URL-encoded query string. Choose how arrays are written, nest objects with brackets and encode spaces as %20 or +. Free and instant.
Runs in your browser. Nothing is uploaded.
About JSON to Query String
JSON to Query String flattens an object into key=value pairs joined by &, encoding every value so it's safe in a URL. Nested objects use bracket notation (filter[brand]=acme), the convention understood by PHP, Rails, Express qs and most API frameworks.
Arrays can be repeated keys, bracket keys, indexed keys or a comma-separated list, because different back ends expect different styles.
How to use JSON to Query String
- Type or paste your text into the input box. Press Sample to see an example.
- Adjust the options. The result updates as you type.
- Copy the result, or press Use as input to chain another transformation.
Frequently asked questions
Which array style should I use?
Repeated keys suit most servers. Use brackets for PHP or Rails, and comma lists for APIs that document them (common in REST filters).
Are brackets percent-encoded?
They're left readable. Browsers and servers accept unencoded [ and ] in query keys.
Is JSON to Query String free and private?
Yes. JSON to Query String is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.