UUID and Short ID Generator

Generate UUIDv7, UUIDv4, ULID, NanoID, YouTube-like IDs, and other common short identifiers.

ID type
ID type

UUIDv7

36 characters with dashes, or 32 hex characters without dashes.

UUIDv7 combines a Unix millisecond timestamp with random bits. It keeps UUID compatibility while making newly generated values naturally time-ordered.

Sortable
Yes, by creation time
URL-safe
Path-safe, but long
Best for
Modern database primary keys

Pros

  • Standards-based UUID format.
  • Better index locality than UUIDv4.
  • Works with UUID columns and common UUID libraries.

Cons

  • Longer than short ID systems.
  • Timestamp is visible in the ID.
  • Not as compact as numeric 64-bit IDs.

What it does

Identifier formats trade off standards support, length, sortability, URL safety, and operational complexity. UUIDv7 is a strong modern default because it keeps UUID compatibility while adding timestamp order that databases handle well.

Short ID systems such as ULID, NanoID, KSUID, CUID2, ObjectId, XID, Snowflake, and YouTube-like IDs are useful when URLs, logs, or user-facing records need something more compact or easier to sort.

Common uses

  • Use UUIDv7 for new database primary keys when you want a standards-based, time-ordered UUID.
  • Use UUIDv4 when you need the most familiar random UUID format and do not care about sort order.
  • Use ULID, KSUID, NanoID, or CUID2-style IDs for URL-friendly web app identifiers.
  • Use Snowflake or Sonyflake only when your infrastructure can coordinate machine IDs and sequences.

Watch outs

  • Dashes are part of the canonical UUID text format. Turning them off produces the same 128-bit UUID as a 32-character hex string.
  • Browser-generated Snowflake and Sonyflake values are useful examples, but production systems need coordinated worker or machine IDs.
  • YouTube-like IDs are URL-safe 11-character random strings. They are not real YouTube video IDs.

Privacy

IDs are generated in your browser with Web Crypto randomness. No generated value is sent to Crypto Lambda.

FAQ

Which ID should I choose by default?

Choose UUIDv7 for most new systems. It is standards-based, has 128 bits of space, embeds time for ordering, and still fits UUID columns and libraries.

Should UUIDs include dashes?

Use dashes when another system expects canonical UUID text. Remove dashes when you specifically need a compact 32-character hex string.

Are short IDs always safe for public URLs?

Not automatically. NanoID, CUID2-style IDs, ULID, and KSUID are URL-safe, but collision risk depends on length, randomness, and generation volume.

Related tools