Query String Parser
Parse query parameters into JSON arrays of values.
Your workspace
Processed in your browserThis utility decomposes a query string into a structured JSON object. It is designed to help developers inspect complex URL parameters and verify how data is encoded or repeated in a request.
How to parse a query string
- Paste the query string (with or without the leading question mark) into the input field.
- The tool parses the string, grouping repeated keys into arrays and decoding URL-encoded characters into their original format.
Interpreting the output
The output is a JSON object where every key maps to an array of values. This ensures that even single parameters are consistently handled as lists, making it easier to programmatically access data regardless of whether the key appeared once or multiple times in the original string.
Example input and output
user=admin&filter=active&filter=verified
{"user": ["admin"], "filter": ["active", "verified"]}
Frequently asked questions
Why is every value returned as an array?
Query strings often contain multiple values for the same key. Returning arrays for all keys provides a consistent schema that prevents errors when parsing unexpected input.
How does the tool handle plus signs in the input?
Plus signs are treated as spaces, consistent with standard URL-encoding practices for form data.
Continue your workflow
Explore more tools in this category for your next step.