# Query String to JSON Converter

> Convert URL query strings to JSON and build query strings from JSON objects.

To convert a query string to JSON, paste a URL or the query portion and each parameter becomes a key. Repeated keys and bracket notation collapse into arrays, and percent-encoded values are decoded, so the JSON reflects what the server actually receives.

**URL:** https://convertto.tech/t/query-string-converter
**Category:** Data & Format Tools (https://convertto.tech/c/data-tools)
**Privacy:** Runs entirely in the browser; no upload
**Cost:** Free, no sign-up
**Last updated:** 2026-08-01

## Key facts

- **Privacy:** Runs entirely in your browser — nothing is uploaded
- **Cost:** Free, unlimited, no sign-up

## How to use

1. Enter or paste your query string or json.
2. Choose the direction.
3. The result appears immediately — copy or download it.

## FAQ

### How are repeated parameters handled?

Inconsistently, across the web. ?tag=a&tag=b is an array in PHP and Rails, but only the last value in some frameworks. If you control both ends, an explicit array syntax removes the ambiguity.

## Related tools

- [JSONPath Tester](https://convertto.tech/t/jsonpath-tester): Run JSONPath expressions against a document and see the matches instantly.
- [JSON Flattener](https://convertto.tech/t/json-flattener): Flatten deeply nested JSON into dot-notation keys, or expand flat keys back into nested objects.
- [JSON Formatter & Validator](https://convertto.tech/t/json-formatter): Format, validate, repair and analyse JSON — with errors that point at the exact line.
- [JSON to TypeScript Converter](https://convertto.tech/t/json-to-typescript): Generate TypeScript interfaces, Zod schemas, Go structs, Python dataclasses or Rust structs from JSON.
- [Data Format Converter](https://convertto.tech/t/data-format-converter): Convert between JSON, YAML, XML, CSV, TSV and TOML in any direction, locally in your browser.
- [.env to JSON Converter](https://convertto.tech/t/env-to-json): Convert .env files to JSON and back — for config migrations and CI variables.
- [URL Encoder & Decoder](https://convertto.tech/t/url-encode-decode): Percent-encode text for safe use in URLs, and decode encoded URLs back to readable text.
- [URL Parser](https://convertto.tech/t/url-parser): Break a URL into protocol, host, path, query parameters and fragment.
