JSON to Query String
Flatten a JSON object into URL query parameters
About the JSON to Query String
The JSON to Query String tool flattens an object into URL parameters. Nested objects and arrays become bracketed keys, which is the format most APIs and analytics tools expect.
Building query strings by hand is error prone once nested filters are involved. Generate the string, then click through it to confirm the receiving API reads the bracket keys as expected.
- ✓Nested objects and arrays
- ✓Bracket and dot notation
- ✓Optional base URL prefix
How to use the JSON to Query String
- 1
Paste a JSON object.
- 2
Pick bracket or dot notation and optional encoding.
- 3
Copy the query string or the full URL.
Frequently asked questions
Why do arrays use bracketed indexes?+
Indexes preserve order and match the format used by PHP, Rails, and many query parsers. Some APIs expect a repeated key instead, which you can adjust by hand.
Are special characters encoded?+
Yes by default, so spaces, ampersands, and non-Latin characters are percent-encoded and safe inside a URL.
Save JSON to Query String to your favorites, or keep browsing converters.
Browse all 45 converters →