What is a query string?
A query string is the part of a URL after the question mark. It holds name and value pairs joined by &, like q=hello&page=2. Special characters are written as percent-escapes, and in form data a plus sign stands for a space.
JSON is easier to read and work with in code. This tool converts the query string into a JSON object with all the escapes decoded. Names that repeat, or that end in [], become arrays. It also works in reverse: paste a JSON object and get a properly encoded query string, with your choice of how arrays are written.
How to use the Query String to JSON
- Paste a query string or a whole URL, or paste JSON.
- Choose the direction.
- For JSON to query, choose how arrays are written.
- Copy the result.