Skip to main content

Query Params ⇄ JSON Converter

Convert URL query strings to JSON and JSON back to query strings, with repeated keys and Unicode intact

Query Input

Limit: 500,000 characters.

Options

Direction
Key Order
Advanced

JSON Output

Paste a URL or query string, or load an example.

How to Use

  1. 1.Choose Query → JSON or JSON → Query.
  2. 2.Paste a URL, query string or JSON object, or load an example.
  3. 3.Adjust duplicate keys, key order, output format or nested-object handling.
  4. 4.Copy or download the result; Swap sends it back as input.

Query Params ⇄ JSON Converter

Convert URL query strings to JSON and JSON objects back to query strings in your browser. Paste a full URL, ?query or bare key=value pairs; repeated keys, Unicode and emoji round-trip safely.

Decoding Rules

+ decodes to a space and %2B to a literal +. foo and foo= both become "". Text after # is a fragment and is ignored. Each non-empty line is read as its own query and the parameters are combined. Malformed percent sequences keep the raw text and show a warning. JSON null becomes key=.

Limits and Privacy

Input and options are saved in browser storage; clear site data to remove them. Nothing is uploaded. Up to 500,000 characters. JSON parsers list integer-like keys first, so their order can change in JSON → Query. Bracket indexes such as a[0] become object keys.

Frequently asked questions
Why does + become a space but %2B a plus sign?
Query strings use the application/x-www-form-urlencoded rules that browsers apply to forms: an unencoded + means a space, and a real plus must be sent as %2B. The converter follows the same rules, and JSON → Query can write spaces as %20 (default) or + so the output matches what your server expects.
What happens to repeated keys such as tag=a&tag=b?
By default they become an array, ["a", "b"], so no value is lost. Under Advanced you can keep only the first value, only the last value, or make every key an array; a note reports how many values were dropped. In JSON → Query, arrays become repeated keys or key[] pairs.
Can I convert nested JSON objects to a query string?
Query strings are flat, so nested objects are rejected by default with the path that needs attention. Choose bracket notation (filter[price][max]=300), dot notation (filter.price.max=300) or a JSON-string value under Advanced. Enable Bracket Keys in Query → JSON to read bracket notation back into nested objects.

CodingTool is officially live on