BYTETOOLS

Query String Parser

Parse a query string into editable key/value rows and build one back from rows. Handles repeated keys and arrays, two-way and live. Free and private in-browser.

Parameters (4)

=
=
=
=

Rebuilt query string

category=books&tag=fiction&tag=classic&sort=price

What is the Query String Parser?

The ByteTools Query String Parser converts a URL query string into a clean, editable table of key/value pairs, and rebuilds a properly encoded query string from those rows.

  • Two-way: parse a query string and build one back
  • Editable key/value rows with add and remove
  • Preserves repeated keys and array-style parameters
  • Automatic, correct percent-encoding on rebuild
  • Powered by the native URLSearchParams engine
  • 100% client-side — query data never leaves your browser

How to use the Query String Parser

  1. 1

    Paste a query string (with or without the leading ?) into the input box.

  2. 2

    Click Parse to split it into editable key/value rows.

  3. 3

    Edit any key or value, add rows, or remove the ones you don't need.

  4. 4

    Watch the rebuilt, encoded query string update automatically.

  5. 5

    Copy the finished query string for your URL or request.

About the Query String Parser

The ByteTools Query String Parser converts a URL query string into a clean, editable table of key/value pairs, and rebuilds a properly encoded query string from those rows. It works both ways, so you can dissect an existing query or assemble a new one from scratch.

Repeated keys — the way arrays are usually passed in a query string — are preserved as separate rows, so nothing is lost when you parse. Edit a value, add a row, or remove one, and the rebuilt query string updates instantly with correct percent-encoding.

It uses the browser's native URLSearchParams under the hood, and everything runs locally, so query data containing tokens or IDs is never uploaded. It is ideal for building API requests, debugging tracking links and editing URL parameters by hand.

Frequently asked questions

What is a query string?

A query string is the part of a URL after the question mark, made up of key=value pairs separated by ampersands. It passes parameters to a page or API, such as search terms, filters and tracking codes.

How do I parse a query string?

Paste it into the box and click Parse. The tool splits it into a table of key/value rows using the browser's URLSearchParams, decoding any percent-encoded characters so you can read and edit each value.

How are repeated keys or arrays handled?

Query strings represent arrays by repeating a key, like tag=a&tag=b. The parser keeps each occurrence as its own row so you can see and edit every value, and rebuilding preserves the repetition.

Can I build a query string from scratch?

Yes. Add rows, type your keys and values, and the rebuilt query string updates live at the bottom with proper encoding. You can start from an empty table or from a parsed string.

Does it encode special characters correctly?

Yes. When rebuilding, values are percent-encoded using the standard URLSearchParams rules, so spaces, ampersands and other reserved characters are escaped correctly and the resulting query string is safe to use in a URL.

Is my query data uploaded?

No. All parsing and building happen in your browser, so parameters that include access tokens or personal data are never transmitted to a server.

Guides for Query String Parser

Related tools