Generate universally unique identifiers (UUID v4) for your applications. Each UUID is cryptographically random and guaranteed unique.
UUID (Universally Unique Identifier) is a 128-bit identifier used to uniquely identify information without central coordination. The format is xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx.
We generate version 4 UUIDs using cryptographically secure random generation (crypto.randomUUID). The probability of collision is astronomically low — you would need to generate 1 billion UUIDs per second for 85 years to have a 50% chance of a duplicate.
Choose between uppercase or lowercase and with or without hyphens, according to your system's needs. Some databases prefer UUIDs without hyphens to save space.