Query Parameters to JSON Converter

Parse URL query strings into structured JSON with nested object support, bracket arrays, and automatic type inference.

ProtocolhttpsHostapi.example.comPath/search
KeyValue
qjson tools
page1
limit25
filters[category]developer
filters[rating]4
tags[]javascript
tags[]typescript
sortrelevance
debugtrue

How to Use

  1. Paste a full URL or raw query string in the input panel.
  2. The tool auto-extracts query parameters and shows a key-value breakdown.
  3. Configure nested parsing, type inference, and sorting options.
  4. Copy the resulting JSON or download it as a .json file.

Why Convert Query Parameters to JSON?

URL query parameters are used extensively in REST APIs, search engines, and web applications. Converting them to JSON makes it easier to inspect complex request payloads, reconstruct API calls in testing tools like Postman or cURL, and debug routing or filtering logic.

This tool is especially useful when dealing with nested parameters (common in Ruby on Rails, PHP, and Express.js applications), bracket-style arrays, and URL-encoded values that are hard to read in their raw form.

Features

  • Accepts full URLs or raw query strings
  • Automatic URL decoding of percent-encoded characters
  • Dot-notation nested object expansion
  • Bracket array and indexed bracket parsing
  • Duplicate key to array merging
  • Type inference for numbers, booleans, and null
  • URL parts breakdown (protocol, host, path, fragment)
  • Parameter table showing decoded key-value pairs
  • 100% browser-based — no data uploaded

Frequently Asked Questions

Can I paste a full URL or just the query string?

Both. The tool auto-detects full URLs and extracts the query portion. You can also paste just the query string with or without a leading "?" character.

How are duplicate keys handled?

Duplicate keys are automatically converted into JSON arrays. For example, "tag=a&tag=b" becomes { "tag": ["a", "b"] }.

What is nested (dot notation) parsing?

When enabled, keys like "user.name=John" are expanded into nested objects: { "user": { "name": "John" } }. This is useful for APIs that encode object hierarchies in query parameters.

What is bracket array parsing?

Bracket syntax like "items[]=1&items[]=2" is recognized and converted into { "items": [1, 2] }. Indexed brackets like "items[0]=a" are also supported.

How does type inference work?

When enabled, the tool converts "true"/"false" to booleans, numeric strings to numbers, and "null" to null. Disable it to keep all values as strings.

Are URL-encoded characters decoded?

Yes. All percent-encoded characters (like %20 for spaces, %26 for ampersands) are decoded automatically using standard URI component decoding.