Tạo 5 UUID phiên bản 4 ngẫu nhiên theo RFC 4122 cùng lúc. Dữ liệu nhập bị bỏ qua; chạy lại để có lô mới.
Cách dùng Tạo UUID
Nhấn Chạy để tạo một lô UUID mới.
Năm UUID phiên bản 4 hiện trong ô đầu ra.
Sao chép chúng chỉ với một cú nhấp; chạy lại để có bộ mới.
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.
Câu hỏi thường gặp
Chúng là UUID phiên bản 4 theo RFC 4122: định danh ngẫu nhiên với 122 bit ngẫu nhiên, được tạo bằng nguồn ngẫu nhiên mạnh về mật mã.
Khả năng trùng là cực kỳ nhỏ. Với 122 bit ngẫu nhiên, bạn cần tạo hàng tỷ UUID trước khi có bất kỳ khả năng trùng lặp thực tế nào.
Năm là một lô tiện lợi cho hầu hết công việc. Nhấn Chạy lần nữa để tạo thêm năm cái bất cứ khi nào bạn cần.
Nhúng công cụ này
Thêm công cụ này vào trang web của riêng bạn. Sao chép đoạn mã bên dưới; nó tự động cập nhật.
<iframe src="https://monu.tools/embed/vi/uuid-generator" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>Công cụ liên quan
Mã hóa văn bản sang Base64 hoặc giải mã Base64 về văn bản. An toàn UTF-8 với tự động nhận diện hướng.
Mã hóa và giải mã percent cho URL và thành phần URL, an toàn UTF-8.
Giải mã JSON Web Token để kiểm tra header và payload của nó, với thời gian hết hạn và thời gian phát hành dễ đọc. Chạy hoàn toàn trong trình duyệt của bạn; token không bao giờ được tải lên.
Tạo mã băm SHA-1, SHA-256, SHA-384 và SHA-512 cho bất kỳ văn bản nào, ngay trong trình duyệt của bạn.