Developer Tools

What Is a UUID? Understanding Universally Unique Identifiers

Learn what a UUID is, how it's structured, why it's used instead of auto-increment IDs, and what it doesn't guarantee.

Brekzy Team Published September 7, 2026 Updated September 8, 2026

On this page
  1. What Is a UUID?
  2. What Does a UUID Look Like?
  3. Why Are UUIDs Used?
  4. UUID vs Auto-Increment IDs
  5. Common UUID Versions
  6. UUID Security Considerations
  7. Generate a UUID

UUID stands for Universally Unique Identifier. It’s a 128-bit identifier designed so that different systems, computers, or applications can each generate their own IDs independently, with an extremely low chance that any two of them will ever collide.

What Is a UUID?

A UUID is a standardized way of generating an identifier without needing a central authority to hand them out or keep track of which ones are taken. Any system can generate a new UUID on its own, at any time, and expect it not to clash with one generated somewhere else.

What Does a UUID Look Like?

A UUID is usually written as 32 hexadecimal characters split into five groups by hyphens, in this pattern:

xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

A real example looks like this:

550e8400-e29b-41d4-a716-446655440000

The group lengths (8, 4, 4, 4, and 12 characters) are always the same, which makes UUIDs easy to recognize and validate at a glance.

Why Are UUIDs Used?

  • Database records: assigning a unique ID to a row without needing a central counter.
  • APIs: identifying resources, requests, or sessions. UUIDs are commonly returned as plain string values inside What Is JSON? API responses.
  • Distributed systems: letting multiple servers generate IDs independently, with no coordination needed between them.
  • Tracking objects: giving files, transactions, or events a unique reference that won’t clash with IDs generated elsewhere.

UUIDs aren’t mathematically guaranteed to be unique: technically, two different systems could generate the same one. In practice, the space of possible UUIDs is so large that a collision is astronomically unlikely for standard use cases, which is why they’re trusted for this purpose.

UUID vs Auto-Increment IDs

  UUID Auto-Increment ID
Generated by Any system, independently Usually the database itself
Predictability Not sequential or guessable Sequential and easy to guess
Works across systems Yes, without coordination Only within one database or table
Typical format 36-character string Small integer

Neither option is universally better. Auto-increment IDs are simple, compact, and easy to read, which suits a single database with one source of new records. UUIDs suit systems where multiple services or databases need to create new IDs independently without ever risking a clash.

Common UUID Versions

Not all UUIDs are generated the same way: the UUID standard defines several versions that differ in how they’re built:

  • Version 1: based on the current timestamp and the generating computer’s network address.
  • Version 4: generated from random (or pseudo-random) numbers. This is the most common version in general use today.
  • Version 5: generated deterministically from a namespace and a name, so the same input always produces the same UUID.

Unless a system specifically needs one of those other behaviors, version 4 is the default most tools and libraries reach for.

UUID Security Considerations

A UUID is an identifier, not a secret. It should not be treated as a password, an access token, or a form of authentication. If a UUID is exposed in a URL, log file, or API response, that alone should never be assumed to keep the resource it points to safe; proper authentication and access control still need to be in place, separately from whatever ID is being used.

Generate a UUID

To create valid UUIDs instantly, use the UUID Generator.

Try it yourself

UUID Generator

Try our UUID Generator →

Frequently Asked Questions

What does UUID stand for?

Universally Unique Identifier.

How unique is a UUID?

Extremely unique in practice, though not mathematically guaranteed. The number of possible UUIDs is so large that accidental collisions are considered negligible for virtually all real-world uses.

Is a UUID the same as an ID?

A UUID is one specific type of ID. “ID” is a general term for any identifier, including simple auto-increment numbers, while a UUID follows a specific 128-bit format designed for cross-system uniqueness.

Are UUIDs secure?

UUIDs are identifiers, not security credentials. They should never be relied on as a substitute for proper authentication or access control.

Can two UUIDs be the same?

In theory, yes: it isn’t mathematically impossible. In practice, the chance is so small that it isn’t a realistic concern for standard applications.

Why are UUIDs used in databases?

They let different services, servers, or databases generate new record IDs independently, without needing to check in with a central counter, which makes them well-suited to distributed systems.

Explore More

Find the right tool, or keep reading Brekzy's other guides.