UUID Generator.
Random v4, time-ordered v7 and more — up to 1,000 at once, formatted your way, generated entirely in your browser.
What is a UUID?
A UUID (universally unique identifier) is a 128-bit value, written as 36 characters of hexadecimal in five groups — like 550e8400-e29b-41d4-a716-446655440000. UUIDs let independent systems create identifiers without coordinating with each other or a central authority. The current standard is RFC 9562 (2024), which replaced RFC 4122 and added the modern versions 6, 7 and 8.
Which version does what
- v4 — random. 122 random bits; the default choice for opaque identifiers.
- v7 — time-ordered. Millisecond timestamp + randomness; sortable, index-friendly, the modern pick for database keys.
- v1 — timestamp + node. The 1990s original; this generator uses a random node instead of your MAC address.
- v3 / v5 — name-based. Deterministic: the same namespace + name always hashes to the same UUID.
v4 or v7 for primary keys?
Random v4 keys insert at random positions across a B-tree index — at scale this causes page splits, write amplification, and poor cache locality. v7 keys are time-ordered, so new rows append near each other, giving you UUID uniqueness with nearly sequential insert performance. The trade-off: a v7 key reveals when its row was created. If that timing is sensitive, stay with v4.
UUID, GUID — any difference?
None in substance: GUID is Microsoft's name for a UUID. The visual differences are convention — Windows tooling and .NET often print GUIDs in uppercase and wrap them in braces, like {550E8400-E29B-41D4-A716-446655440000}. Use the uppercase and braces options above to produce that format; RFC 9562 itself specifies lowercase without braces.
UUIDs in your code
// v4 — built in
const id = crypto.randomUUID();
// v7 — e.g. with the uuid package
import { v7 as uuidv7 } from "uuid";
const sortable = uuidv7();-- v4, built in since PostgreSQL 13
SELECT gen_random_uuid();
-- v7, built in since PostgreSQL 18
SELECT uuidv7();Frequently asked questions
How unique is a UUID really?
What is the difference between UUID v4 and v7?
Which UUID version should I use for database primary keys?
Is a UUID the same as a GUID?
Are UUIDs generated here cryptographically secure?
Does version 1 leak my MAC address?
What are version 3 and version 5 UUIDs?
Can I use UUIDs in URLs?
More free tools
All tools →Free tools from a European software company.
- Runs in your browser
- Made & hosted in the EU
- No account needed