Development

UUID v4 Generator

Generate random, cryptographically secure UUIDs (also known as GUIDs) version 4. Use them in databases, APIs, tokens and anywhere you need a unique identifier.

ab68daca-835b-4e89-a5d1-af9328520320

UUID v4 per RFC 4122. Cryptographically secure generation via crypto.randomUUID().

When to use UUIDs

  • 🗄️ Primary keys in distributed databases
  • 🔑 API tokens and session identifiers
  • 📁 File names to avoid collisions
  • 🔗 Message IDs in queues and event streams
  • 🧪 Test identifiers kept isolated

Frequently asked questions

What is a UUID?

A UUID (Universally Unique Identifier), also called a GUID, is a 128-bit identifier designed to be unique across the world. Version 4 is generated randomly.

Is the chance of collision zero?

It is essentially zero. To generate a v4 UUID collision, you would need to produce 1 billion per second for 85 years for a 50% probability.

Are the UUIDs cryptographically secure?

Yes. We use the browser's crypto.randomUUID(), which uses a secure entropy source. They are appropriate for database IDs, tokens and API keys.

What is the difference between UUID and GUID?

None technically. GUID (Globally Unique Identifier) is Microsoft's name; UUID is the RFC 4122 name. Same 128-bit format.

Related tools