UUID Generator

Generate version 4 UUIDs (random). Created with a cryptographic random number generator in your browser.

What is a UUID?

A UUID is a 128-bit identifier written as 32 hexadecimal digits in the familiar 8-4-4-4-12 layout. Version 4 UUIDs are generated from random numbers, giving 122 bits of randomness. The sheer size of that space is why systems can generate identifiers independently — on different machines, offline — and still be confident they will never collide.

How unlikely is a collision?

To have a 50% chance of a single collision you would need to generate roughly 2.7 × 1018 UUIDs — about a billion per second for 85 years. For any realistic application you can treat v4 collisions as impossible.

UUIDs versus auto-increment IDs

Randomness quality

This page uses crypto.randomUUID() where available and falls back to crypto.getRandomValues(), both cryptographic sources. That matters: a UUID generated with Math.random() is predictable and has caused real security vulnerabilities.