UUID Generator
Generate UUIDs in v4 (random), v7 (time-ordered), or NIL form. Bulk export up to 1,000 at once. Cryptographically secure randomness, all in your browser.
Generate UUIDs in two clicks.
- 01Pick the UUID version.v4 for random IDs (most common). v7 for time-ordered IDs (better for database keys). NIL for the all-zeros placeholder.
- 02Set how many you need.One by default, up to 1,000 at a time. Useful for seeding databases, generating test data, or producing batches of idempotency keys.
- 03Copy or download.Click any single UUID to copy it. Use “copy all” for the full list, or “.txt” to download as a newline-separated file.
What is a UUID?
A UUID (Universally Unique Identifier) is a 128-bit number designed to be unique across space and time without requiring a central authority. It's formatted as 32 hexadecimal characters in 5 groups separated by hyphens, like 550e8400-e29b-41d4-a716-446655440000.
The original spec (RFC 4122) defined versions 1 through 5. Version 4 — fully random — became the most common because of its simplicity and excellent uniqueness properties. The updated RFC 9562 added versions 6, 7, and 8, with v7 emerging as the new recommended default for database primary keys.
UUID versions explained
v1Time + MAC addressMostly deprecated, leaks host infov3MD5 hash of namespace + nameDeterministic, nichev4Fully randomMost common, no temporal infov5SHA-1 hash of namespace + nameDeterministic, like v3 but strongerv7Unix ms timestamp + randomTime-ordered, ideal for DB keysWhy use v7 for database primary keys
When you insert random v4 UUIDs as primary keys into a B-tree index, every new row lands at a random position, causing frequent page splits and poor cache locality. v7 IDs are time-ordered: each new row appends to the end of the index, keeping it dense and fast. You get the uncoordinated-uniqueness of UUIDs and the insertion performance of auto-incrementing IDs.
Common uses
- →Primary keys in distributed databases
- →Idempotency keys for API requests
- →Session tokens and request IDs for tracing
- →Filenames for uploaded content (avoid collisions)
- →Correlation IDs across microservices
- →Public-facing IDs that don't leak row counts