GenerateRandomSearch

Nanoid-Style Test ID Generator

Generates a correctly-shaped, 21-character URL-safe test ID in the visual style popularised by the nanoid library — generated independently from our own CSPRNG, not a wrapper around any library, and not implying compatibility with or endorsement by it.

What this generator does

Produces a short URL-safe identifier in the style of the Nano ID library — compact enough to sit in a path segment without wrapping, unlike a UUID. Intended for filling test fixtures and mockups rather than as a drop-in replacement for the real library.

How to use this tool

  1. Press generate for a nanoid-style test ID.

Worked examples

Format
V1StGXR8_Z5jdHi6B-myT
Alphabet
A–Z, a–z, 0–9, plus underscore and hyphen

Common use cases

  • Placeholder database/URL identifiers
  • Documentation and API examples
  • Testing ID-parsing code

How this generator works

Characters are drawn from a URL-safe 64-character alphabet using the browser's cryptographic source, so a 21-character identifier carries 126 bits — comparable to a UUID's 122 random bits in six fewer characters, which is the trade the format exists to make.

Limitations and good to know

  • Identifiers in this style, not the output of any particular library — nothing here should be treated as compatible with a specific implementation.
  • There is no version, timestamp or structure inside: it is random throughout, which means it also sorts randomly.
  • Collision resistance depends on the length. Shortening one to fit a display is a decision about how many identifiers you expect to make.

Independently generated — not produced by, affiliated with, or guaranteed compatible with any specific library.