Developer

JSON to Query String

Convert a JSON object into a URL query string with proper encoding, supporting arrays and nested values. The reverse of a query-string parser. Free, private, instant.

Last reviewed by the Radiatus Cloud team

Need this built for your product?

We design, build & host secure software & APIs.

Talk to an engineer

Convert a JSON object into a query string

Turning a JSON object into a URL query string means encoding each key and value correctly, and this tool does it. It converts a JSON object into a URL query string with proper encoding, supporting nested and array values.

Why proper encoding matters

A query string appends parameters to a URL, and each key and value must be percent-encoded so that spaces, special characters and reserved symbols do not break the URL or change its meaning. Building this by hand from an object is error-prone, and nested objects and arrays need conventions for how they flatten into parameters. The tool handles the encoding and the flattening, producing a valid query string from your JSON. This is the reverse of parsing a query string, and it is exactly what you need when constructing a URL programmatically from structured data.

A valid query string

It runs entirely in your browser, so nothing you paste is uploaded and the result is yours to copy straight into a project, which lets you work on private code and data without anything leaving your machine.

Related tools

  • JSON Formatter — Format and beautify JSON in your browser. Pinpoints syntax errors by line and column, flags unsafe integers, and never uploads your data to a server.
  • JSON Validator — Validate JSON syntax with precise line and column errors, and check documents against a JSON Schema. Runs locally in your browser, nothing uploaded.
  • Regex Tester — Test regular expressions against sample text with live match highlighting, capture groups and flag control. Runs entirely in your browser.
  • HTML Minifier — Minify HTML by removing comments and redundant whitespace, without breaking inline elements or pre blocks. Runs entirely in your browser.

Frequently Asked Questions

What does it produce?

A URL query string from a JSON object, with each key and value properly percent-encoded so the URL is valid.

Why does encoding matter?

Because spaces, special characters and reserved symbols must be encoded, or they break the URL or change its meaning. The tool encodes them correctly.

Does it handle nested objects and arrays?

Yes. It flattens nested and array values into parameters using conventions, so structured data converts to a valid query string.

Is this the reverse of parsing?

Yes. It builds a query string from an object, where a parser breaks a query string into an object. The two are complementary.

Is my JSON uploaded?

No. The conversion runs entirely in your browser.

Privacy & Security

All processing happens locally in your browser — nothing is uploaded.

Data: None
Client-side-Side
Active
v1.0

How to Use

Paste a flat JSON object; an encoded query string is generated.

Disclaimer: This tool is provided "as is" without warranty of any kind. Results are for educational and utility purposes.