UUID Generator

Generate UUID v4, v5 and v7 in batches. 100% local, nothing uploaded.

Options Pick version, count and format
Results Click a row to copy it
—

UUID Generator / UUID在线生成器

This free online UUID generator creates universally unique identifiers (UUID / GUID) of version 4, 5 and 7 — one at a time or in batches of up to 1,000 — entirely in your browser. 免费在线UUID(GUID)生成器:支持 v4 / v5 / v7 三种版本,单次或批量最多 1000 个,全部在浏览器本地生成,不上传任何数据。You can also switch case and remove the dashes to match any system's expected format.

v4 vs v5 vs v7 / 三个版本怎么选?

  • UUID v4 — 122 bits of pure randomness. The default for records, API keys, session IDs and anything that just needs to be unique. 最常用,纯随机。
  • UUID v7 — millisecond-precision timestamp in the high bits: sortable in time order, index-friendly for databases, and still random enough to avoid collision. Great modern replacement for auto-increment + randomness mixes. 时间有序,适合数据库主键。
  • UUID v5 — deterministic: the same namespace + name always produces the same UUID (SHA-1 based). Use it when you need a stable ID derived from an email, a URL or any other key. 同名同值,适合由固定键派生ID。

Common uses / 常见用途

  • Primary keys for databases that need client-side or cross-shard uniqueness
  • Correlation / trace IDs across services and logs
  • Unique keys for uploaded files, assets and exports
  • Stable identifiers derived from user data (v5, e.g. an email address)

Privacy / 隐私说明

Generation uses your browser's cryptographic API (crypto.getRandomValues / Web Crypto) and runs 100% on your device. Nothing is sent anywhere. 使用浏览器密码学API本地生成,数据不外传。

FAQ / 常见问题

Q: Are UUIDs guessable? / UUID 能被猜出来吗? — v4 has 122 random bits: guessing one is computationally infeasible. Do not use a UUID *as a secret* though — it is an identifier, not a password. v4 有 122 位随机性,无法被猜中,但请不要把它当密码用。

Q: Can I generate more than 1,000? / 能一次生成超过 1000 个吗? — For huge batches, keep pressing Generate: each batch takes under a second. 可以分批生成。

Related tools / 相关工具