randomUuid.seo.intro
Frequently Asked Questions
What is a UUID?
UUID (Universally Unique Identifier) is a 128-bit label used to uniquely identify information in computer systems. It is standardized by RFC 4122 and has a format like 550e8400-e29b-41d4-a716-446655440000.
What is the difference between UUID v1 and UUID v4?
UUID v1 is generated based on the current timestamp and MAC address, making it time-ordered but potentially revealing system information. UUID v4 is randomly generated using cryptographically secure random numbers, making it more privacy-friendly and suitable for most use cases.
Is UUID truly unique?
UUID v4 has 122 bits of randomness, making the probability of collision astronomically low (about 1 in 5.3×10^36). For all practical purposes, UUIDs are unique.
What is ULID and when should I use it?
ULID (Universally Unique Lexicographically Sortable Identifier) is a 128-bit identifier that is sortable by creation time. Use ULID when you need unique IDs that can be sorted chronologically, such as database primary keys.