Skip to main content
KalkuNet

UUID v7 and ULID Generator — IDs That Sort by Time

Generate lexicographically sortable RFC 9562 UUID v7 and Crockford ULIDs.

Runs in your browserDeveloper · Cryptography, JWT, Keys & Identifiers
Type:
Layout:
  • UUID v7 and ULID start with a millisecond timestamp, so they sort by creation time and suit database primary keys: B-tree indexes stay compact unlike with random UUID v4.
  • Many IDs within the same millisecond stay in order: UUID v7 increases a 12-bit counter (RFC 9562 §6.2) and ULID increases its random part. The random bits come from crypto.getRandomValues.

When to use the Time-Sortable UUID v7 & ULID Bulk Generator

  • Sorted by creation time

    UUID v7 and ULID begin with a millisecond timestamp, so their text order matches the order they were made. Databases insert them at the end of the index rather than at random places like UUID v4.

  • Still ordered within one millisecond

    Thousands of IDs can be made in one millisecond. UUID v7 uses a 12-bit counter as RFC 9562 section 6.2 describes, and ULID increases its random part, so the whole list stays strictly ordered.

  • UUID v7 or ULID?

    UUID v7 suits columns of type uuid, as in PostgreSQL. ULID is shorter (26 Crockford Base32 characters), case-insensitive and pleasant in URLs.

  • Tested with Python

    Testing makes 20,000 UUID v7s and 20,000 ULIDs at once, then checks with Python's uuid module and a separate Base32 reader that the version, time and order are right and that none repeat.

Frequently asked questions

Is UUID v7 a standard?

Yes. UUID v7 is standardised in RFC 9562 from 2024, which replaces RFC 4122.

Can a ULID be turned into a UUID?

Yes. Both are 128 bits; the UUID and ULID decoder shows the other form.

What if the computer clock goes back?

The generator never uses a time earlier than the previous ID in a list, so the order stays right even if the system clock is set back.

Are these IDs stored?

No. They are created in your browser and sent nowhere.

Learn more