Trình tạo UUID v4 trực tuyến — Miễn phí số lượng lớn
Tạo định danh UUID v4 ngẫu nhiên về mặt mật mã trong trình duyệt. Hữu ích cho khoá chính, token idempotency và ID tài nguyên duy nhất.
Bấm Tạo để sinh UUID v4 mới qua crypto.randomUUID(). Bao nhiêu cũng được — không có gì được ghi lại.
- Nhập hoặc dán nội dung để bắt đầu
Trường hợp sử dụng phổ biến
- 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.
Câu hỏi thường gặp
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).