BuildUtilities

What is a UUID v4?

The 'random' UUID, generated from 122 random bits, with collisions effectively impossible.

UUID Generator

Full tool
3e211ee9-0234-4c34-af3d-1978720934c8
3c0541aa-2ab6-42a4-9d0e-fe1c285b3016
a0f9f025-c864-44b0-b2b5-cf25b20285b8
fe4762cc-5db0-46a4-a880-6088e9e97307
418c6cca-2f10-4528-adef-714a7a133850

UUID v4 fills almost every bit with random data, except for 6 bits that mark it as version 4. There's no timestamp, MAC address, or other source, just randomness.

That makes it safe to generate anywhere (client, server, edge) without coordination. The chance of two v4 UUIDs colliding is about 1 in 2^122, you'd need to generate billions per second for centuries to even worry.

Downside: v4 IDs don't sort by creation time. If you index by them in a database, inserts scatter across the index. UUID v7 fixes that.

Keep reading

Tip Jar