UUID Format Explained (Structure, Versions & Example)

Understanding the UUID format is essential for developers working with unique identifiers. In this guide, you’ll learn how a UUID is structured, what each part means, and how different versions work.

What is the UUID format?

A UUID is a 128-bit value typically represented as a 36-character string, including hyphens.

Example:

550e8400-e29b-41d4-a716-446655440000

UUID structure

A UUID is divided into five groups separated by hyphens:

8-4-4-4-12

This means:

  • 8 hexadecimal characters
  • 4 hexadecimal characters
  • 4 hexadecimal characters
  • 4 hexadecimal characters
  • 12 hexadecimal characters

UUID format breakdown

General structure:

xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx
  • M → UUID version (e.g., 1 or 4)
  • N → Variant (defines layout)

UUID versions explained

  • UUID v1 → Time-based
  • UUID v4 → Random (most common)

UUID v4 is widely used because it is simple and avoids exposing system information.

Why UUID format matters

  • Ensures compatibility across systems
  • Helps validate identifiers
  • Prevents errors in databases and APIs
  • Improves data integrity

Generate UUID online

You can generate UUIDs instantly using our free tool:

👉 Use UUID Generator

Validate UUID format

Need to check if a UUID is valid? Use our validator:

👉 Use UUID Validator

Frequently Asked Questions

How many characters are in a UUID?

A UUID has 36 characters including hyphens, or 32 hexadecimal characters without them.

What does the version number mean?

It indicates how the UUID was generated (time-based, random, etc.).

What is the most common UUID format?

UUID v4 is the most commonly used format.

Conclusion

The UUID format is standardized and easy to understand once you break it down. Knowing its structure helps you validate and use UUIDs correctly in your applications.

Use our free tools to generate and validate UUIDs instantly.

How to generate UUID in JavaScript

UUID vs GUID

What is UUID?