🔑 crypto.randomUUID() live

Click Generate to call crypto.randomUUID() directly — no import, no library, just the native Web Crypto API. The UUID structure is highlighted below.

1 Generate a UUID
2 Batch generate
Click "Generate batch" to see a list of fresh UUIDs

Every UUID is unique — crypto.randomUUID() draws from the OS's CSPRNG, making collisions astronomically unlikely.

3 Before & after
❌ Before — with the uuid package
import { v4 as uuidv4 } from 'uuid'; const id = uuidv4();
+ bundle weight
✅ After — native
// no import needed const id = crypto.randomUUID();
zero dependencies

Both produce the same v4 UUID format. Both use crypto.getRandomValues() under the hood. The native call removes the dependency entirely.

4 Last generated UUID — copy-paste ready
// Click "Generate UUID" above to see the result here const id = crypto.randomUUID(); // → waiting for first generation...