Skip to main content

Query String Parser

Parse a URL query string into editable key-value pairs, or build a correctly URL-encoded query string. See how duplicate keys and spaces are handled.

Query string

Stays in your browser

Parameters

Built query string

  • Query?page=2&search=react+tools&tag=frontend&tag=browser

Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)

Online Query String Parser and Builder

Parse query parameters into editable rows, preserve repeated keys, and build a correctly encoded query string without sending data anywhere. It solves the common problem of debugging filters, pagination parameters, and repeated keys inside long URLs.

What this tool does and who uses it

A query string is the key-value portion after a URL's question mark, carrying filters, pagination, search terms, and feature flags between a browser and a web application. Two concrete uses: a developer debugging why a filtered list page shows the wrong results by inspecting exactly which parameters were actually sent, and someone building a shareable link who needs several values under the same key (like multiple tag filters) encoded correctly.

Worked example

Parsing ?page=2&search=react tools&tag=frontend&tag=browser produces four rows, including two separate tag rows (frontend and browser) rather than one row overwriting the other. Rebuilding it produces page=2&search=react+tools&tag=frontend&tag=browser — note the space in "react tools" becomes +, not %20.

Common mistakes and edge cases

  • A space encodes as +, not %20 — both are valid, and this tool's own parser decodes either one back to a space correctly, but if you're comparing output against a different encoder, don't assume a mismatch means a bug.
  • Repeated keys are preserved as separate rows on purpose — if you edit one tag row expecting it to replace all of them, you'll end up with duplicates instead.
  • An empty key is silently dropped when the string is rebuilt (rows need a key to be included), so a row with only a value and no key won't appear in the output.

Frequently asked questions

Can this parse a query string without a full URL?
Yes. Paste a string beginning with ? or a bare query such as page=2&sort=name.
Are duplicate keys preserved?
Yes. Repeated keys are shown as separate rows and remain repeated when the query string is rebuilt.
How is URL encoding handled?
The browser URLSearchParams API encodes spaces, symbols, and non-ASCII characters when building the result.
Why does a space become a + instead of %20 in the output?
URLSearchParams encodes spaces as + by convention (the application/x-www-form-urlencoded format), not %20. Both are valid ways to represent a space in a query string, and any standard URL/query parser — including this tool’s own parser — decodes + back to a space correctly.
How do I encode query parameters correctly?
Put each key and value in its own row and let the tool encode them: a space becomes %20 or +, and characters such as & and = are escaped so they cannot break the string. Repeated keys are kept as separate rows when a parameter appears more than once. Encode the value, not the whole URL, or the slashes and colons of the address get escaped too.

Related tools

More Formatters & Parsers

View all Formatters & Parsers tools →