What is it
UUID (Universally Unique Identifier) is a code designed to name records, files and other resources in a unique way, without depending on a central server to avoid repetition. In practice, it appears as a 36-character sequence in the format 8-4-4-4-12, separated by hyphens, as in 550e8400-e29b-41d4-a716-446655440000. On some platforms, mainly in the Microsoft ecosystem, the same concept is called GUID (Globally Unique Identifier), but it is the same type of code.
There are several versions of UUID, defined by RFC 4122. This generator creates the version most used in everyday systems: the UUID v4, assembled from random numbers. It is generated with the browser's own Web Crypto API (the crypto.randomUUID() method), a cryptographically secure randomization feature. With 122 bits of entropy available, the chance of two UUID v4 coming out the same is so low that, in practice, each code can be treated as unique, even generating billions of them.
Programmers, system administrators, and computer science students use UUID for database primary keys, API keys, session IDs, file names, correlation of events in queues and logs, and test data wherever a unique identifier is needed without consulting a central server before creating the record.
How to use
Generating one or several v4 UUIDs takes just a few seconds:
- Choose quantity: define how many codes you want to generate at once, from 1 to 50.
- Enable capital letters, if necessary: check the option to receive the result with capital letters, if your system or code convention requires this pattern.
- Click on Generate UUID: the codes appear instantly, calculated directly in the browser.
- Copy what you need: use the copy button on each line or, when generating more than one, the "Copy all" button to take the entire list at once, one UUID per line.
All processing happens on your device, without sending anything to external servers.
Good practices for developers
- UUID v4 is random, not sequential. If your database suffers from index fragmentation when using UUID as the primary key, evaluate time-sortable alternatives, such as UUID v7, generated by another specific tool.
- Store the UUID as your database's native type (like
UUIDin Postgres) when available, instead of in plain text, to save space and speed up searches. - Use capital letters only if the target system requires it; the RFC 4122 standard recommends lowercase letters.
- Never use UUID as a substitute for authentication or access control: it identifies the resource, but does not prove who has permission to access it.