When to Use a UUID Generator
UUIDs (Universally Unique Identifiers) are used as database primary keys (avoiding sequential ID guessing attacks), file names for uploaded assets, session tokens, idempotency keys in APIs, distributed system node identifiers, and anywhere a globally unique ID is needed without a central coordinator. UUID v4 (random) is the most widely used format, the probability of collision between two UUIDs is astronomically small (~1 in 5.3 × 10³⁶).
See also: Hash Generator, Password Generator, Unix Timestamp Converter, and Random Number Generator.
UUID Versions Explained
v1: Time-based + MAC address. Sortable by creation time, but leaks MAC address. Mostly legacy.
v3: MD5 hash of a namespace + name. Deterministic — same inputs always produce the same UUID.
v4: Random (cryptographically secure). Most common. Use when you just need a unique ID.
v5: SHA-1 hash of a namespace + name. Like v3 but uses SHA-1. Preferred over v3.
v7 (RFC 9562, 2024): Time-ordered random UUID — sortable like v1 but without MAC address leak. Ideal for database primary keys (better index performance than v4).
How the UUID Generator Works
Select a UUID version (v4 or v7), choose a quantity (1, 10, 50, or 100), toggle uppercase and hyphens, then click Generate. All randomness comes from the browser's built-in crypto.getRandomValues() — cryptographically secure and never sent to any server.
UUID v4 uses 122 bits of pure randomness. UUID v7 encodes the current Unix timestamp in the top 48 bits, making the identifier time-sortable — useful for database primary keys where insertion order matters (PostgreSQL, MySQL, SQLite). Both formats follow the same 8-4-4-4-12 hyphenated hex representation.
Reference
This tool implements UUID versions 4 and 7 as defined in RFC 9562 — A Universally Unique IDentifier (UUID) URN Namespace (May 2024, rfc-editor.org/rfc/rfc9562). RFC 9562 obsoletes RFC 4122 and introduces UUID versions 6, 7, and 8. Section 5.4 specifies UUID v4 and Section 5.7 specifies UUID v7.
What's here, and what's not
UUID v4 (random) and UUID v7 (time-ordered) generation in bulk quantities of 1, 10, 50, or 100. Formatting options: uppercase, strip hyphens. One-click copy per UUID and copy-all. Download as .txt for bulk use.
What isn't here: UUID v1 (MAC address + time), v2 (DCE Security), v3 (MD5 name-based), v5 (SHA-1 name-based), or v6 (reordered time). Those versions either expose MAC addresses (privacy concern), require a namespace URI input, or are rarely used in modern applications. UUID v4 and v7 cover the vast majority of practical use cases.
Frequently Asked Questions
What is a UUID?
What is the difference between UUID v4 and v7?
Is this tool safe to use for production UUIDs?
Where is the UUID specification documented?
What does the 'Version' and 'Variant' byte mean in a UUID?
Is UUID v4 safe to use as a database primary key?
What is the format of a UUID?
By Bam's Thinkery — Updated