UUID generator
Every UUID version, generated in your browser. Paste one to see its version and, for time-based ones, when it was made.
Every UUID version, generated in your browser. Paste one to see its version and, for time-based ones, when it was made.
| Version | What's inside | Sorts by time | When to use |
|---|---|---|---|
| 122 random bits. | No | The default when you just need a unique ID. Reveals nothing about when or where it was made. | |
| Unix time in milliseconds (48 bits) + 74 random bits. | Yes, by creation time | Database primary keys and anything listed by date: sorted IDs keep indexes compact. Reveals the creation time. | |
| Time in 100 ns steps since 1582, stored out of order, + clock sequence + node (originally the MAC address). | No (time bits are shuffled) | Only for compatibility with old systems. Prefer v7 (or v6 if you need v1's fields). | |
| The same fields as v1, with the time from most to least significant. | Yes, by creation time | Migrating from v1 while gaining time order. For new systems, prefer v7. | |
| MD5 of a namespace UUID and a name. | No | A stable ID for a name (the same input always gives the same UUID). Prefer v5. | |
| SHA-1 of a namespace UUID and a name. | No | A stable ID for a name: URLs, domains, file paths. The same namespace + name always gives the same UUID. | |
| Anything: only the version and variant bits are fixed. Here, random. | Depends on the layout | Vendor-specific layouts. Only when you control both the format and its readers. | |
| 128 zero bits. | — | “No value”, like null, where a UUID is required. | |
| 128 one bits. | — | An upper bound or a sentinel value. |