Options
What is a UUID?
A UUID (Universally Unique Identifier) is a 128-bit label used for information in computer systems. The term globally unique identifier (GUID) is also used.
Format: UUIDs are typically represented as 32 hexadecimal digits, displayed in 5 groups separated by hyphens: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Example: 550e8400-e29b-41d4-a716-446655440000
UUID Versions
Version 4 (Random)
Generated using random or pseudo-random numbers. This is the most commonly used version and provides excellent uniqueness.
Nil UUID
A special UUID with all bits set to zero: 00000000-0000-0000-0000-000000000000. Used to represent a null or empty UUID.
Common Use Cases
Database Primary Keys
Unique identifiers for database records
File Names
Generating unique file names to avoid conflicts
Session IDs
Tracking user sessions in web applications
Distributed Systems
Unique IDs across multiple servers without coordination