Free · No sign-up · Runs in your browser

JSON to Query String Converter

Convert JSON parameters into a URL query string or decode query parameters into JSON, including repeated keys and Unicode.

STEP 1

Start with your input

Edit the example or replace it with your own text.

STEP 2

Choose your options

These settings are optional. Keep the defaults to get started.

How to use JSON to Query String Converter

  1. Paste a JSON object of scalar values and arrays, or switch direction and paste a query string.
  2. Convert parameters; arrays become repeated keys when encoding.
  3. Copy the output and verify that your receiving API expects the same parameter convention.

Repeated keys rather than invented array syntax

A JSON array such as tag: ["css", "web"] becomes two tag parameters. Bracket notation and comma-separated arrays are different API conventions and are not added automatically. Nested objects are rejected because there is no universal nested-query representation. Null becomes an empty value and empty arrays contribute no parameters.

Decoding has string semantics

Query strings do not carry JSON number, boolean or null types. Decoding therefore returns strings, or arrays of strings for repeated keys. A plus sign represents a space; a literal plus must be encoded as %2B. Paste only the query part or use the URL Parser for complete URLs. Malformed percent-encoded UTF-8 is rejected rather than silently repaired.

Example input

{"q":"hello world","tag":["css","web"],"page":2}

Will a round trip preserve every JSON type?

No. Numbers and booleans decode as strings, null becomes an empty string, and empty arrays are omitted. Query parameters are textual.

Is input uploaded?

Processing takes place in your browser. This tool does not send your input or selected files to a conversion API.

Related tools and guides

Browse all developer tools