drwho.me
Runs in your browser

UUID generator

Version 4 and version 7.

Version
Output

What this does

Generates random identifiers, one to ten at a time, as version 4 or version 7 UUIDs.

v4 vs v7

Version 4 is 122 bits of random data — nothing about it says when it was made. Version 7 starts with a millisecond timestamp, so values made later sort after values made earlier. That makes v7 a better fit for a database primary key or an ordered log.

Collisions

Both versions carry enough randomness that a repeat is not a realistic risk, even generating billions of them.