How to generate a UUID
Short answer
Use a UUID generator and copy the result — a 36-character identifier like 550e8400-e29b-41d4-a716-446655440000. Version 4 is random and the common default; version 7 is time-ordered and better as a database key.
What a UUID is
A UUID (universally unique identifier), also called a GUID, is a 128-bit value written as 32 hex digits in five hyphen-separated groups. It is designed to be unique without a central authority, so different systems can generate IDs that will not collide. See what is a UUID.
550e8400-e29b-41d4-a716-446655440000Generate a UUID
- Pick a versionv4 (random) for general use; v7 (time-ordered) for DB keys.
- GenerateThe tool creates a fresh UUID instantly in your browser.
- Copy itUse it as a record ID, request ID, or file name.
When to use a UUID
- Primary keys that can be generated on the client or offline
- Request or trace IDs for logging and debugging
- Unique file or object names without coordination
- Merging records from multiple sources without key clashes