Skip to content

Query string parser

Free, no sign-up Runs in your browser

Paste a URL, a query string or a form body to see every parameter decoded in a table, find repeated keys, then edit the pairs and rebuild the encoding.

Build a query string

Write key=value, decoded. Each line is split at its first equals sign and then encoded.

Encoded query string
The result appears here.

Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.

How to use the query string parser

  1. Paste a URL, a query string or a form body.
  2. Read the decoded keys and values in the table.
  3. Check the findings for repeated keys and broken escapes.
  4. To change something, copy the pairs into the editor, edit them and copy the rebuilt string.

About this tool

The part of a URL after the question mark is a list of key and value pairs, joined by & and split by =, with special characters percent-encoded and spaces written as + or %20. HTML forms send the same format in the request body. Read raw, it is hard to follow: a redirect parameter that holds another URL is encoded once more inside it. This tool splits the pairs, decodes them and lists them in order.

That makes it quick to check a tracking link before you click it, to see what an OAuth or SSO redirect really carries, or to find the one parameter that differs between a working request and a failing one. Paste a full URL and only the query is used. The editor at the bottom goes the other way: write decoded pairs, one per line, and get a correctly encoded string.

Watch for repeated keys. Nothing in the format forbids id=1&id=2, and servers disagree on what it means: PHP keeps the last value, some Java servers the first, Node and Python build a list. When a firewall or a validator reads one value and the application another, a check can be bypassed. This is HTTP parameter pollution, and the tool lists every key that appears more than once.

Sources

Questions

What is a query string?

The part of a URL after the first question mark and before any #. It carries parameters as key=value pairs separated by &, for example ?q=shoes&page=2.

What happens when a URL parameter appears twice?

It depends on the server. Some frameworks keep the first value, some the last, and some return a list or join the values with a comma. Code that expects one value can behave differently from the proxy or filter in front of it.

Why does + mean a space in a query string?

HTML form encoding, application/x-www-form-urlencoded, writes a space as +. Browsers use it when they submit forms, so servers decode it that way in queries and form bodies. A literal plus sign must be sent as %2B.

How do I put a URL inside a URL parameter?

Encode it as a component, so that its own ? & = and / become %3F %26 %3D and %2F. Otherwise its parameters are read as parameters of the outer URL. The builder on this page does that for each value.

Related tools