What is a UUID?
A universally unique identifier is a 128-bit value written as 32 hexadecimal characters separated into five groups. UUIDs let independent systems create identifiers without asking a central service for the next number.
How UUID version 4 works
Version 4 UUIDs use random bits, with a small number reserved to identify the UUID version and variant. This leaves 122 random bits, making accidental collisions extremely unlikely when values come from a cryptographically secure random source.
Common UUID uses
UUIDs are widely used for database records, API resources, event IDs, distributed jobs, test data, filenames, request tracing, and client-generated records that may be synchronized later. Their fixed format also makes them easy to recognize and validate across programming languages.
UUIDs are identifiers, not secrets
A UUID v4 is difficult to guess but should not replace authentication, authorization, or a purpose-built security token. Treat UUIDs as identifiers that may become visible in URLs, logs, or application data.