文本工具
UUID generator
Try it
Generate RFC 4122 v4 UUIDs with one click — copy individually or all at once.
Loading…
How to use this tool, examples, and related tips.
Select the UUID version you need — v4 (random) is the default and most commonly used.
Choose how many UUIDs to generate if you need a batch.
Copy the output individually or all at once.
A UUID (Universally Unique Identifier) is a 128-bit identifier standardized in RFC 4122, formatted as 32 hexadecimal characters in five groups separated by hyphens — e.g., 550e8400-e29b-41d4-a716-446655440000. The most widely used variant is UUID v4, which is randomly generated and has a collision probability so low it's effectively zero for any practical application. UUID v1 incorporates a timestamp and MAC address. UUIDs are used wherever a unique identifier is needed without a central authority — database primary keys, session tokens, file names, message IDs, and more.
Database primary keys — Generate UUIDs to use as unique row identifiers in place of auto-incrementing integers, particularly useful in distributed systems where two nodes can't coordinate on the next integer.
Testing and seeding — Quickly generate a batch of UUIDs for populating test fixtures, mock data, or database seeds.
Session and request IDs — Use UUIDs as unique identifiers for user sessions, API requests, or trace IDs in logging systems.
File naming — Generate collision-safe filenames for uploaded files or generated assets.
Answers about this tool and how your data is handled.
UUID v1 is generated from the current timestamp and the device's MAC address — it's time-ordered but can leak system information. UUID v4 is randomly generated with no embedded system data. For most use cases, v4 is preferred.
UUID v4 has 122 bits of randomness. The probability of a collision across two randomly generated v4 UUIDs is astronomically small — effectively zero for any real-world application.
Yes. The UUIDs are generated client-side using the browser's cryptographically secure random number generator. They are suitable for use as identifiers in production systems.
No. UUIDs are generated entirely in your browser. Nothing is sent to any server.
Yes. Use the batch count input to generate multiple UUIDs in a single operation.
优先同类别,再显示其他实用工具。
文本工具
Generate RFC 4122 v4 UUIDs with one click — copy individually or all at once.