// free ยท runs in your browser ยท nothing uploaded
UUID Generator (v4 & v7)
Generate UUID v4 (random) and v7 (time-ordered) in bulk with your browser's secure random generator. Upper case, no hyphens or GUID braces, and decode any UUID's version and timestamp.
๐ Official sources: UUID standard (RFC 9562)
We build every tool from the official rules and re-check them when they change. Always confirm with the official source before you rely on a result.
๐ ๏ธ Spotted a mistake or an out-of-date rule? Tell us
How it works
Version 4 IDs fill 122 bits with random bytes from crypto.getRandomValues and set the version and variant bits. Version 7 IDs put the current Unix time in milliseconds in the first 48 bits and fill the rest with random bits, so they sort in creation order. Paste any UUID and the tool reads its version, variant and, for v7, the time inside it.
Example
A v7 ID made at 09:30 UTC on 28 October 2026 begins 01a181d8-51c0; decoding it gives version 7, RFC 9562, time 2026-10-28T09:30:00Z.
Good to know
- Because a v7 ID shows when it was created, don't use it where the creation time should stay private.
- Store UUIDs in a native uuid or 16-byte binary column rather than a 36-character string; indexes are smaller and faster.
Guides
Related tools
Questions people ask
What is the difference between UUID v4 and v7?+
v4 is fully random. v7 starts with the time it was created (in milliseconds) followed by random bits, so v7 IDs sort by creation time. That makes them faster as database primary keys.
Can two UUIDs ever be the same?+
In practice, no. A v4 UUID has 122 random bits: you would need to make billions every second for many years to have a real chance of a duplicate.
Is a GUID the same as a UUID?+
Yes. GUID is Microsoft's name for the same 128-bit identifier. Tick UPPERCASE and braces to get the {XXXXXXXX-โฆ} style used in Windows and .NET.