EzToolio

What Is a UUID and Where Is It Used?

Updated 2026-08-25 · 5 min read

A UUID is a 128-bit identifier that lets you name things without a central authority. In this guide we explain what a UUID is, how versions like v4 and v7 differ, and where unique identifiers show up in real software.

What Is a UUID?

A UUID (Universally Unique Identifier), also called a GUID, is a 128-bit value written as 32 hexadecimal characters in five hyphen-separated groups: 8-4-4-4-12. The format means values are effectively unique without any server coordinating the next number.

UUID v4 vs UUID v7

UUID v4 is built from secure random bytes, so its values have no natural order — great for general-purpose IDs. UUID v7 starts with a millisecond timestamp and then random bits, so values sort by creation time, which helps in databases and logs. Neither is universally better; the choice depends on your use case.

How UUIDs Are Structured

The third group's first digit is the version (4 for v4, 7 for v7) and the fourth group's first digit is the variant (usually 8, 9, a, or b). Together they describe how the identifier was generated and distinguish UUIDs from other 128-bit schemes.

Where UUIDs Are Used

  • Databases: primary or secondary keys created independently across nodes.
  • APIs: request and event IDs that travel with a call through queues and services.
  • Distributed systems: correlation IDs that tie one user action together across many services.

Why Generate UUIDs in the Browser?

Creating UUIDs client-side with the Web Crypto API means the values never leave the user's device, which is better for privacy and works offline after the page loads. A UUID Generator makes producing and validating them a one-click task.

Try the free tool

Put this guide into practice in seconds with our UUID Generator. It takes about the same time to complete as reading this post.

Open the tool

Frequently Asked Questions

What is a UUID?

A UUID is a 128-bit universally unique identifier shown as 32 hexadecimal characters in five hyphen-separated groups. It lets you label records, requests, and objects without a central numbering system.

What is the difference between UUID v4 and UUID v7?

UUID v4 is almost entirely random with no inherent order. UUID v7 begins with a timestamp, so values sort by creation time. Use v4 for general IDs and v7 when time ordering helps storage or tracing.

Are UUIDs guaranteed to be unique?

No identifier can be mathematically guaranteed unique, but UUIDs are large enough that collisions are astronomically unlikely in practice, making them safe for databases, APIs, and distributed systems.