How to parse and build query strings
- Paste a full URL, a query beginning with ?, or the query text alone.
- Choose Query string as source and JSON as target, or swap them to build a query.
- Select Convert, then copy result.
Duplicate names and empty values
Repeated names become arrays in encounter order:tag=one&tag=two → { "tag": ["one", "two"] }. Empty values become JSON null, and + decodes to a space while %2B stays a literal plus.
Build a query string from JSON
Use a JSON object whose values are strings, numbers, booleans, null, or arrays of these values. Nested objects are rejected because a query string cannot represent them. A base URL or path already in the target is kept, and ? appears only between that base and the parameters.