Skip to content

Query String Generator

Turn a list of names and values into a correctly encoded query string.

Runs in your browserNo account neededFree
Loading tool…

Processing: This tool runs entirely in your browser. Your input and any file you open stay on your device — nothing is uploaded to a server.

How to use the query string generator

  1. Add each parameter as a name and value.
  2. Repeat a name if you need a list.
  3. Copy the query string and append it to your URL.

About this tool

A query string is the part of a URL after the question mark: pairs of names and values joined by ampersands. It looks simple enough to write by hand, and that is exactly why it goes wrong — any value containing &, = or a space needs encoding, or the parser will read it as structure rather than content.

Repeated names are allowed and meaningful. tag=a&tag=b is the standard way to express a list, and most server frameworks read it as an array. Add the same name twice here and it is preserved rather than collapsed.

Order is preserved too, though it should not matter: a server reading query parameters by name will treat any order the same, and relying on position is fragile.

Common uses

  • Building an API query for testing.
  • Encoding a search term with spaces or symbols.
  • Expressing a list with a repeated parameter name.

Frequently asked questions

Can I repeat a parameter name?
Yes. tag=a&tag=b is the conventional way to express a list, and most frameworks read it as an array.
Does the order of parameters matter?
It should not. Servers read parameters by name, and relying on position is fragile.
Why is my value being cut off?
Almost always an unencoded & or = inside the value. Encoding, which happens here automatically, fixes it.

Related tools