Back to Guides
Architecture Sep 21, 2026 5 min read

Understanding UUIDs: Unique Identifiers Explained

Discover what a Universally Unique Identifier is, the differences between UUID versions (v1, v4, v5), and why they are essential in distributed systems.

What is a UUID?

A Universally Unique Identifier (UUID) is a 128-bit label used for information in computer systems. When generated according to standard methods, UUIDs are for practical purposes unique, without depending on a central registration authority.

The Different Versions

  • UUID v1 (Time-based): Generated using the MAC address of the computer generating it and the current timestamp. This means they can be traced back to the machine, which poses privacy concerns.
  • UUID v4 (Random): The most common version. It relies entirely on random (or pseudo-random) numbers. The chances of a collision (generating the same UUID twice) are astronomically low.
  • UUID v5 (Name-based): Generated by hashing a namespace identifier and a name using SHA-1. Given the same namespace and name, the resulting UUID will always be identical.

UUIDs are essential as primary keys in distributed databases where relying on a standard auto-incrementing integer would cause conflicts across different server nodes. Generate UUIDs instantly with our UUID Generator.