JSON to Query String Converter

Build URL parameters from a JSON object, encoded and ready to append to a URL.

100% Client-Side Processing — your data never leaves this browser. Works offline. How it works

0 lines • 0 bytes Ready
Tip: drop a file anywhere on the editor
Input
Paste, type or drop a file
1
Result
Updates as you type
// Output will appear here…
About this tool

How the JSON to Query String works

Convert JSON to a URL query string with encoding. Choose how arrays are written (tags[]=, repeated keys, indexes or commas); nested objects use brackets.

How to use the JSON to Query String

  1. Paste a JSON object.
  2. Pick the array style and encoding.
  3. Copy the query string and append it to your URL.

JSON to Query String example

Input
{"q":"running shoes","page":2,"size":[9,10],"filter":{"color":"blue"}}
Result
q=running%20shoes&page=2&size[]=9&size[]=10&filter[color]=blue

When to use it

  • Building API request URLs for testing.
  • Creating links with filters and UTM parameters.
  • Generating fixtures for URL parsing tests.

Tip: Encoding makes spaces %20; some servers expect + instead, which is equivalent in query strings.

Array styles

tags[]=a&tags[]=b, tags=a&tags=b, tags[0]=a or tags=a,b to match your backend.

Nested objects

filter: {color: "blue"} becomes filter[color]=blue.

Encoding

Values are percent-encoded so spaces, & and = are safe; turn it off for readable output.

Null values

null becomes an empty value (key=).

FAQ

Common questions

Which array style should I use?

PHP and Rails expect tags[]=; Express with qs reads all styles; many REST APIs use repeated keys or commas. Check your API documentation.

Are brackets encoded?

Brackets are left readable (filter[color]); they are accepted by browsers and servers.

Does it add the leading ?

No, so you can append it with ? or &.

Is it private?

Yes, the query string is built in your browser.