UUID (v4 / v7), ULID & NanoID Generator

Generate bulk unique identifiers locally using crypto.getRandomValues() - UUID v4, timestamp-ordered UUID v7 (RFC 9562), ULID, and NanoID.



    

Choosing Between UUID v4, UUID v7, ULID & NanoID

  • UUID v4: 122 random bits (xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx). Universally supported across SQL databases and languages, but completely random order can fragment B-tree indexes.
  • UUID v7 (RFC 9562): Embeds a 48-bit Unix millisecond timestamp in the leading bits followed by random bits - natively sortable by creation time and ideal for PostgreSQL/MySQL primary keys.
  • ULID: 26-character Crockford Base32 string (48-bit timestamp + 80-bit randomness), URL-safe, case-insensitive, and lexicographically sortable.
  • NanoID: Compact 21-character URL-safe string (A-Za-z0-9_-) with collision resistance comparable to UUID v4.
Please read the privacy policy (agreement of the cookies usage, other websites embedded content, etc.). If you continue to use the site, we will assume that you agree with our privacy policy.
OkPrivacy Policy