UUID 生成器 使用指南

生成一个或多个通用唯一标识符 (UUID) v4。即时复制 — 标准或紧凑格式。

返回 UUID 生成器

What does this tool do

The UUID Generator creates universally unique identifiers (UUIDs) version 4. Choose how many UUIDs to generate (1–1000) and whether to display them in standard format (with hyphens) or compact format (32 hex characters, no hyphens). All generation runs in your browser — no upload, no server. Useful for database keys, API tokens, correlation IDs, and any situation where you need a unique identifier.

How to use it

  1. Choose format — Standard (e.g. 550e8400-e29b-41d4-a716-446655440000) or Compact (e.g. 550e8400e29b41d4a716446655440000).
  2. Set count — Enter how many UUIDs to generate (1–1000).
  3. Generate — Click the Generate button. Results appear instantly.
  4. Copy — Click "Copy all" to copy the UUIDs to your clipboard. Multiple UUIDs are copied one per line.

How it works

The tool uses the Web Crypto API (crypto.randomUUID()) to generate UUID v4 values. Each UUID is 128 bits of cryptographically random data, formatted according to RFC 4122. The standard format includes hyphens for readability; the compact format omits them for use in URLs or identifiers where brevity matters.

All computation runs entirely in your browser. No data is sent to any server.

Use cases & examples

  • Database primary keys — Use UUIDs instead of auto-increment IDs for distributed systems.
  • API request IDs — Add a unique ID to each request for tracing and debugging.
  • Session tokens — Generate unique session identifiers.
  • File names — Create collision-free temporary file names.
  • Correlation IDs — Track requests across microservices.

Example

Standard format: a1b2c3d4-e5f6-4789-0abc-def123456789
Compact format: a1b2c3d4e5f647890abcdef123456789

Limitations & known constraints

  • Maximum count — No more than 1,000 UUIDs per single generation request (BR-082).
  • Browser support — Requires crypto.randomUUID(); supported in Chrome 92+, Firefox 95+, Safari 15.4+, and all modern browsers.
  • UUID version — Only UUID v4 (random) is supported. Time-based UUIDs (v1, v7) are not available.

所有计算和转换均完全在您的浏览器中运行。不会向任何服务器发送数据,您的输入不会离开您的设备。