Loading...
Generate unique UUIDs (v4)
UUID v4, which uses cryptographically secure random numbers via crypto.randomUUID().
Yes. UUID v4 has 122 random bits, giving 5.3 × 10^36 possible values. The chance of collision is astronomically small.
Database primary keys, session identifiers, tracking IDs, API keys, and any case where you need a globally unique identifier.