Shipping an AI app or agent? Security review in 1 working day: $149 / ₹13,900. Request a review →
AI Review Ready
Home / Free tools / UUID generator
Free tool · runs in your browser

UUID generator v4 and v7

Generate random (v4) or time-ordered (v7) UUIDs with your browser's secure random generator, and check any UUID's version.

v4 or v7?

  • Version 4: 122 random bits. Use it when the ID should reveal nothing.
  • Version 7 (RFC 9562, 2024): starts with a 48-bit Unix timestamp in milliseconds, then random bits. IDs sort by creation time, which keeps database indexes compact. RFC 9562 says implementations should use v7 rather than v1 or v6 when they need time ordering. The trade-off: anyone can read when the ID was created (the checker above shows it).

Will two UUIDs ever collide?

For v4, the chance is negligible for any realistic number of IDs, as long as the random source is good. This page uses crypto.randomUUID() / crypto.getRandomValues(), the browser's cryptographically secure generator. Don't generate UUIDs with Math.random().

Format

32 hex digits in 5 groups, 8-4-4-4-12. The first digit of the third group is the version; the first digit of the fourth group (8, 9, a or b) marks the standard variant.

Sources