What is a UUID (Universally Unique Identifier)?
A UUID (also known in the Microsoft world as a GUID - Globally Unique Identifier) is a 128-bit label used for information in computer systems. When generated according to the standard methods, UUIDs are for practical purposes unique, without depending on a central registration authority or coordination between the parties generating them.
Understanding UUID v4
There are multiple versions of UUIDs, but Version 4 (v4) is by far the most widely used in modern web development and database design. A v4 UUID is generated entirely using random (or pseudo-random) numbers. It provides mathematically guaranteed uniqueness across distributed systems, making it the perfect choice for primary keys in NoSQL databases, session IDs, and tracking tokens.
Why generate UUIDs locally?
If you are generating tracking IDs, password reset tokens, or API keys for a production system, requesting them from a random third-party server exposes you to supply chain attacks. A compromised server could retain a copy of the generated tokens. DevvTools generates UUIDs entirely locally utilizing your browser's native, hardware-backed Crypto.getRandomValues() API to ensure true randomness and zero exposure.