v4 or v7?
UUID version 4 contains 122 random bits; the chance of two ever colliding is negligible. Version 7, standardised in RFC 9562, puts a millisecond timestamp in front of the random part. Because new v7 IDs are always larger than older ones, they keep database indexes compact and make records sortable by creation time, which is why many teams now prefer v7 for primary keys.
IDs generated within the same millisecond still sort in order, thanks to a counter in the random part.
Decode a UUID
Paste any UUID into the decoder to see its version and variant. For time based versions 1, 6 and 7 the decoder also shows when the ID was created, which helps when debugging logs and database rows. Everything runs in your browser.