CUID generator

Copy a fresh CUID2, or switch to CUID v1 if you are matching a legacy system. Need more than one? The bulk generator makes up to 100 at once.

Generate an ID

Current format, recommended for new work

Generating

CUID2 hashes its inputs, so nothing can be read back out of the string. It always starts with a letter.

CUID2 or CUID v1?

Use CUID2 unless an existing system already depends on the CUID v1 format.

PropertyCUID2CurrentCUID v1Legacy
Length24 characters by default, 2 to 32 if you chooseAlways 25 characters
First characterAny lowercase letterAlways c
Readable timestampNoYes, characters 2 to 9
Package@paralleldrive/cuid2, maintainedcuid, deprecated
Use it forNew record IDsMatching IDs an existing system already uses

Both are record identifiers, not secrets. Enforce uniqueness in your database and check access permissions separately.

More tools

Each tool does one job and explains what its result can and cannot tell you.