UUID Generator
Generate UUIDs in your browser. Create random v4, time-ordered v7, time-based v1, or nil UUIDs in batches of up to 100 for databases, APIs, and distributed systems. No signup required.
- Free, no sign-up
- REST + MCP
- Updated
- Reviewed by Olgun Ozoktas
How to Generate UUIDs Online
-
Select the UUID version
Choose the UUID version you need. Version 4 (random) is the most common choice for general-purpose identifiers. Version 7 encodes a millisecond timestamp and sorts by creation time. Version 1 encodes a 100-nanosecond timestamp with a random node id. Nil is all zeros. -
Set the quantity and format
Enter how many UUIDs you need (up to 100 at once for bulk generation). Choose uppercase or lowercase and whether to include hyphens. -
Generate your UUIDs
Click the Generate button to create your UUIDs instantly. All generation happens in your browser using the Web Crypto API, so nothing is sent to a server. -
Copy and use
Click Copy to grab a single UUID, or use Copy All to get the entire batch. Paste them into your database schema, API code, configuration file, or test data.
Common Use Cases
Database Primary Keys
API Request Identifiers
Session Tokens and Nonces
Distributed Systems and Event Sourcing
Why use UUIDs?
A UUID (Universally Unique Identifier) is a 128-bit value standardized by RFC 4122 and its successor RFC 9562. UUIDs provide a reliable way to create identifiers that are unique across space and time without requiring a central registration authority. This makes them the default choice for primary keys, correlation IDs, and object references in modern software.
The most common versions are UUID v1 (time-based), UUID v4 (random), and the newer UUID v7 (time-ordered random). Version 1 encodes the current timestamp and a node ID, which guarantees uniqueness but can reveal when and where the ID was created. Version 4 fills 122 of the 128 bits with cryptographically random data, making collisions practically impossible while revealing nothing about the source. Version 7, introduced in RFC 9562 (2024), combines a Unix-epoch millisecond timestamp with random bits, giving you both chronological ordering and strong uniqueness -- ideal for database primary keys that need efficient B-tree indexing.
This UUID generator runs entirely in your browser using the Web Crypto API. No data is transmitted to any server, so your generated IDs remain private. You can create UUIDs in bulk, switch between uppercase and lowercase formats, and remove hyphens for systems that require a compact 32-character string. If you also need deterministic hashes for data verification, check out the SHA-256 Hash Generator or the MD5 Hash Generator.
How it compares
UUID Tips & Best Practices
- Use UUID v4 for most applications. Its 122 random bits are generated from a cryptographically secure source and work well as database keys, object IDs, and tokens.
- UUID v1 embeds a 100-nanosecond timestamp and a node identifier. Many libraries use the MAC address as the node; this tool uses a random node with the multicast bit set, so nothing about your hardware is encoded. The timestamp is still readable, so avoid v1 where the creation time must stay private.
- UUID v7 (RFC 9562, 2024) is a newer time-ordered format designed specifically for database indexing. It preserves chronological sort order while keeping strong randomness, making it more efficient than v4 for B-tree indexes.
- Storing UUIDs as 16-byte binary (BINARY(16) in MySQL, uuid type in PostgreSQL) instead of a 36-character string saves storage and improves index performance by up to 50%.
- The probability of a collision among UUID v4 values is approximately 1 in 2^122. You would need to generate about 2.7 quintillion UUIDs to have a 50% chance of a single duplicate.