Turn JSON into a query string
Paste a flat JSON object and get an `a=1&b=2` query string. Arrays become repeated keys. Nested objects are stringified as a single value.
Useful when you prototype API calls in JSON but the endpoint expects classic query params.
Null and undefined values are skipped. Nested objects become a JSON string value — prefer flat shapes for typical APIs.
How to build
- Paste a JSON object
- Copy the query string
- Append it after `?` in your URL
Why use this
- Faster than hand-escaping every parameter.
- Keeps array parameters in the repeated-key form many backends expect.
- Local only — safe for draft payloads with test tokens.
Scenarios
- Build a filter URL from a JSON draft
- Turn Postman body examples into GET queries
- Share a reproducible query in a ticket
Tips
- Pretty-print first with JSON formatter if your paste is one long line.
- Encode is applied via URLSearchParams — special characters are handled for you.
Examples
| Input | Output | Note |
|---|---|---|
| { "a": "1", "b": "hello" } | a=1&b=hello | — |
| { "tag": ["a", "b"] } | tag=a&tag=b | Arrays → repeated keys |
JSON → Query FAQ
- Does it accept arrays at the root?
- No — root must be a plain object. Put lists under a key.
- Need the reverse?
- Use Query string to JSON.