Query String to Object

Parse a URL query string into a JSON object.

Query String to Object parses URL query strings such as ?key=value&name=Alice into a formatted JSON object. Handles URL-encoded values, repeated parameters (converted to arrays), and the optional leading ? character. Useful for debugging URLs, inspecting form submissions, and building URL parsers.

query string
0 chars1 lines
json objectREADY
0 chars1 lines

Related Tools

FAQ

Do I need to include the ? prefix?
No, the leading ? is optional. Both ?key=value and key=value are handled correctly.
How are repeated parameters handled?
If the same key appears more than once (e.g. tag=js&tag=ts), the values are collected into a JSON array: {"tag":["js","ts"]}.
Are URL-encoded characters decoded?
Yes. The parser uses URLSearchParams internally, which automatically decodes percent-encoded characters such as %20 (space) and %2F (slash).