What is a query string parser?
A query string parser splits the query part of a URL — the bit after the ? — into a table of keys and values. The default string here is "?utm_source=google&utm_medium=cpc&gclid=abc123", which parses into 3 parameters: utm_source is google, utm_medium is cpc, and gclid is abc123.
Query strings carry tracking and state. A marketing link has utm_source, utm_medium, and utm_campaign; a search link has q; a pre-filled form has a value for every field. Reading them in the raw URL means picking through percent-encoding and ampersands — a parser lays them out one per line, decoded and readable.
This tool is different from the URL parser on this site, which splits a whole URL and shows the raw query string as one piece. Use the URL parser to take a URL apart, and this tool to read the query string itself in detail.
How query string parsing works
The parser strips the leading ? if there is one, then splits the rest on & — each piece is one parameter. Each piece is then split on the first = sign: the part before it is the key, and the part after it is the value. A piece with no = sign gets an empty value.
Both keys and values are percent-decoded: %20 becomes a space, %26 becomes an ampersand, and a + becomes a space too, which is the form-encoding convention. The default string has no encoded characters, so its values read exactly as written — but a value such as "hello%20world" decodes to "hello world".
Duplicate keys are listed separately, so the parameter count is the count of pairs, not of unique keys. A string with "a=1&a=2" has 2 pairs and 1 unique key, which the two counters above show separately. That distinction matters for tracking, where the same key can appear twice.
Keys, values, and encoding, explained
A key is the name of a parameter, such as utm_source or q. It is usually a plain word, but it can be percent-encoded like a value — a key of "my%20key" decodes to "my key". The parser decodes keys as well as values, so the table shows the real names.
A value is the data for that key, and it can be empty. A parameter written as "flag" with no = sign means a flag with an empty value, which is common for checkboxes and toggles. A value of "0" is not empty — it is the string 0, which the parser keeps as it is.
Encoding is the detail that makes parsing necessary. A value with a space in it is written as %20 or +, and a value with an & in it is written as %26 — because a raw & would split the parameter in two. The parser reverses that encoding, so the table shows what the sender meant, not what the URL literally contains.
Repeated keys are the case that a simple parser gets wrong, because a query string can hold the same key twice. A link with tag=a&tag=b is asking for two tags, not one, and a parser that keeps only the last value will silently drop the first. This tool keeps every value, so a repeated key shows a list of values rather than a single one. That matters for filters and multi-selects, where the same key with different values is the normal shape, and losing one value changes the result.
A worked example: a tracking link
Take the default string: "?utm_source=google&utm_medium=cpc&gclid=abc123". Strip the ?, split on &, and you get three pieces. Split each on the first = and decode: utm_source = google, utm_medium = cpc, gclid = abc123. That is 3 parameters and 3 unique keys, with the first key "utm_source".
The meaning is a Google ad click: the source is google, the medium is cpc (cost per click), and gclid is Google's click id, which ties the visit to a specific ad. A marketer reading the table sees the campaign at a glance, without decoding the raw URL by eye.
Try an encoded value: "?q=hello%20world&page=2" parses to q = hello world and page = 2, with the %20 decoded to a space. Try a flag: "?debug&verbose=1" parses to debug with an empty value and verbose = 1. The parser handles all three shapes — encoded, plain, and flag — in one pass.
Who uses a query string parser, and why
Marketers are the main users. A campaign link arrives with a query string full of utm parameters, and the parser shows what campaign, source, and medium it belongs to. It is the fastest way to check that a link was built correctly before it goes out.
Developers are the second group. A bug report includes a URL, and the query string holds the state that caused the bug — the search term, the page, the filters. Parsing it shows the state without running the app, which is often enough to reproduce the problem.
Support staff are a third group. A customer pastes a link, and the query string holds the order id, the session, or the error code. A URL parser takes the whole link apart, and this tool reads the query part in detail.
Support staff are a third group. A customer pastes a link and says the page is wrong, and the query string holds the answer — the order id, the session, or the error code that the page used. The parser is the tool that reads it: paste the link, and the table shows every parameter in plain text, without the encoding. A parameter that is missing, or a value that is wrong, is visible in the table, and the support agent can see in seconds what the customer cannot describe.
Query string parser vs URL parser
A query string parser reads the query; a URL parser reads the whole URL. The URL parser on this site splits a URL into protocol, host, path, and query, and shows the query as one raw string. This tool takes that raw string and splits it into a table, which is the next level of detail.
The two tools are used together: paste a full URL into the URL parser, copy the query string it shows, and paste it here for the table. A base64 encoder decoder handles values that are base64 rather than percent-encoded, which is the other encoding a query string can carry. A builder assembles a URL from parts, including a query string built from key-value pairs.
A URL encoder decoder encodes and decodes single values, which is the tool for one value rather than a whole string. The three tools cover building, reading, and taking apart the same piece of a URL.
A parser is not a builder, and the distinction matters when the goal is to make a link rather than to read one. A builder takes the parts and assembles the URL, which is the tool for a link that does not exist yet. A parser takes a link that exists and splits it into a table, which is the tool for a link that arrived from elsewhere. Use the parser to read and the builder to write — the two tools do opposite jobs, and a parser cannot fix a broken link, only show what it contains.
Common query string mistakes
The first mistake is reading a raw query string by eye. Percent-encoding hides the real values — %20 is a space, %26 is an ampersand, %3D is an equals sign — and a value with several encoded characters is unreadable without decoding. Paste the string into the parser instead of squinting at it.
Second: assuming keys are unique. A query string can carry the same key twice, and different systems handle that differently — some take the first, some the last, some both. The parser lists every pair, so duplicates are visible instead of hidden.
Third: a + that means a space. In a query string, + is a space, not a plus sign — a value of "a+b" decodes to "a b". A literal plus must be written as %2B. If a value arrives with a space where a plus should be, the sender encoded it wrong.
Fourth: an unencoded & inside a value. A value of "fish & chips" written literally splits into two parameters, "q=fish" and " chips". The sender should have written %26, and the parser cannot fix it after the fact — it can only show the split as it is.
A second mistake is reading a plus sign as a literal plus. In a query string, a plus means a space — the encoding rule for form data — so a value of hello+world reads as hello world, not hello+world. A real plus sign is written as %2B, and the parser decodes that to a plus. The confusion comes from the URL path, where a plus is just a plus, and the two rules are different because the query string and the path are encoded by different rules.
How to use this query string parser
Paste a query string into the box — the default is "?utm_source=google&utm_medium=cpc&gclid=abc123", with 3 parameters. The key-value table updates live in the box below, with the parameter count, the unique key count, and the first key above it.
To copy the table, use the Copy button next to the output box. To parse a full URL, paste it into the URL parser first and copy the query string it shows. The leading ? is optional — the parser strips it if it is there.
Everything runs in your browser. No sign-up, no account, no data sent anywhere — your URL never leaves your device. It works offline once the page has loaded.
Paste the query string — with or without the leading question mark — and the table appears underneath with one row per key and its decoded value. The row count tells you how many parameters the link carries, and the table shows the decoded values, so a value that was encoded as %20 appears as a space. To check a link, paste the whole URL into the URL parser first, copy the query string it shows, and paste that here for the table.