UUID v4 & GUID Batch Generator

Need a unique ID? v4 for pure randomness, v7 if you want time-sortable database keys. Generate one or a batch — and decode the timestamp hidden in any v1/v6/v7.

Embed this tool on your website / blog No code required · Copy and paste
HTML Embed Code (iframe):
<iframe src="https://lucentool.com/uuid-generator" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/uuid-generator" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - UUID v4 & GUID Batch Generator</a></div>

v4 vs v7

UUID v4 is 122 bits of pure randomness — the classic choice, zero information leakage, no ordering. UUID v7 puts a 48-bit Unix timestamp (ms) first, then random bits: values are sortable by creation time, which makes them better for database primary keys (better insert locality) and logs (time-ordered). Since RFC 9562, v7 is the recommended default for new systems.

Decoding timestamps

In v7 the first 48 bits are the Unix timestamp in milliseconds. In v1/v6 the timestamp is a 60-bit count of 100 ns intervals since 1582-10-15; the decoder reassembles the field order and converts it to a UTC instant — useful for auditing when an ID was minted (e.g. a user record's creation time without a separate column).

Versions at a glance

Prefer a shorter time-sortable ID? See the ULID Generator — 26 chars vs 36, same idea.