UUID Generator
By Miikka · CalcBrew · Updated
0 UUIDs · version 4 · 122 random bits
Anatomy of a UUID
v4: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx (x = random hex, y = 8/9/a/b)
v7: tttttttt-tttt-7xxx-yxxx-xxxxxxxxxxxx (t = Unix time in ms, 48 bits)
Other versions exist: v1 embeds a timestamp and the machine’s MAC address (avoid — it leaks hardware identity), v3 and v5 are deterministic hashes of a name (MD5 / SHA-1) that always give the same UUID for the same input, and v6 is v1 with the timestamp bytes reordered. In practice new code needs only v4 and v7.
Generate in code: JavaScript crypto.randomUUID(), Python uuid.uuid4(), Go uuid.New(), PostgreSQL gen_random_uuid() (v7 arrives in PostgreSQL 18), .NET Guid.NewGuid() and Guid.CreateVersion7().
Frequently asked questions
Cite this calculator
CalcBrew. (2026). UUID Generator. https://calcbrew.com/uuid-generator“UUID Generator.” CalcBrew, 2026, calcbrew.com/uuid-generator.Link to https://calcbrew.com/uuid-generator. Results are estimates; cite the underlying formula or data source for academic work.
Related tools
More in Developer Tools · All tools & games