Query String Parser

Paste a whole link or just the part after the ?. Every parameter is listed in order and decoded, repeated names are flagged, and anything that will not decode is pointed out.

How it works

A query string is the part of a URL after the ?, written as name=value pairs joined by &. The tool takes that part out of whatever you paste (a full link, ?a=1, or a=1 on its own) and drops the #fragment, which is not part of the query.

Each name and value is decoded the way servers decode form data: + becomes a space and each %XX run is read as UTF-8 bytes. Parameters stay in the order they were written, and a name used more than once is marked, because frameworks disagree about which value wins.

Where a percent sign is not followed by two hex digits, or the bytes are not valid UTF-8, the tool keeps that bit exactly as typed and tells you where it is. The rest is still decoded. Nothing you paste leaves this page.

How to use it

  1. 1 Paste a URL or a query string into the box.
  2. 2 Read each parameter, decoded, in the order it appears. Notes under a value flag repeats, flags with no = sign and broken escapes.
  3. 3 Use the JSON view to see the parameters as one object, with repeated names turned into lists.
  4. 4 Copy one value, the JSON, or everything at once.

Good to know

  • A parameter with no = sign, such as ?debug, is a flag: it is present, with an empty value.
  • An empty value (?q=) and a missing parameter are different things to most servers. The list shows both.
  • If a value shows %E9 still encoded, the link was made by something using Latin-1 instead of UTF-8. Ask whoever built it to encode as UTF-8.
  • To build a query instead of reading one, use the Query String Builder.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Reading ?q=red+shoes&tag=sale&tag=new by hand

Here is a query string from a shop search: ?q=red+shoes&size=9&tag=sale&tag=new&from=caf%C3%A9. Decoding it by hand once shows every rule a parser follows, and where they go wrong. Start by dropping the ? and splitting on &. That gives five pieces: q=red+shoes, size=9, tag=sale, tag=new and from=caf%C3%A9. Each piece is then split at its first = sign into a name and a value. Only the first = counts, so a value may contain = itself, as in token=abc==.

Now decode each side. In q=red+shoes the + stands for a space, a rule inherited from HTML forms, so the value is "red shoes". size=9 needs no decoding. The two tag pieces share a name, which is allowed and common for multi-select filters. The last value, caf%C3%A9, uses percent escapes: %C3 and %A9 are two bytes, written in hex, and read together as UTF-8 they are the single letter é. So the value is "café". Put into JSON the way most frameworks see it, the query becomes {"q":"red shoes","size":"9","tag":["sale","new"],"from":"café"}. Paste the link into the box above and you get exactly that.

The repeated tag is where bugs hide. The query says both sale and new, but what your code sees depends on the framework. URLSearchParams.get("tag") returns only "sale". PHP sets $_GET["tag"] to "new", the last one, unless the parameter is written tag[]. Express with its default parser gives a list. So a filter that works in one stack can silently drop a choice in another. That is why this tool lists every parameter in order and marks repeated names rather than quietly merging them.

Broken input is the other trap. Take ?note=100%+sure. The % is not followed by two hex digits, so it is not a valid escape. decodeURIComponent() throws an error on the whole value, and some libraries respond by keeping the raw text or dropping the parameter. Here the bad % is kept exactly as typed, the + still becomes a space, and a note says the problem is at position 4 of the value. The same goes for bytes that are not UTF-8: caf%E9 is "café" in the old Latin-1 encoding, and it is shown as typed with a note, not turned into a replacement character.

A few limits are worth knowing. The tool reads the standard & separator only; some old systems also accepted ; between parameters, which modern parsers ignore. It does not expand bracket names like filter[color]=red into nested objects, because PHP, Rails and qs each do that differently; the name is shown exactly as sent. And the JSON view makes every value a string, because a query string has no numbers or booleans, only text. Turning "9" into a number is a decision your code makes, not the URL.

Frequently asked questions

Why is + shown as a space?

Because HTML forms encode spaces as +, and every common server framework decodes a + in a query as a space. A literal plus sign must be sent as %2B. If you see a space where you expected a +, the link was built without encoding it.

What happens when the same name appears twice?

Both are kept and marked. In the JSON view the name holds a list. Which one your server uses depends on it: URLSearchParams.get() takes the first, PHP takes the last unless the name ends in [], and Express and Django can give you all of them.

What does "not a percent sign followed by two hex digits" mean?

In a URL a % always starts an escape such as %20. A lone %, as in "100%", or %zz is broken. Some decoders throw the whole value away at that point; this one keeps the bad part as typed and decodes the rest, so you can see exactly what to fix.

Is what I paste sent to a server?

No. The parsing is plain JavaScript running on this page, and nothing is fetched.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.