Query String to JSON Converter
Paste a query string (or a whole URL) and get a clean JSON object — repeated keys become arrays and values are percent-decoded. Switch direction to turn a JSON object back into an encoded query string. Perfect for inspecting API requests and building links. Everything runs locally in your browser — nothing is uploaded.
How to use
- Choose the direction: query string to JSON, or JSON to query string.
- Paste your query string (with or without the leading ?) or JSON object.
- Copy the converted result from the output box.
Frequently asked questions
- How are repeated keys handled?
- When the same key appears more than once (for example tags=a&tags=b), it becomes a JSON array. A key that appears once stays a plain string.
- Can I paste a full URL?
- Yes. Everything up to and including the ? is ignored and any #fragment is dropped, so you can paste a complete URL and still get just the query parameters.
- How are nested objects converted to a query string?
- Arrays are expanded into repeated keys. A nested object or array of objects is serialized to JSON and percent-encoded as the value, since query strings are flat key-value pairs.
- Is my data sent anywhere?
- No. The conversion happens entirely in your browser; nothing is uploaded.
Related tools
URL Query Builder
Build URLs by combining a base address with editable key-value query parameters — each pair toggleable, properly percent-encoded.
URL Parser
Break a URL into protocol, host, port, path, query, and hash. Decode query parameters into a table.
String Escape Converter
Escape a string for 10 contexts at once — JavaScript, JSON, HTML entities, URL, SQL, regex, Bash (single/double quote), C string, Unicode \u escapes. Copy whichever you need.
JSONPath Tester
Run JSONPath queries (`$.store.book[*].author`, `$..price`) against a sample document and see the matching values.
Unicode Escape Converter
Encode text to \uXXXX, U+XXXX or HTML entities — and decode any of those back to text. Handles emoji and astral characters.
Hash Generator (SHA)
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text.