URL Query String Generator
Builds a sample URL query string from realistic parameter names — page, sort, filter — for testing a router, pagination component, or link-builder.
What this generator does
Produces a sample query string with realistic parameter names, for testing parsers and filling documentation. Distinct from the site's slug tool, which produces a path segment — a query string carries parameters that do not change which resource you are addressing, which is the whole basis of caching.
What it builds, and how many ways
Each result is assembled to this shape: [param] + [value1] + [param] + [value2] — one of 3 sentence patterns this generator uses.
- param: 10 options
- value1: 10 options
- value2: 10 options
- value3: 10 options
Taken together those banks can be assembled 729,100 different ways — too many to list.
Some results it can produce:
- ?page=en-GB&q=20
- ?category=active&status=active&id=active
- ?page=true
- ?category=20&id=true
A fixed sample so this page stays the same between visits. Your own results are assembled at random, each slot filled independently (a slot one pattern names twice takes two different values) and each press independent of the last, so the same result can come up twice.
How to use this tool
- Press generate for a query string.
- Copy it, or generate again for another one.
Common use cases
- Testing a router or pagination component
- Link-builder demo data
- Documentation examples
Limitations and good to know
- The values are illustrative rather than valid for any real API, and nothing here is URL-encoded beyond what the example needs.
- Real query strings frequently contain personal data and session identifiers. Never paste a real one into documentation or a bug report without checking what is in it.
- Each parameter name is drawn from one pool of ten and never twice in a string, but a value is drawn without regard to its name, so a page can be 'active' and a language '42' — the shape is realistic and the pairing is not.
Each part of the result is chosen independently with your browser's cryptographic random number generator, so every option in a bank is equally likely. Where one pattern names a slot twice, the second is chosen from the options the first left. How Generate Random works.
Frequently asked questions
- Can the same parameter appear twice in one string?
- It does not: the names in one string are always different. Each is drawn from the same pool of ten common names, and a name already used in the string is not drawn again. The values are drawn independently and can repeat.