~/tools/uuid-generator
UUID Generator
Generate UUID v4, v1, and v7 identifiers instantly — bulk generation, format options. Runs entirely in your browser, zero server calls.
What is a UUID?
A UUID (Universally Unique Identifier) is a 128-bit identifier standardised in RFC 4122. It is designed to be unique across all space and time without requiring a central registration authority. In its canonical form, a UUID is represented as 32 hexadecimal digits separated by hyphens into five groups: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
UUIDs are also commonly referred to as GUIDs (Globally Unique Identifiers), a term popularised by Microsoft. Despite the different name, a GUID and a UUID are the same thing — the terms are interchangeable in modern usage.
UUID Versions
The UUID specification defines several versions, each with a different generation strategy. The version number is encoded in the UUID itself (the first digit of the third group), so you can always identify how a UUID was generated just by looking at it. For most new applications, v4 is the right choice — it requires no configuration and produces statistically unique identifiers with negligible collision probability.
UUID v4 Structure
A v4 UUID looks random, but its structure encodes two fixed pieces of metadata that identify it as a valid UUID. These bits are set deterministically regardless of the random content around them, which means you can verify a v4 UUID just by inspecting two character positions in the string.
// Example v4 UUID — annotated
550e8400-e29b-41d4-a716-446655440000
Common Use Cases
UUIDs are used wherever a system needs to assign a unique identifier without coordinating with a central authority. This makes them especially valuable in distributed systems, offline applications, and microservice architectures where sequential integer IDs would require a shared database sequence or a central ID-generation service.
Database Primary Keys
Assign IDs to records without a database round-trip. Especially useful in insert-heavy or offline-first applications.
API Resources
Expose resource identifiers in REST or GraphQL APIs that don't leak enumeration information the way sequential integers do.
Session & Token IDs
Generate unguessable session tokens, CSRF tokens, or one-time links for password resets and email verification.
File & Asset Names
Rename uploaded files to avoid collisions and prevent users from guessing other files' URLs.
Distributed Tracing
Tag requests with a trace ID as they move across microservices so logs from multiple systems can be correlated.
Idempotency Keys
Send a UUID with payment or mutation requests so the server can safely retry without causing duplicate operations.