Query String ↔ JSON
Convert a URL query string into JSON and turn JSON back into a query string.
Output
How to use the Query String ↔ JSON
-
Choose a direction.
-
Paste a query string or JSON.
-
Copy the result.
Parse & build URL query strings
Query strings pack parameters into URLs, but they're hard to read when long. This tool decodes a query string into formatted JSON and encodes JSON back into a valid, URL-encoded query string — handy for debugging APIs and building links.
Key features
- Query string → JSON and back
- Proper URL decoding & encoding
- Handles repeated keys as arrays
- Runs locally in your browser
Frequently asked questions
How are repeated keys handled?
Repeated keys (a=1&a=2) are collected into a JSON array so no values are lost.
Does it decode percent-encoding?
Yes — values are URL-decoded when parsing and re-encoded when building.
Should I include the leading '?'
You can — it's stripped automatically.