Utilify

UUID v7 Generator (Time-Ordered) & Decoder

Generate time-ordered UUID v7 identifiers and decode their embedded timestamp. Free, fast, runs entirely in your browser.

How to use UUID v7 Generator

  1. 1
    Choose how many

    Set how many UUID v7 values to generate (1–100).

  2. 2
    Generate

    Click Generate. Each value is created locally with cryptographic randomness.

  3. 3
    Copy

    Copy a single UUID or use Copy all to grab the whole batch.

  4. 4
    Decode (optional)

    Paste any v7 UUID into the decoder to read its embedded creation time.

About UUID v7 Generator

UUID version 7 is the newest standard UUID, defined in RFC 9562 (2024), and it solves the biggest practical problem with the classic random UUID v4: ordering. A v4 UUID is 122 bits of pure randomness, so consecutive values land in unrelated positions. Used as database primary keys, every insert scatters across the B-tree index, which fragments pages, hurts cache locality, and slows writes at scale.

UUID v7 fixes this by putting a 48-bit Unix millisecond timestamp at the front of the identifier, followed by the version and variant bits and 74 bits of randomness. Because the timestamp leads, v7 values are time-ordered: sort them as strings and they come out in creation order. New rows append near the end of the index instead of scattering, so you keep the insert performance of an auto-incrementing integer while keeping the decentralization and unguessability of a UUID — with no central allocator.

A v7 UUID looks identical in shape to any other UUID (32 hex digits in the 8-4-4-4-12 layout), with the version digit fixed to 7. Because the timestamp sits in plain view, you can also decode roughly when an ID was created, which is handy for debugging or auditing without a separate created_at column. This tool generates cryptographically random v7 UUIDs with your browser crypto API, and the decoder reads the timestamp back out of any v7 you paste.

Everything runs locally — no value is ever sent to a server, so the IDs are safe even in security-sensitive contexts. If you want maximum write performance on a UUID primary key, v7 is usually a better default than v4; if you specifically need IDs with no time signal at all, stay with v4.

When to use UUID v7 Generator

  • Database primary keys

    Keep index inserts sequential and fast while staying globally unique, no central allocator needed.

  • Distributed systems

    Generate unique IDs on many nodes at once without coordination or collisions.

  • Sortable event IDs

    Tag log records or events with v7 IDs so they sort into creation order by default.

  • Quick auditing

    Decode a v7 to see roughly when a record was created without a separate timestamp column.

Frequently asked questions

What is the difference between UUID v4 and v7?+

Both are 128-bit UUIDs, but v4 is fully random while v7 begins with a 48-bit timestamp. That makes v7 time-ordered and far friendlier to database indexes, whereas v4 carries no time information.

Are UUID v7 values safe to use as primary keys?+

Yes, and they are often better than v4 because the time-ordered prefix keeps B-tree index inserts sequential, reducing fragmentation and improving write throughput at scale.

Can someone read the creation time from a v7 UUID?+

Yes. The first 48 bits are a Unix millisecond timestamp, so anyone can decode roughly when the ID was generated. If a time signal is undesirable, use v4 instead.

Is the generation cryptographically secure?+

The random portion uses your browser crypto.getRandomValues, a cryptographically secure source. The timestamp portion is, by design, predictable.

Does anything get sent to a server?+

No. Generation and decoding both run entirely in your browser; no UUID ever leaves your device.

Related tools

From the blog