UUID Generator

v4 random, cryptographically secure
1
click Generate

Collision chance is negligible

UUID v4 has 122 bits of randomness. To expect a single collision you'd need to generate 2.71×10¹⁸ UUIDs — roughly 139 years of generating 1 billion per second. Use them as primary keys, session IDs, and trace IDs without fear.

Related tools

UUID versions

Used by: PostgreSQL uuid type, MySQL UUID(), MongoDB ObjectID alternative, Session cookies, Distributed trace IDs, wire formats, file uploads.

Frequently asked questions