Convert Query String to JSON Online

URL query strings are ubiquitous in web development but not easy to read or manipulate as raw text. Converting a query string to a structured JSON object makes it easy to inspect the parameters, validate their values, and use them in code. This tool parses any URL query string (with or without the leading ?) into a formatted JSON object where each query parameter becomes a key-value pair. It correctly decodes percent-encoded values, handles repeated keys as arrays, and parses bracket notation (key[subkey]=value) into nested objects. Useful for debugging URLs, inspecting analytics tracking parameters, understanding OAuth redirect parameters, and converting form submission data to JSON for processing.

query string
0 chars1 lines
json objectREADY
0 chars1 lines

FAQ

Should I include the full URL or just the query string?
You can paste either. The converter extracts the query string from a full URL automatically, or you can paste just the query parameters with or without the leading ? character.
How are repeated parameters handled?
If the same key appears multiple times (like tag=a&tag=b), the values are collected into a JSON array: {"tag": ["a", "b"]}.
Are percent-encoded values decoded?
Yes. Percent-encoded characters in both keys and values are decoded to their original characters in the JSON output.

Related Conversions