JSON to Query String
Build a URL query string from a JSON object.
How to use
- 1 Paste a JSON object into the input box.
- 2 Read the encoded query string produced on the right.
- 3 Note that array values turn into repeated keys.
- 4 Copy the query string and append it to your URL.
About JSON to Query String
JSON to Query String turns a JSON object into a ready-to-use URL query string, doing all the encoding for you so you do not have to escape special characters by hand.
Paste an object such as {"page":2,"q":"hello world"} and the tool returns page=2&q=hello%20world, correctly percent-encoding spaces, ampersands and any other reserved characters in both keys and values.
It handles the structures that real APIs use.
When a value is an array, the tool emits a repeated key — {"tag":["a","b"]} becomes tag=a&tag=b — which is the convention most servers and frameworks expect for multi-value parameters.
A null value produces a key with an empty value, and a nested object is JSON-stringified and encoded so it survives the round trip.
The top level must be a single object; arrays or bare values are rejected with a clear message, because a query string needs named parameters.
Everything runs locally in your browser, so nothing you paste is sent anywhere, and it works offline once loaded.
It pairs naturally with the reverse tool when you are moving between JSON config and live URLs while testing requests, building share links, or assembling analytics parameters.
FAQ
How are array values handled?
An array becomes repeated keys, so {"tag":["a","b"]} produces tag=a&tag=b, which most servers expect for multi-value parameters.
Why must the input be an object?
A query string is a set of named parameters, so the top level needs to be a JSON object. Arrays or plain values are rejected with a clear message.