UUID Generator
Generate cryptographically random UUID v4 identifiers in bulk, formatted exactly how your code needs them.
Formatting
What a UUID is for
A UUID (universally unique identifier) is a 128-bit value you can generate anywhere, on any machine, without asking a central authority, and still be confident it will never clash with another. That property makes them the default primary key for distributed systems, the id you stamp on a new record before it reaches the database, the token in an idempotency header, and the name of a file that must not overwrite anyone else's.
The v4 format, digit by digit
Version 4 is the random flavour and by far the most common. It looks like
xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx: 32 hex digits in 8-4-4-4-12 groups. The
4 in the third group is fixed as the version marker, and the first digit of the
fourth group is always 8, 9, a or b (the
variant). Everything else is random, giving 122 bits of entropy - enough that you can treat
collisions as impossible in practice.
Handy formatting options
- Uppercase - some legacy Microsoft systems and older APIs expect GUIDs in capitals.
- No hyphens - a compact 32-character string that fits neatly into URLs and filenames.
- Quoted and comma-separated - paste a ready-made list straight into a code
array or a SQL
IN (...)clause.
Need other developer utilities? Try the hash generator for checksums, the password generator for secure secrets, or the random number generator when a full UUID is overkill.