Generate batch lists of RFC 4122 compliant version-4 UUID / GUID strings for databases, APIs, and microservices.
A guid generator (or UUID v4 generator) produces 128-bit Universally Unique Identifiers formatted as 32 hexadecimal characters across five hyphenated groups (8-4-4-4-12). Using cryptographically secure pseudorandom numbers (crypto.getRandomValues), it provides virtually collision-free primary keys for distributed systems, REST APIs, and databases.
In modern software architecture, primary keys must often be generated on distributed client nodes without a central database coordinator. UUID Version 4 (RFC 4122) uses cryptographically secure pseudorandom numbers to construct unique 128-bit identifiers, preventing key contention in microservices and distributed SQL/NoSQL databases like PostgreSQL, MySQL, and MongoDB.
A standard UUID is represented as 32 hexadecimal digits separated by hyphens into five groups:
Notice the 13th digit (4), which designates the Version (UUID v4), and the 17th digit (8, 9, a, or b), which specifies the RFC 4122 variant.