+Calculator+

UUID Generator

Generate random v4 or time-ordered v7 UUIDs in batches. Format with or without hyphens, uppercase, or braces, and validate any pasted UUID.

UUID generator
Check a UUID

Frequently Asked Questions about the UUID Generator

What is a UUID?
A UUID (Universally Unique Identifier) is a 128-bit value formatted as 32 hex digits in 5 groups separated by hyphens. It is designed so that two systems can each generate IDs without coordinating and still avoid collisions in practice. UUIDs are used as primary keys, file names, and event IDs.
What is the difference between UUID v4 and v7?
v4 is purely random (122 bits of randomness, 6 bits fixed for version and variant). v7 starts with a 48-bit Unix-millisecond timestamp and fills the remaining bits with randomness, so v7 IDs sort by creation time. Use v4 for opaque tokens; use v7 for database keys where you want ordered inserts.
What are the collision odds for v4 UUIDs?
Generating a billion v4 UUIDs per second for 100 years gives roughly a 50% chance of one collision. In practice, the chance of a collision in any real application is effectively zero, so v4 is safe for almost every primary-key use case.
Are these UUIDs cryptographically secure?
v4 and the random portion of v7 use the Web Crypto API (getRandomValues), which is a cryptographically secure source on every supported browser and on Node 22 and newer. They are suitable for session identifiers and unguessable tokens.
Can I paste any UUID format into the validator?
Yes. The validator strips outer braces, removes hyphens, normalizes to lowercase, and checks the 32 hex digits plus version and variant bits. It accepts hyphenated, unhyphenated, braced, mixed-case, and uppercase forms, and reports the canonical lowercase form plus the version.