Query String to JSON
Convert a URL query string (or full URL) to a JSON object online. Repeated keys become arrays and values are decoded. Pretty-printed output. Free and private.
What is the Query String to JSON?
The ByteTools Query String to JSON converter parses a URL query string — or a whole URL — into a clean, pretty-printed JSON object.
- Parses a query string or a complete URL
- Decodes percent-encoded keys and values
- Repeated keys are grouped into arrays
- Pretty-printed, indented JSON output
- Copy the result with one click
- 100% client-side — nothing leaves your browser
How to use the Query String to JSON
- 1
Paste a query string or a full URL into the input box.
- 2
A leading ? and everything before it in a URL are handled automatically.
- 3
Click Convert.
- 4
Read the pretty-printed JSON, with repeated keys grouped into arrays.
- 5
Copy the JSON with one click.
About the Query String to JSON
The ByteTools Query String to JSON converter parses a URL query string — or a whole URL — into a clean, pretty-printed JSON object. It accepts input with or without a leading ?, decodes percent-encoded values, and turns keys that appear more than once into a JSON array so no data is lost.
Paste a full URL and it automatically extracts just the query portion, so you can drop in a link straight from your address bar or logs. The result is indented JSON that is easy to read, copy into code or feed to another tool.
Everything runs 100% locally in your browser using the native URL parser. Nothing is uploaded, logged or stored, so the tool is private and works offline.
Frequently asked questions
How do I convert a query string to JSON?
Paste the query string, or the full URL, and click Convert. The tool splits the parameters, decodes each key and value, and builds a JSON object. If you paste a whole URL, it automatically uses only the part after the ? character.
What happens to repeated parameters?
When the same key appears more than once — like tag=a&tag=b — the tool collects the values into a JSON array, so you get a tag field holding both values. Keys that appear once stay as plain string values, so no information is lost.
Can I paste a full URL instead of just the query string?
Yes. If your input contains a ?, everything before it is ignored and only the query portion is parsed. That means you can paste a link straight from your browser's address bar without editing it first.
Are the values URL-decoded?
Yes. Percent-encoded sequences like %20 for a space and %26 for an ampersand are decoded back to their original characters, and + is treated as a space, so the JSON contains the real, human-readable values.
Is my URL uploaded when I convert it?
No. Parsing happens entirely in your browser with the native URL API. The query string and resulting JSON are never transmitted, logged or stored, so it is safe for URLs that contain tokens or personal data.
Guides for Query String to JSON
Related tools
JSON to Query String
Convert a flat JSON object to a URL query string online. Values are percent-encoded and arrays become repeated keys. Validates the JSON first. Free and private.
URL Decoder
Decode percent-encoded URLs back to readable text instantly. Optional '+ as space' handling for query strings and clear errors for malformed input.
JSON Formatter
Format, beautify and minify JSON online with 2-space, 4-space or tab indentation. Sort keys alphabetically and catch syntax errors instantly — free and private.
JSON Sort Keys
Sort JSON object keys alphabetically online, recursively through nested objects, and pretty-print the result. Validates input first. Free, instant and private.
JSON Minify
Minify JSON online: strip all whitespace to shrink payloads. Validates first and shows the error line and column, plus size before and after. Free and private.