Query String to JSON Parser
When debugging web analytics or working with complex REST APIs, query strings can become incredibly long and unreadable. Our Query String Parser takes any raw URL parameter string (e.g., `?foo=bar&baz=1`) and converts it into a clean, properly structured JSON object.
Key Features
- Array Handling: If a key appears multiple times (e.g., `?tag=a&tag=b`), it automatically groups them into a JSON array.
- Auto-Decoding: URL-encoded characters (like `%20` for space) are automatically decoded back to readable text.
- Flexible Input: Paste just the query string (`a=1&b=2`) or an entire URL (`https://site.com?a=1`). The tool automatically strips out the domain to focus on the parameters.
100% Privacy and Security
Query strings often carry sensitive data, such as `access_token` values, email addresses, and temporary auth codes. Because this parser runs exclusively inside your browser utilizing the native `URLSearchParams` API, your tokens are never exposed to a backend server.
Frequently Asked Questions
What if a key has no value?
If a parameter is passed without an equals sign (e.g., `?debug&verbose`), it will be parsed with an empty string as its value in the resulting JSON.