EasyUtil

Related Tools

UUID Generator (v4)

Generate random UUIDs instantly, as many as you need.

UUIDs: The Identifiers That Never Need a Central Authority

A UUID (Universally Unique Identifier) is a 128-bit value that any machine can generate independently with effectively zero risk of collision. That property — uniqueness without coordination — is why UUIDs power database keys, distributed systems, file names, and API resources everywhere.

1. Anatomy of a UUID

The canonical form is 36 characters: 32 hexadecimal digits in five groups (8-4-4-4-12). In version 4, one digit is fixed to 4 (the version) and another encodes the variant — the remaining 122 bits are pure randomness.

2. Choosing a Version

  • v4 (random): the default choice for most applications — simple, private, collision-safe.
  • v7 (time-ordered): newer standard combining a timestamp with randomness, giving sortable IDs that index better in databases.
  • v5 (name-based): deterministic — the same input always yields the same UUID.

3. Practical Tips

Store UUIDs in native UUID column types where your database supports them (16 bytes instead of 36 characters). Lowercase is the canonical representation per RFC, though comparisons should be case-insensitive.

"The genius of the UUID is what it removes: no server, no registry, no meeting — just an identifier that works everywhere."