What a UUID is
A UUID (Universally Unique Identifier), also called a GUID in Microsoft ecosystems, is a 128-bit value used to label records, files, messages, and resources without a central authority handing out numbers. It is usually written as 32 hexadecimal digits in five groups separated by hyphens, in the pattern 8-4-4-4-12, for example 550e8400-e29b-41d4-a716-446655440000.
UUIDs are standardized by RFC 9562, which in 2024 replaced the older RFC 4122 and added versions 6, 7, and 8. Two fields are embedded in every UUID: the version number, which is the first digit of the third group, and the variant, encoded in the first digit of the fourth group. Looking at those two positions tells you how an identifier was generated.
Comparing the common versions
Version 4 is the most widely used. Apart from the six fixed version and variant bits, all 122 remaining bits are random. It reveals nothing about when or where it was created, which makes it a safe default for public identifiers.
Version 1 combines a 60-bit timestamp with a clock sequence and a node identifier, historically the MAC address of the generating machine. It sorts poorly as text because the timestamp is stored with its low-order bits first, and it can leak information about the host. Version 6 is a reordered version 1: the same timestamp fields are stored most-significant first, so values sort chronologically while remaining compatible with version 1 data.
Version 7 is the modern recommendation for new systems that need ordering. Its first 48 bits are a Unix timestamp in milliseconds and the rest are random. Values generated later sort after values generated earlier, both as bytes and as strings, while still being practically impossible to guess.
Why version 7 helps databases
Most relational databases store primary keys in a B-tree index. Random version 4 keys are inserted at scattered positions throughout that index, which causes page splits, fragmentation, and poor cache locality once a table grows into millions of rows. Because version 7 keys increase over time, new rows are appended near the end of the index, giving insert performance much closer to an auto-increment integer.
Version 7 keys also carry their creation time, so you can roughly date a record from its ID alone. If exposing creation time is a concern, for example in public URLs, use version 4 for the external identifier and keep the time-ordered key internal.
UUID vs GUID, shareable settings, and the UUID API
GUID is simply the Microsoft name for a UUID. .NET, SQL Server, and Windows APIs call the type a GUID or uniqueidentifier, while most other ecosystems say UUID, but both refer to the same 128-bit format. A value generated here works anywhere a GUID is expected; some Windows tools just display it in uppercase or inside curly braces.
You can link straight to the settings you need. Opening this page with ?version=7&count=100 at the end of the address shows one hundred version 7 UUIDs immediately, so you can bookmark common setups or share them with your team. Dedicated pages for version 4 and version 7 open the generator preset to each version.
For scripts and terminals, https://utilistudio.com/api/uuid returns a fresh UUID as plain text. Add version (1, 4, 6, or 7), count (up to 100), and format=json when you want a JSON array instead, for example curl "https://utilistudio.com/api/uuid?version=7&count=5".
Collisions, randomness, and storage tips
With 122 random bits, the chance of two version 4 UUIDs colliding is so small that you would need to generate around a billion identifiers per second for decades before a duplicate became likely. That guarantee depends entirely on the quality of the random source, which is why generators should use a cryptographically secure source such as the Web Crypto API rather than a simple pseudo-random function.
UUIDs are not secrets. Being hard to guess is not the same as being an access token, so never rely on an unguessable ID alone to protect private data.
For storage, prefer a native UUID column type (PostgreSQL uuid, or BINARY(16) in MySQL) over a 36-character string. The binary form uses less than half the space and compares faster. UUID text is case-insensitive, but lowercase is the canonical form, so normalize case before comparing values from different systems.