What is a UUID?
A Universally Unique Identifier is a 128-bit value formatted as 32 hex digits in the pattern 8-4-4-4-12, like 550e8400-e29b-41d4-a716-446655440000. Its size makes collisions effectively impossible, so IDs can be created anywhere without a central coordinator.
What is a UUID v4?
UUID v4 is a version of the spec that gets all of its value from randomness: 122 bits come from a cryptographically strong source. It is the most common UUID and is ideal when values need no order. This tool generates v4 values with your browser's native crypto.
What is a UUID v7?
UUID v7 is a time-ordered variant: the first 48 bits are the milliseconds since the Unix epoch, followed by random bits. Because values sort by creation time, v7 is a favorite for database primary keys and event streams that value index locality.
Which UUID version should I use?
Choose v7 for new database schemas or anywhere you want roughly time-ordered inserts. Choose v4 when maximum entropy matters and ordering is irrelevant — for example, when exposing IDs to clients that should not learn what time they were minted.
Can two UUIDs ever collide?
Mathematically collisions are possible, but the odds are negligible: generating v4 UUIDs at a rate of a billion per second for 100 years yields a collision chance far below 50%. For practical purposes, independently generated UUIDs never repeat.
Are UUIDs secure?
Random UUIDs from a cryptographically strong source are unguessable, but they are identifiers, not secrets. Never use a UUID as an encryption key or token. Also avoid v1 UUIDs in sensitive settings because they embed a MAC address and timestamp.
Should databases use UUIDs as primary keys?
Often, yes — especially in distributed or offline-first systems where IDs must be created on many machines without coordination. In single-node relational databases, weigh UUIDs against sequential integers. If you use UUIDs, pick v7 for sorted inserts and store them in a native uuid or binary(16) column.
Why would I remove the hyphens?
Some systems prefer a compact 32-character hex string with no separators, which the Remove hyphens option produces. The value represents exactly the same 128 bits — remove the hyphens whenever a store, file name, or API expects the tighter form.
What is a NIL UUID?
The NIL UUID is every bit zero — 00000000-0000-0000-0000-000000000000. It is the spec's defined 'no value' placeholder and is often used to represent an absent or unset ID.
What is a MAX UUID?
The MAX UUID is every bit one — ffffffff-ffff-ffff-ffff-ffffffffffff. It is the maximum possible UUID value and is sometimes used as a sentinel for 'all' or as an upper bound in range scans.
Can I generate bulk UUIDs?
Yes. Pick a quantity up to 1,000 and press Generate. The tool renders the whole batch instantly in List, JSON, or CSV view, and you can copy everything at once or download a .txt, .json, or .csv file.
Are UUIDs globally unique?
UUIDs are unique by design, not by registry. The 122 bits of randomness in a v4 value (or the timestamp-plus-random layout of v7) gives effective uniqueness across machines, processes, and time, with no central authority assigning them.
How do I check whether a string is a valid UUID?
Paste it into the validator on this page. The tool confirms the 8-4-4-4-12 shape, checks the version nibble and RFC 4122 variant bits, and reports whether it is a valid v4, v7, NIL, or MAX UUID — or explains why it is not.
Does this tool send UUIDs to a server?
No. Generation uses the browser's native crypto.randomUUID() and crypto.getRandomValues, and every check runs locally. Nothing you generate or paste is transmitted, logged, or stored.