Query String Generator
Turn a list of names and values into a correctly encoded query string.
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
- Add each parameter as a name and value.
- Repeat a name if you need a list.
- 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
URL Builder
Build a URL from a base address and named parameters, with encoding handled for you.
URL Parser
Break any URL into protocol, host, port, path, query parameters and fragment.
URL Encoder & Decoder
Percent-encode text for safe use in URLs, or decode an encoded URL back to readable text.
UTM Builder
Build campaign tracking URLs with correctly encoded utm_source, medium, campaign, term and content.