一次生成 5 個隨機的 RFC 4122 版本 4 UUID。輸入會被忽略;再次執行可獲取新一批。
如何使用 UUID 產生器
點擊 Run 生成一批新的 UUID。
輸出面板會顯示五個版本 4 的 UUID。
一鍵複製;需要更多時再次執行。
A UUID (universally unique identifier) is a 128-bit value used to label things, database rows, files, events, messages, API resources, without a central authority handing out IDs. Any machine can mint one independently and trust it will not clash with anyone else's.
This generator produces version 4 UUIDs, the most common kind. A v4 UUID is almost entirely random: 122 of its 128 bits come from a random source, with the remaining 6 bits fixed to mark the version and variant. It is written as 32 hexadecimal digits in the familiar 8-4-4-4-12 grouping.
Each batch of five is generated with your platform's cryptographically secure random source, the same one used for security-sensitive randomness, not a predictable pseudo-random function. Press Run again any time for a fresh batch.
Uniqueness is a matter of probability rather than a hard guarantee, but the numbers are reassuring: with 122 random bits you would need to generate billions of UUIDs before the chance of a single collision became meaningful. For practically every application this is effectively unique.
Version 4 is the right default when you just need a unique ID. If ordering matters, version 7 encodes a timestamp in its leading bits so IDs sort by creation time, which keeps database indexes tidier than fully random v4 keys. The Learn article on v4 vs v7 covers the trade-off in depth.
Common uses include primary keys, idempotency keys that make a request safe to retry, correlation IDs for tracing a request across services, and unique file names. Keep in mind that a v4 UUID is random but not secret, so it should not be used on its own as a security token or password.
常見問題
它們是 RFC 4122 版本 4 的 UUID:具有 122 個隨機位元的隨機識別碼,使用加密強度高的來源生成。
發生碰撞的可能性極低。有了 122 個隨機位元,您需要生成數十億個 UUID,才有可能真正出現重複。
對大多數任務來說,五個是個便利的數量。需要更多時,再次點擊 Run 即可再生成五個。
嵌入此工具
將此工具加入你自己的網站。複製下方的程式碼片段,它會自動保持最新。
<iframe src="https://monu.tools/embed/zh-Hant/uuid-generator" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>相關工具