Learn

UUID Generator Guide

About this tool

Generate version 4 UUIDs, one at a time or in bulk, using the browser’s cryptographic random number generator. They are suitable for database keys, request IDs and anything else that has to be unique without coordinating with a central authority.

Questions

Can two generated UUIDs collide?
A v4 UUID carries 122 random bits. You would need to generate around 2.7×10^18 of them before a collision became likely, which is far beyond any realistic workload.
Are these UUIDs predictable?
No. They come from crypto.getRandomValues rather than Math.random, so earlier values tell you nothing about later ones.