UUID Generator

Generate v4 or v7 UUIDs instantly. Bulk, copy, download — all in the browser.

Pure random — no time ordering (RFC 9562 §5.4)

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?
A UUID (Universally Unique IDentifier) is a 128-bit label guaranteed to be unique across time and space. It is represented as 32 hexadecimal digits in a 8-4-4-4-12 format, e.g. 550e8400-e29b-41d4-a716-446655440000. Defined in RFC 9562, UUIDs are used as database primary keys, API identifiers, session tokens, and anywhere a globally unique ID is needed without central coordination.
What is the difference between UUID v4 and v7?
UUID v4 uses 122 bits of cryptographic randomness — no structure, no time component. UUID v7 encodes the current Unix timestamp in milliseconds in the first 48 bits, followed by random bits. This makes v7 UUIDs lexicographically sortable and more efficient as database primary keys (fewer index fragmentation issues). Use v7 for database PKs, v4 when you just need a random opaque ID.
Is this tool safe to use for production UUIDs?
Yes, for non-sensitive contexts. This tool uses crypto.getRandomValues(), the same cryptographically secure RNG used by Web Crypto API. No UUID is sent to any server. However, for production system UUIDs, generating them server-side in your application code (using uuid npm package or your language's stdlib) is the recommended practice.
Where is the UUID specification documented?
The authoritative specification is RFC 9562 — A Universally Unique IDentifier (UUID) URN Namespace, published by the IETF in May 2024. It is available at rfc-editor.org/rfc/rfc9562. RFC 9562 obsoletes RFC 4122 (2005) and adds UUID versions 6, 7, and 8.
What does the 'Version' and 'Variant' byte mean in a UUID?
In a UUID, the 13th hex digit (bits 48–51) encodes the version number — '4' for v4, '7' for v7. The 17th hex digit (bits 64–65) encodes the variant — '8', '9', 'a', or 'b' for RFC 9562 compliant UUIDs (binary 10xx). You can identify a UUID version by looking at these two positions: xxxxxxxx-xxxx-[version]xxx-[variant]xxx-xxxxxxxxxxxx.