Skip to main content
Convert2JSON Tools

Query String to JSON Parser

Paste a long URL and read its parameters as structured JSON instead of squinting at percent-encoding.

Your data stays on your device

Input — URL or query string

characters
0
lines
0
size
0 B

Output — JSON

characters
0
lines
0
size
0 B

Options

About this tool

Debugging a redirect, an OAuth callback or a tracking link means reading a query string that is percent-encoded, sometimes doubly so, and often carries thirty parameters. Reading it as JSON is dramatically faster.

You can paste an entire URL — the parser finds the query portion itself — or just the parameter string. Repeated keys are collected into arrays and bracketed keys are expanded back into nested objects.

How to use this tool

  1. Paste a full URL or a bare query string, with or without the leading question mark.
  2. Choose whether repeated keys become arrays and whether bracketed keys are expanded.
  3. Press Convert to get JSON.
  4. Copy or download the result.

Key features

  • Accepts a full URL or a bare query string
  • Percent-decoding, including + as a space where appropriate
  • Repeated keys collected into arrays
  • Bracketed keys expanded into nested objects
  • Optional numeric and boolean inference
  • Parameters without a value reported explicitly rather than silently dropped

Example

Repeated keys become an array

InputQuery string

https://ex.com/s?q=desk%20lamp&tag=home&tag=sale

OutputJSON

{
  "q": "desk lamp",
  "tag": ["home", "sale"]
}

Good to know

  • The URL fragment after # is not part of the query string and is ignored unless you paste it on its own.
  • Malformed percent sequences are left as-is instead of throwing, so you can still read the rest of the parameters.
  • Bracket expansion assumes the common framework convention; unusual custom encodings may need manual handling.

Frequently asked questions

Can I paste the whole URL?

Yes. Everything before the first question mark is ignored, so you can paste straight from the address bar.

What happens with duplicated parameters?

By default they become an array in first-seen order. Turn that off to keep only the last occurrence, which is how some servers behave.

Is + decoded as a space?

Yes, since form-encoded query strings use + for spaces. If your data contains a literal plus it should be encoded as %2B at the source.

Is it safe to paste a URL containing a token?

Parsing happens entirely in your browser and nothing is transmitted. That said, treat tokens carefully in general and avoid pasting production credentials into any tool.

Your data stays on your device

Your data is processed locally in your browser and is not uploaded to our server. This page keeps working after you go offline, because there is nothing to send.

Share this toolXLinkedInHacker News