在线 UUID v4 生成器 — 免费批量生成
在浏览器中生成密码学随机的 UUID v4 标识符。适用于主键、幂等令牌和唯一资源 ID。
点击"生成"通过 crypto.randomUUID() 产生新的 v4 UUID。可生成任意数量 — 不会记录。
- 输入或粘贴内容以开始
常见用例
- 1Pre-generate IDs for database records before you have an INSERT round-trip.
- 2Create idempotency keys for retry-safe API calls.
- 3Stamp upload filenames so two simultaneous uploads cannot collide.
常见问题
Is this UUID v4 or v7?+
v4 — fully random with 122 bits of entropy. It does NOT sort by time. If you need time-ordered IDs use UUID v7 or ULID instead.
How unlikely is a collision?+
Generating 1 billion UUIDs per second for 100 years still leaves less than a one-in-a-billion collision chance. Practically zero for any sensible workload.
Are these UUIDs cryptographically random?+
Yes. crypto.randomUUID() uses the OS CSPRNG (/dev/urandom on Linux, BCryptGenRandom on Windows, SecRandomCopyBytes on macOS).