Parse a URL query string into JSON and build a query string from JSON, in your browser.
How to use the Query String
Choose a direction: query to JSON or JSON to query.
Paste a query string (with or without the leading ?) or a JSON object.
Copy the result, or swap to convert back.
A query string converter that turns the parameters in a URL into a readable JSON object, and builds a query string back from JSON. It decodes values, and treats repeated keys as arrays in both directions.
It runs locally in your browser, so the URLs you inspect, which can contain tokens or personal data, never leave your device.
A query string is the part of a URL after the question mark, like ?q=shoes&page=2, a list of key-value pairs that pass data to a page or API. They drive search results, filters, pagination and tracking.
When a key appears more than once, such as tag=a&tag=b, it becomes an array in the JSON so no values are lost, and a JSON array expands back into repeated parameters when you build the string.
You can paste a whole URL when converting to JSON: anything before the question mark is ignored, so you do not have to trim it first. This makes it quick to inspect the parameters of a link from your address bar.
Percent-encoded values are decoded when parsing so you can read them, and encoded again when building a query string so the result is valid, which keeps spaces and special characters correct.
Frequently asked questions
A key that appears more than once, like tag=a&tag=b, becomes an array in JSON, and arrays in JSON expand back into repeated parameters.
Yes. When converting to JSON, anything before the ? is ignored, so you can paste an entire URL.
Yes. Percent-encoded values are decoded when parsing and encoded again when building a query string.
The part of a URL after the question mark, a set of key=value pairs separated by ampersands that pass data such as search terms, filters and page numbers.
No. The conversion runs entirely in your browser, so the URLs and parameters you paste never leave your device.
Embed this tool
Add this tool to your own website. Copy the snippet below; it stays up to date automatically.
<iframe src="https://monu.tools/embed/en/query-string-converter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>Related tools
Create and sign HS256 JSON Web Tokens from a payload and secret, entirely in your browser.
Search and look up HTTP status codes and their meanings, from 1xx to 5xx.
Convert a .env file to JSON and JSON back to .env, in both directions, entirely in your browser.
Generate an HMAC for a message and secret key using SHA-1, SHA-256, SHA-384 or SHA-512, in your browser.