Query String ↔ JSON

Convert URL query strings to JSON objects and JSON back to query strings, with repeated keys turned into arrays. Free online converter.

About this tool

Convert URL query strings to JSON and JSON back to query strings. Paste a full URL or just the part after ?.

How to use

  1. Choose Query → JSON or JSON → Query.
  2. Paste the input.
  3. Copy the output.

Frequently asked questions

How are repeated keys handled?

tag=a&tag=b becomes "tag": ["a", "b"], and arrays become repeated keys in the other direction.

Are values decoded?

Yes. Percent-encoding and + for spaces are decoded.

What about nested objects?

Nested objects are written as JSON strings in the query value.

Related tools