What does this tool do?
The query string parser takes the part of a URL after the ? and breaks it into individual key=value pairs, while also converting it into a tidy JSON object. You can paste a full URL, just the query string, or a fragment beginning with ?. It is handy for developers and testers who need to read URL parameters quickly.
How to use it
- Paste or type your data into the left field.
- The result is generated instantly on the right.
- Use the Copy button to grab the output.
It decodes URL encoding automatically
Because the tool uses URLSearchParams, it decodes percent-encoding and plus signs in your parameter values for you. For example name=John+Doe appears as 'John Doe', and city=New%20York appears as 'New York'. This means a raw query copied straight from the address bar shows up in readable form without you having to decode it by hand. The left column lists the pairs, while the right column gives them all as copyable JSON.
Full URL or just the query?
If the text you paste starts with ?, the leading question mark is dropped; if it is a full URL, the tool takes everything after the first ?; and if there is no ? at all, the entire text is treated as the query string. Thanks to this flexibility you can process 'https://site.com/search?q=test' or simply the 'q=test' fragment in the same way, and either way the parameter count is shown at the top.
Frequently asked questions
What happens when the same key appears more than once?
In the list on the left, each repeat such as tags=a and tags=b is shown as its own row. In the JSON output, because a key can hold only one value, the last value for that key wins.
Can I paste a full URL?
Yes. If you paste a complete URL, the tool automatically extracts the query portion after the first ?, and the domain and path are ignored.
How do I use the JSON output?
The text area on the right shows the parameters as an indented JSON object; use the copy button above it to grab it in one click and paste it into your code or an API request.
Is Query String Parser free?
Yes. Query String Parser and all 300+ tools on MagmaNex are completely free with no signup or account required.
Is my data safe?
Yes. Everything runs locally in your browser. The data you enter is never sent to a server, stored, or shared.
Does it work on mobile?
Yes. Query String Parser works on phones, tablets and desktops — no app download needed.
🔒 Privacy: everything runs in your browser, your data is never sent to a server.
