Multiple UUID Versions
Support for UUID versions 1, 3, 4, 5, 6, and 7 with detailed explanations
Create universally unique identifiers for your applications
A UUID (Universally Unique Identifier) is a 128-bit number used to uniquely identify information in computer systems. It is widely used to ensure uniqueness across different databases, systems, and networks without a central coordinating authority.
This is an example of a valid UUID: 61dab95b-179f-4ccf-a7c7-cc41e2983891
In its essence a UUID is a 128-bit number, which can be represented in a number of ways. The canonical way to represent a UUID is as five hexadecimal numbers separated by hyphens, giving a total of 36 characters (32 hex digits and 4 hyphens).
The UUID specification allows applications to generate custom UUIDs based on their specific needs. The only hard requirement is that the version and variant bits must be present and conform to the UUID specification. UUID version 8 is reserved for such custom UUID implementations.
For most applications, we recommend UUID Version 4 for its simplicity and security. However, if you need time-ordered IDs for database performance, consider UUID Version 7.