GenerateRandomSearch

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: [param1] + [value1] + [param2] + [value2] — one of 3 sentence patterns this generator uses.

  • param1: 10 options
  • param2: 10 options
  • param3: 10 options
  • value1: 10 options
  • value2: 10 options
  • value3: 10 options

Taken together those banks can be assembled 1,010,100 different ways — too many to list.

Some results it can produce:

  • ?page=en-GB&q=20
  • ?category=active&category=active&category=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 and each press independent of the last, so the same result can come up twice.

How to use this tool

  1. Press generate for a query string.
  2. 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 part of the result is chosen independently with your browser's cryptographic random number generator, so every option in a bank is equally likely. How Generate Random works.