UUID 生成器
在线生成 UUID v4,支持批量生成和格式定制。纯前端处理,零延迟。
UUID Generator — Bulk Create v1 / v4 UUIDs Online
工具介绍
UUIDs (Universally Unique Identifiers) are 128-bit identifiers that are practically unique without central coordination. This tool generates UUID v1 (timestamp + MAC) and v4 (fully random) versions, in single or batch mode. All UUIDs are created using the browser's crypto.randomUUID() API — secure, fast, and never sent to a server. Perfect for database keys, filenames, order numbers, and tracking IDs.
怎么使用
- Pick a UUID version (v4 random or v1 timestamp)
- Choose how many to generate (1–1000)
- Click "Generate"; results appear below; copy with one click
常见用例
- Database primary keys (better than auto-increment for distributed systems)
- Unique filenames after file uploads to prevent collisions
- Order numbers, tracking IDs, ephemeral tokens
- React/Vue list keys (a must for stable rendering)
常见问题
Q: Are UUIDs truly unique?
A: Practically yes — 2¹²² possible values means collisions are negligible.
Q: When should I use v1 vs v4?
A: Use v4 (random) for almost everything. Pick v1 only if you need time ordering.
Q: Is anything uploaded?
A: No. Generation is 100% local.
小贴士
Store UUIDs as CHAR(36) or BINARY(16). They use about 2x more space than auto-increment.
Need time ordering? v1. Need only uniqueness? v4.
Want shorter IDs? Try the random number generator or a NanoID-style scheme.