Generate random version 4 UUIDs, as many at a time as you need — produced in your browser and never logged anywhere.
A universally unique identifier is a 128-bit value written as 36 characters: eight, four, four, four, twelve, separated by hyphens. Version 4 is almost entirely random, which is what lets two systems that have never communicated generate identifiers that will not collide.
A v4 UUID has 122 random bits — about 5.3 × 10³⁶ possibilities. You would need to generate roughly a billion a second for around 85 years before the chance of a single duplicate reached 50%. In practice, treat a collision as impossible and design for something else.
Random UUIDs make poor clustered primary keys in some databases, because inserts land in random places in the index rather than at the end, which fragments it. If that matters to you, look at UUID v7 or a sortable identifier such as ULID, which keep uniqueness while preserving insert order.
Pick a date & time — we'll call you
Free consultation · No commitment · Responds within 2 hours