Query String to JSON Converter (and back)
Convert URL query strings to JSON and JSON back to a query string. Handles repeated keys as arrays, strips leading ? or &, and runs entirely in your browser.
Runs 100% in your browser — nothing is uploaded.
JSON
Frequently asked
How are repeated keys handled?
?a=1&a=2 becomes {"a":["1","2"]}. Values are always strings — the browser's URLSearchParams API does not infer types.
Do I need to include the leading "?"?
No. A leading ? or & is stripped automatically. You can paste an entire URL and the querystring portion will be parsed if it comes after the ?.
Does JSON → query string encode special characters?
Yes — URLSearchParams handles percent-encoding, so spaces become +, and reserved characters are escaped correctly.
Related tools
- URL Encode / DecodePercent-encode or decode URLs, query strings, and path segments. Choose between
- JSON FormatterFormat, validate, and minify JSON in your browser. See parse errors with line/co
- JSON ↔ YAML ConverterConvert between JSON and YAML in either direction. Handles nested objects, array
- CSV ↔ JSON ConverterConvert CSV data to JSON (or JSON to CSV) with configurable delimiter, header ro
- YAML to JSON ConverterConvert YAML to JSON with full YAML 1.2 support: nested maps, sequences, anchors