GenerateRandomSearch

URL Path Generator

Generates a random multi-segment URL path (e.g. /api/v1/users/482/orders) — for documentation, mockups or teaching REST path conventions.

What this generator does

Produces a multi-segment URL path for testing routers, breadcrumb rendering and link handling. It exercises the nesting that a single slug does not.

How to use this tool

  1. Press generate for a random URL path.

Worked examples

Format
/v1/214/settings/841/users/571 and /items/v2 — two consecutive draws, one six parts long and one the minimum two

Common use cases

  • API documentation examples
  • Teaching REST path conventions
  • Placeholder routing examples

How this generator works

Two to four segments are drawn from a list of ten common API words — api, v1, v2, users, orders, products, settings, reports, items and sessions — and each has an even chance of being followed by a numeric id from 1 to 999, so a path has between two and eight parts. Only lower-case letters, digits and slashes are used, none of which needs percent-encoding, so the path you see is the path that would appear in a log.

Limitations and good to know

  • Segments are drawn independently from a ten-word list, so a word can repeat and the nesting need not make sense — a version segment can land at the end of a path.
  • A path, not a URL: there is no scheme, host, query string or fragment, and adding one is your business.
  • Nothing is checked against a real routing table, so a generated path may collide with a route that already exists on whatever site you paste it into.
  • Only ASCII is used. Internationalised paths are legal and increasingly common, but they raise encoding questions this deliberately avoids.