Turn a query string into JSON
Paste a URL or `a=1&b=2` query and get readable JSON. Duplicate keys become arrays. Handy when logs or address bars hand you an opaque query blob.
Developers often copy a long URL from analytics, redirects, or webhook debug pages. Turning it into JSON makes nested intent obvious and easier to paste into tests.
Values stay strings (as in the URL). Numbers and booleans are not auto-cast — cast them in your app if needed.
How to convert
- Paste a query string or full URL
- JSON appears automatically
- Copy the object for your code or docs
Why use this
- See every parameter without scrolling a one-line URL.
- Catch duplicate keys that URLSearchParams otherwise hides in casual reading.
- Runs locally — query strings can contain tokens; nothing is uploaded.
Scenarios
- Debug a redirect URL from an OAuth callback
- Turn campaign UTMs into a readable object
- Explain API query examples in documentation
Tips
- Plus signs (`+`) are treated as spaces, matching typical form encoding.
- For percent-encoded Chinese or symbols, decode happens as part of parsing.
- Pair with URL decode if you only need one value unescaped.
Examples
| Input | Output | Note |
|---|---|---|
| a=1&b=hello | { "a": "1", "b": "hello" } | — |
| tag=a&tag=b | { "tag": ["a", "b"] } | Repeated keys |
Query → JSON FAQ
- Can I paste a full URL?
- Yes. The tool reads the query part after `?`. Hash fragments are ignored.
- Need the reverse?
- Use JSON to query string.