Skip to content

Menu

Query String Parser

Parse, build, and debug URL query strings. Extract parameters and reconstruct query URLs.

Runs entirely in your browserAPI & HTTPFree, no sign-up
Loading tool

01What is Query String Parser?

Query String Parser turns the part of a URL after the ? into an editable table of keys and values. It also builds a fresh query string as you change things. Long tracking links and OAuth callbacks are hard to read as one line, and a single stray + or %2B can change what the server receives. This tool shows you each pair on its own row so you can see the problem. You can paste a whole URL, just the query with or without the leading ?, or a bare a=1&b=2 string. The tool splits off the #fragment first, then everything before the ? becomes the Base URL. Both are kept, so the full URL can be put back together later. Decoding uses the browser's own URLSearchParams. That follows the application/x-www-form-urlencoded rules in the WHATWG URL Standard, the same rules new URL() and HTML form submissions use. In practice, + is read as a space and %XX escapes are decoded as UTF-8. A key with no = gets an empty value. Repeated keys stay as separate rows in their original order. Here is a quick example. Paste q=hello+world&tag=js&tag=ts and you get three rows: q is "hello world", then tag is "js", then tag is "ts". Because tag appears twice, the tool shows "Array parameters detected" with tag listed. It strips a trailing [] before counting, so tags[]=a&tags[]=b is flagged the same way. When you edit, add or delete rows, the rebuilt string uses encodeURIComponent. So hello world comes back as hello%20world, not hello+world. Servers decode both forms the same way in a query string, so this is safe. Rows with an empty key are left out. A bare key such as c comes back as c=. There are honest limits. Nested names like user[address][city] are shown exactly as written. The tool does not expand them into objects, because PHP, Rails and the qs library each do it differently and no spec defines it. It also does not tell you when a value was encoded twice. You spot that yourself when a decoded value still contains %20. Everything runs locally in your browser, and nothing you paste is sent anywhere.

Developers and marketing engineers who need to read, fix or compose the query part of tracking links, OAuth callbacks and API request URLs. The tool runs entirely in your browser, so your data never leaves your device.

02How to use Query String Parser

  1. Paste a full URL, a query string or a bare key=value list into URL or Query String, or pick one of the examples
  2. Read the decoded rows in the parameter table and check the Base URL and Fragment (#) fields
  3. Look for the Array parameters detected note if a key repeats
  4. Edit keys or values, delete rows with the trash icon, or click Add to append a parameter
  5. Copy the Full URL or Query Only output, or click Sync to Input to replace your original text with the rebuilt version

03Worked examples

Input: https://example.com/search?q=hello+world&tag=js&tag=ts#results
Result: Base URL: https://example.com/search | q = hello world | tag = js | tag = ts | Fragment: results | Array parameters detected: "tag"
+ is read as a space, and a repeated key keeps every value in order.
Input: utm_source=newsletter&utm_medium=email&name=J%C3%B6rg
Result: utm_source = newsletter | utm_medium = email | name = Jörg
A bare query string with no URL works too. %C3%B6 is decoded as UTF-8.
Input: a=1&b=&c
Result: a = 1 | b = (empty) | c = (empty); Query Only: a=1&b=&c=
A key with no = is kept with an empty value, and the rebuilt string adds the =.
Input: phone=+15551234567&code=%2B44
Result: phone = " 15551234567" | code = +44
An unencoded + turns into a space. Only %2B survives as a real plus sign.
Input: tags%5B%5D=typescript&tags%5B%5D=react&redirect_url=https%3A%2F%2Fexample.org%2Fpage%3Ffoo%3Dbar
Result: tags[] = typescript | tags[] = react | redirect_url = https://example.org/page?foo=bar
The bracket names are shown as written and flagged as an array. The nested URL is decoded once.
Input: Rows: q = hello world, tags[] = react, redirect = https://x.org/?a=1
Result: q=hello%20world&tags%5B%5D=react&redirect=https%3A%2F%2Fx.org%2F%3Fa%3D1
Rebuilding uses encodeURIComponent, so spaces become %20 and brackets, slashes and ? are escaped.

04Common use cases

  • Reading the utm_source, utm_medium and utm_campaign values of a campaign link one per row instead of squinting at the raw URL
  • Checking the state, code and redirect_uri values in an OAuth callback URL when a login flow fails
  • Composing a filtered API request such as ?status=active&role=admin&page=2 parameter by parameter, then copying the Full URL
  • Finding a phone number or base64 value that arrived with a space where a + should be
  • Spotting a double-encoded redirect parameter, where the decoded value still shows %3A%2F%2F
  • Checking how many times a key repeats before deciding how your backend should treat tag=a&tag=b

05Tips

  • Frameworks disagree on repeated keys. Express with the qs parser returns an array, PHP keeps only the last value unless the key ends in [], and some libraries keep the first. Test your own server before relying on tags=a&tags=b.
  • A literal + in a value must be sent as %2B. Otherwise phone=+15551234567 arrives as a leading space, which is a classic bug with phone numbers and base64 strings.
  • The # fragment is never sent to the server, so anything after # is only visible to client-side code and never shows up in your access logs.
  • If a decoded value still contains %20 or %3A, it was encoded twice somewhere upstream. Fix the encoder, not the decoder.

06Related concepts

URLSearchParams API, application/x-www-form-urlencoded, URI fragment, RFC 3986.

Frequently Asked Questions

What is Query String Parser?

Query String Parser is a free, browser-based developer tool on AIDToolStack. Parse, build, and debug URL query strings. Extract parameters and reconstruct query URLs. It requires no installation or sign-up and works entirely in your browser.

Is Query String Parser free to use?

Yes. No sign-up, no fees and no usage cap.

Does Query String Parser store my data?

No. It runs in your browser; nothing is uploaded.

Related Tools

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe