BYTETOOLS

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. 1

    Paste a query string or a full URL into the input box.

  2. 2

    A leading ? and everything before it in a URL are handled automatically.

  3. 3

    Click Convert.

  4. 4

    Read the pretty-printed JSON, with repeated keys grouped into arrays.

  5. 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