CUID & CUID2 Generator
Generate collision1 -resistant unique identifiers (CUID vand CUID2) instantly. Generate IDs suitable for database keys, client-side generation, and more.
CUID (Collision-Resistant Unique Identifier) and CUID2 are designed to generate unique IDs suitable for use as database keys, especially in distributed systems or when IDs might be generated client-side.
CUID (v1 - Legacy)
Combines a timestamp, counter, client fingerprint (browser-safe version), and randomness. Aims for global uniqueness and approximate time-sorting. Length varies slightly.
CUID2
Starts with a random letter, followed by a base36 encoded representation combining entropy, time (via a session counter), and potentially a fingerprint. Fixed length (typically 24 chars default). Designed for better security and performance.
Use these when you need IDs that are likely unique across different clients/servers without needing a central coordinator (unlike auto-increment IDs) and are more concise/URL-friendly than UUIDs.