UUID Generator

Generate random UUID (Universally Unique Identifier) v4 values. Single or bulk generation.

What Is a UUID?

A UUID (Universally Unique Identifier), also called GUID (Globally Unique Identifier), is a 128-bit number used to identify information in computer systems. UUID v4 is randomly generated โ€” the chance of a collision is astronomically small (1 in 2^122).

Common Uses

UUID Versions Explained

A UUID (Universally Unique Identifier) is a 128-bit value written as 32 hexadecimal digits in five hyphen-separated groups, like 550e8400-e29b-41d4-a716-446655440000. The standard defines several versions, and they are not interchangeable:

When Should You Use a UUID?

UUIDs shine when you need identifiers without a central authority: primary keys in distributed databases, idempotency keys for API requests, upload and file names that must never collide, and correlation IDs in logging. Because any client can generate one offline, you avoid the round-trips and locking that auto-increment integer keys require.

One caveat: a UUID is an identifier, not a secret. Seeing one v4 UUID doesn't let anyone guess another, but you should still use a dedicated secure token generator for session tokens, password-reset links, or API secrets.

Frequently Asked Questions

UUID v1 is time-based and includes a MAC address โ€” predictable. UUID v4 is randomly generated, better for security-sensitive uses.
The probability is 1 in 2^122. In practice, UUID v4 collisions are so rare they are treated as impossible.
Not recommended. UUIDs are identifiers, not secrets. For auth tokens, use a cryptographically secure random generator.