UUID v7 Generator & Decoder
Generate UUID version 7 IDs in bulk and decode any UUID to read the creation time hidden inside it. UUID v7 (RFC 9562) puts a millisecond timestamp in front of random bits, so IDs sort by age — the reason 2026 databases and APIs are moving off v4. Free, online and private — nothing is sent to a server.
Every ID carries the current UTC time (millisecond precision) in its first 48 bits. IDs created in the same millisecond get an incrementing counter, so the list is unique and strictly in creation order.
What Is a UUID v7 — and Why 2026 Apps Use It
A timestamp first, randomness second. That one decision changes how your database behaves.
UUID version 7 is a 128-bit identifier whose first 48 bits are the Unix timestamp in milliseconds — followed by the version digit 7 and 74 bits of random data (standardised in RFC 9562, April 2024). Because the most-significant bits are the time, two v7 UUIDs compared as strings (or as char(36) columns) come out in creation order.
Why that matters: v4 UUIDs are pure random. Inserting them into a B-tree index (Postgres, MySQL, InnoDB) scatters writes across the whole tree — every insert can touch a different leaf page, causing index bloat, cache misses and write amplification. A v7 stream is almost sequential, so pages fill up in order, inserts stay fast, and your index stays compact. For time-series tables, audit logs and any high-write workload, that difference is measurable.
Monotonicity. RFC 9562 asks generators to stay unique and ordered even when many IDs are created in one millisecond. This generator does that with a 12-bit counter in the rand_a field: 4,096 IDs per millisecond, then it rolls to the next millisecond. If the clock steps backwards, the generator holds the last time instead of producing unsorted output.
The trade-off. A timestamp is in the ID: anyone who sees a v7 UUID can tell (to the millisecond) when it was created. That's fine for database keys, session IDs and internal records. If your IDs are public and must not reveal timing — tokens, public share links — stay with v4. The UUID Generator here makes v4 in bulk; this page is for v7 and for reading what's inside any UUID.
Why the switch is happening now. v7 only became official in April 2024, so the migration wave is 2025–2026: language ecosystems caught up first (JDK 24's UUID.randomUUIDV7() in Java, Guid.CreateVersion7() in .NET, uuidv7 in the npm uuid package, uuid6/uuid7 packages in Python, google/uuid in Go), and teams are now moving existing schemas and new services to it. If you're designing a new table or API in 2026 and you have no special reason for v4, v7 is the sensible default.
Reading them back. The decoder tab works on all versions: v7 and v6 give the millisecond timestamp, v1 gives the original 100-nanosecond timestamp (since 1582), v4/v3/v5 have no time at all, and v8 gets flagged as custom. Paste a batch and you get a table — the quickest way to figure out what a mysterious ID in your logs actually is. Convert the epoch value anywhere with the Unix Timestamp Converter.
The UUID v7 Format, Bit by Bit
128 bits: 48 time · 4 version · 12 counter/random · 2 variant · 62 random.
In the standard dashed form 019b3a2e-4c6f-7a1d-8b2e-9f3c1d4e5f6a: the first group (019b3a2e) is the whole timestamp — 0x019b3a2e4c6f = 1,766,207,671,407 ms ≈ 2025-12-20 05:14:31 UTC. The third group starts with 7 (the version), and the fourth group starts with 8, 9, a or b (the 10 variant bits). RFC 9562 also defines a base64url (Crockford) form — 26 characters from 0-9 A-Z excluding I, L, O, U — which this tool both generates and decodes.
| Version | Contents | Sortable? | Notes |
|---|---|---|---|
| v1 | 100-ns timestamp (since 1582) + MAC address | Yes (100-ns) | The original 1995/2005 design. Leaks the MAC; not monotonic across hosts. |
| v3 | SHA-1 of namespace + name | No | Deterministic name-based UUID. |
| v4 | 122 random bits | No | The random default in most languages. Maximally private, worst for DB indexes. |
| v5 | SHA-256 of namespace + name | No | Deterministic name-based UUID (stronger hash than v3). |
| v6 | 100-ns timestamp, re-ordered for sorting + monotonic sequence | Yes (fully) | Same time base as v1, but laid out so the whole ID sorts — the "fixed v1". |
| v7 | 48-bit Unix-ms timestamp + 74 random bits | Yes (ms) | RFC 9562 (2024). The 2026 default for new database/API IDs. |
| v8 | Vendor-defined layout | Only if the vendor puts time first | RFC 9562 standardises the shape, not the meaning. Document your own layout. |
Further reading: RFC 9562 — Universally Unique IDentifiers (UUID) · RFC 4122 (superseded baseline)
UUID v7 vs v4 vs v8 vs ULID vs Snowflake
Sortable IDs from five different eras — and where each one wins.
| UUID v7 | UUID v4 | UUID v8 | ULID | Snowflake ID | |
|---|---|---|---|---|---|
| Size | 128 bits · 36 chars | 128 bits · 36 chars | 128 bits · 36 chars | 128 bits · 26 chars (Crockford) | 64 bits · 18–19 digits |
| Sorts by time? | Yes (ms) | No — random | Only if your layout puts time first | Yes (ms) | Yes (ms) |
| Timestamp | Unix ms, standard position | None | Vendor-defined | Unix ms, standard position | Unix ms |
| Uniqueness | 74 random bits + ms prefix | 122 random bits (best) | Depends on layout | 80 random bits + ms prefix | Machine ID + sequence — assigns identity |
| Clock skew | Harmless — still unique | n/a | Depends | Harmless — still unique | Risky — backwards clock can duplicate IDs |
| Standard | RFC 9562 (2024) | RFC 4122 (2005) | RFC 9562 (2024) | Community spec (2011) | Twitter (2010), unofficial |
| Best for | New DB keys, APIs, time-series (2026 default) | Public IDs that must not reveal anything | Custom vendor needs | Compact sorted strings | Legacy distributed systems that can manage machine IDs |
Rule of thumb: v7 for new database and API IDs, v4 for public identifiers, ULID when you want the sorted property in fewer characters, Snowflake only if you already run the infrastructure to allocate machine IDs.
Why Use the UUID v7 Generator on Developers Web Tools
Spec-correct, fast and private — built for developers.
RFC 9562-correct
Proper 48-bit ms timestamp, version and variant bits, and a monotonic counter for same-millisecond bursts.
Reads every version
Decoder handles v1–v8, extracts v7/v6/v1 creation times, flags v3/v5 name-based IDs and non-standard variants.
All three forms
Generate and decode standard dashed, 32-hex compact and base64url (Crockford) — the form RFC 9562 added.
Bulk
Up to 500 IDs per click; decode up to 1,000 pasted lines at once. Copy or download as .txt.
Instant
Generates on page load, decodes as you type. No waiting, no rate limits.
Private
Runs entirely in your browser — your IDs and your data never leave the page.
Frequently Asked Questions
A UUID version 7 is a 128-bit identifier that starts with a 48-bit Unix timestamp in milliseconds, followed by the version digit 7 and 74 bits of random data. Because the timestamp comes first, v7 UUIDs sort in the order they were created — exactly what databases and time-series systems want. Version 7 is standardised by IETF RFC 9562.
Use v7 when IDs are stored in a database or API where insertion order matters: the sorted prefix keeps indexes compact and avoids the random-write fragmentation v4 causes. Use v4 when the ID must not reveal anything — not even the creation time — because it is pure randomness. In 2026, v7 has become the common default for new IDs in database-backed systems, while v4 remains the safest choice for public-facing identifiers.
128 bits, same as every other UUID. With hyphens it is 36 characters in the classic 8-4-4-4-12 form, 32 characters without hyphens, and 26 characters in the base64url (Crockford) form defined by RFC 9562.
Version 7 has a fixed, standard layout: 48-bit Unix-ms timestamp, version 7, then 74 random bits — so every v7 sorts chronologically. Version 8 is a custom layout: the standard deliberately leaves the fields undefined so vendors can put whatever they want there (a millisecond timestamp, a sequence number, a machine ID, or pure randomness). If you adopt v8, you must document your own layout — two different teams using v8 will not have compatible IDs.
UUID v7 was standardised in IETF RFC 9562, published in April 2024. It standardised the version 6, 7 and 8 designs that had been circulating in a draft since 2017, and also introduced the base64url (Crockford) string form. By 2026 most major language ecosystems ship v7 generators — for example UUID.randomUUIDV7() in Java (JDK 24+) and Guid.CreateVersion7() in .NET.
Version 5 is a name-based UUID: it is the SHA-256 hash of a namespace UUID plus a name (a URL, a filename, an email address…), truncated to 128 bits. The same inputs always produce the same UUID, so v5 gives you deterministic, repeatable IDs with no clock and no state. Version 3 does the same thing with SHA-1. Neither version contains a timestamp.
Yes — lexicographic order of v7 UUIDs equals chronological order, with millisecond precision. That is the whole point of putting the timestamp in the most-significant bits. For IDs created in the same millisecond, a well-behaved generator (including this one) uses a counter in the random prefix, so output stays unique and monotonic even under bursts.
Yes. Write Date.now() as 48 big-endian bits, set the version nibble to 7, set the variant bits to 10, and fill the rest with crypto.getRandomValues(). Most libraries ship it already — the npm uuid package (uuidv7), Java (UUID.randomUUIDV7 since JDK 24), .NET (Guid.CreateVersion7), Python (the uuid6/uuid7 packages) and Go (google/uuid) all generate compliant v7. This tool does exactly that, entirely in your browser.