Parse a query string into JSON

Developers turn a query string into JSON when they need to inspect the parameters sent with a request.

Parse a query string into JSON, so the values needed for debugging are easy to inspect. Use it for free in your browser, with no account required.

How to use

  1. Paste the query string into the input area, with or without the leading question mark depending on the form you have.
  2. Choose the conversion you need, such as query string to JSON, JSON to parameters, or key-value lines.
  3. Run the analysis and compare the output to find keys, values, separators and repeated parameters.
  4. Clear the input or import a small text file when you want to test another set of values without mixing examples.

Example

With the sample string, the result shows how page, sorting and active values are separated. Use that view to check whether a missing or duplicated parameter explains a bug before you change the application code, and confirm how empty values are displayed. Try it with a duplicate key to see how the tool handles it.

Input

?page=2&tri=name&actif=1

Limits and formats

Where processing happens

Parsing takes place in the browser. The query string and the resulting output stay on your device, with nothing sent to an external service.

Frequently asked questions

Can I parse a full URL?

The tool is designed around the query string portion, so paste only the part after the question mark for the clearest result. If you include a full URL, remove the path and domain first unless the tool explicitly supports them.

Why are some values still percent-encoded?

Percent signs are part of URL encoding and may be preserved by the conversion. If you need readable text, decode the value separately and check that spaces and special characters are restored correctly.

Can I use the output in code?

The JSON or key-value result can help you inspect parameters, but your programming language may parse them differently. Use the output as a debugging aid and confirm the behavior in your own environment.

Tools in the same category