Skip to content

Free Query String Parser

Paste a URL to see every parameter decoded in a table, or switch to build mode to assemble an encoded URL.

  • 100% free
  • Runs in your browser
  • Instant results
Build mode: optional base URL on the first line, then one key=value per line (or a JSON object).
Quick answer

A query string parser splits the part of a URL after the question mark into its individual parameters. Paste a URL and this tool lists each key and its decoded value in a table, shows the same data as JSON and separates the scheme, host, path and fragment. Build mode does the reverse and creates a correctly encoded URL.

How to use the Query String Parser

  1. Paste a URLPaste a full URL or just the query string. Leave the action on "Parse a URL into parameters".
  2. Read the parametersEach parameter appears in a table with its value decoded. Repeated keys are listed separately and grouped into an array in the JSON.
  3. Or build a URLSwitch to build mode, put a base URL on the first line and one key=value pair on each following line, then copy the encoded URL.

Anatomy of a URL and its query string

Take https://shop.example.com/search?q=red+shoes&size=9#results. It has a scheme (https), a host (shop.example.com), a path (/search), a query string after the ? and a fragment after the #. The fragment is used only by the browser and is never sent to the server.

The query string is a list of key=value pairs joined by &. Because &, =, spaces and non-English letters would break that structure, values are percent-encoded: a space becomes %20 or +, and é becomes %C3%A9. The query string parser reverses this so you can read the real values. It handles the awkward cases that turn up in practice:

  • Repeated keys such as size=9&size=10 are kept in order; many frameworks read them as a list.
  • Keys without a value (?debug) and empty values (?q=) are shown as such.
  • Plus signs are decoded as spaces, the convention for query strings.
  • Broken percent sequences are left as typed instead of causing an error.

Building URLs, and what to keep out of them

In build mode, write an optional base URL on the first line and then one parameter per line, such as q=red shoes. You can also paste a JSON object; arrays become repeated keys. Keys and values are encoded with strict percent-encoding (UTF-8, spaces as %20), so an ampersand or equals sign inside a value cannot be mistaken for a separator. If the base URL already has a query string, the new parameters are appended with &.

Typical uses are debugging redirect chains, checking what a tracking link really contains, reading OAuth callbacks and writing test requests for an API. For campaign links specifically, the UTM builder has fields for each tag, and the URL encoder handles a single value.

Bear in mind that query strings are widely recorded: in browser history, server logs, analytics and the Referer header sent to other sites. Passwords, API keys and personal data do not belong in them. Practical length limits also apply; keeping a full URL under about 2,000 characters avoids problems with older browsers, proxies and servers.

Parsing and building both run in your browser, so the URLs you paste are not sent anywhere.

Frequently asked questions

What is a query string?

It is the part of a URL after the question mark. It carries parameters as key=value pairs separated by ampersands, for example ?page=2&sort=price.

How do I parse a query string?

Paste the URL or the query string into the query string parser. Each parameter is listed with its decoded value, and the full set is also shown as JSON.

What happens when the same key appears more than once?

Each occurrence is shown as its own row. In the JSON view the values are collected into an array, which is how most web frameworks treat repeated keys.

Does a plus sign mean a space?

In a query string, yes: form submissions encode spaces as +. The parser decodes them as spaces. In the path of a URL a plus is a literal plus.

Is the fragment after # part of the query string?

No. The fragment is separate, is used only inside the browser and is not sent to the server. The tool shows it on its own row.

Last updated 24 November 2026 by the TheTechFolk team.