ToolsKit

Query String Parser

Parse a URL query string into JSON.

Query String Parser is a a browser-based developer utility for common formatting, encoding, conversion, inspection, and debugging tasks.

Loading the interactive tool… This page needs JavaScript to run the Query String Parser.

How to use Query String Parser

  1. Paste the data, code, token, or value you need to inspect.
  2. Set any format, encoding, or validation options.
  3. Run the tool and inspect the result or diagnostic output.
  4. Copy the output into your terminal, editor, API client, or project.

How Query String Parser works

Paste a query string, with or without a leading question mark or hash, and the tool parses it with URLSearchParams into a JSON object. Percent sequences and plus signs are decoded, and a key that appears more than once becomes an array in order, while single keys stay strings. Every value remains a string, so numbers are not converted. Empty input shows an error.

Worked example

Input: ?q=shoes&tag=a&tag=b&page=2 → Output: a JSON object with q as shoes, tag as an array of a and b, and page as the string 2.

Common uses

  • Inspect the parameters in a long tracking or redirect URL.
  • Debug an API call whose repeated parameter is read incorrectly.
  • Copy parsed parameters into a test or request body.

Best for

  • developer workflows
  • quick query string parser tasks
  • browser-based utility work

Tips for better results

  • Validate the output before using it in production code.
  • Treat tokens, credentials, and secrets as sensitive even when processing happens locally.
  • For large payloads, keep an original copy so you can compare changes.

Frequently asked questions

What is a query string?

The part of a URL after the ? that carries key=value pairs separated by &.

How are repeated keys handled?

Repeated keys are collected into an array.

Are values decoded?

Yes, percent-encoding is decoded for easy reading.

Related tools

Explore tool categories