Home / Tools / Data and formats
Query String to JSON
Turn URL parameters into JSON and JSON into a query string.
Runs in your browserFree, no sign-up
Loading tool…
How to use it
- Choose Query → JSON or JSON → Query.
- Paste a URL, query string or JSON object.
- Copy the result.
About this tool
Paste a full URL or just the part after the ?, and every parameter becomes a JSON key. Repeated keys become arrays. Going the other way builds a properly encoded query string from a JSON object.
Your input is processed on your device. Nothing is sent to a server or stored.
Questions
How are repeated keys handled?
size=M&size=L becomes "size": ["M", "L"].
Data and formats
All data and formatsMore tools like this
Data and formatsJSON Formatter & ValidatorFormat, validate, minify, stringify and parse JSON.Opens filesOpen →Data and formatsXML to JSON ConverterConvert XML to JSON and JSON back to XML.Opens filesOpen →Data and formatsCSV to JSON ConverterTurn CSV or TSV into JSON and JSON arrays into CSV.Opens filesOpen →Data and formatsYAML to JSON ConverterConvert YAML to JSON and JSON to YAML.Opens filesOpen →Data and formatsJSON to TypeScriptGenerate TypeScript interfaces from a JSON sample.Opens filesOpen →Data and formatsSQL FormatterFormat messy SQL into readable, indented queries.Opens filesOpen →Data and formatsHTML Beautifier & MinifierIndent minified HTML or minify it for production.Opens filesOpen →Data and formatsMarkdown Table GeneratorTurn CSV or spreadsheet cells into a Markdown table.Opens filesOpen →