Skip to main content
CodeLint.Dev Dev Tools
1 UUID · v4 random
  1. 1 d8463376-ba27-4df3-87d4-3a50b34f33d4
UUID v1 — Time-based

Encodes the current timestamp plus a random node ID. Values generated within the same millisecond are monotonically incremented. Useful when you need to trace when a record was created.

UUID v4 — Random

All significant bits are filled with cryptographically secure random data. The most widely used UUID version — ideal for primary keys, session tokens, and correlation IDs where ordering does not matter.

UUID v7 — Time-ordered RFC 9562

Embeds a Unix millisecond timestamp in the most-significant bits, making UUIDs sortable by creation time. Dramatically improves database index performance compared to v4. Recommended for new database primary keys.