URL Query Parameters to JSON
Parse complex URL search parameters into clean JSON objects with support for repeated keys, arrays, and URI decoding.
Step-by-Step Instructions
Paste URL or Query String
Paste a full URL (e.g., https://example.com/api?user=1&filter=active) or a raw query string (?sort=desc&limit=25).
Configure Array & Type Parsing
Enable automatic parsing of repeated keys as arrays (tag=a&tag=b to ["a", "b"]) and numeric/boolean type coercion.
Select Output Structure
Choose between flat Key-Value JSON, nested object dot-notation (filter.date.start), or typed schema.
Copy Formatted JSON
Copy the structured JSON object directly into your API requests, unit tests, or backend handlers.
Key Features & Capabilities
- Automatic URL extraction and decoding of percent-encoded parameters (%20 to spaces, %26 to &)
- Repeated key and bracket array notation support (items[]=1&items[]=2 or items=1&items=2 to ["1", "2"])
- Nested query parameter parsing (user[name]=John&user[age]=30 to {"user": {"name": "John", "age": 30}})
- Type coercion converting numeric strings to numbers and 'true'/'false' to booleans
Frequently Asked Questions
How are repeated query parameter keys parsed into JSON?
When a query string contains identical keys (e.g., ?category=books&category=electronics), our parser automatically aggregates the values into a JSON array: {"category": ["books", "electronics"]}. If a key appears only once, it remains a primitive string.
How does the tool handle PHP and Rails style bracket notations (e.g., filter[status]=active)?
Our parser supports deep object reconstruction. Bracket notations like filter[status]=active&filter[sort]=date and dot-notation strings are automatically parsed into nested JSON objects: {"filter": {"status": "active", "sort": "date"}}.
Does the parser automatically decode percent-encoded characters?
Yes. All parameter keys and values are processed through standard UTF-8 URL decoding (decodeURIComponent), correctly restoring spaces, special symbols, international characters, and emojis.
Can I convert JSON back into a URL query string?
Yes. The tool features bidirectional conversion, allowing you to paste a JSON object and generate a standard, percent-encoded URL query string formatted for HTTP GET requests.
Related Utilities
Discover complementary online tools in the same workflow.
JSON Formatter & Validator
Format, beautify, minify, validate, and view JSON data online with instant syntax highlighting and error detection.
Base64 Encoder & Decoder
Encode text or binary data into Base64 format or decode Base64 back into raw string format.
CSV to JSON Converter
Easily convert CSV data to clean JSON format. Turn tabular spreadsheets into structured JSON.
YAML to JSON Converter
Convert YAML configuration files into structured JSON for APIs and modern web tooling.
JWT Parser & Token Debugger
Decode JWT tokens to view header, payload claims, and expiration status without sending secrets anywhere.
Hash Generator (SHA-256, SHA-512, MD5)
Generate cryptographically secure SHA-256, SHA-512, SHA-384, and SHA-1 hashes for any text.