UUID Generator
Generate random UUIDs instantly — v1, v3, v4, v5, v6, v7, v8, Nil, and Max (UUID v2 is not offered). Bulk export, validate, and decode. Runs entirely in your browser — your random UUID generator with zero server calls.
Only need one version? Try the dedicated UUID v4 or UUID v7 generator.
The Basics
What is a UUID?
A UUID (Universally Unique Identifier), also called a GUID (Globally Unique Identifier) in Microsoft/.NET contexts, is a 128-bit identifier used to label for any resource — a database row, API object, session, or file — without any central authority handing out IDs. Systems can create UUIDs independently with an extremely low risk of accidental duplication when a suitable generation method is used.
Every UUID is 32 hexadecimal digits in an 8-4-4-4-12 pattern — 36 characters total:
RFC 4122 (2005) introduced versions 1–5. RFC 9562 (May 2024) superseded it and formally added v6, v7, and v8. You will also see the term GUID (Globally Unique Identifier) in Microsoft/.NET contexts — it is the same standard with a byte-order difference in some implementations.
Version Guide
Which UUID version should you use?
UUID v7 (UUIDv7) is now the recommended default for database primary keys — it embeds a millisecond Unix timestamp so IDs sort by creation time and index far more efficiently in a B-tree than a random ID. PostgreSQL 18 ships native uuidv7() support. UUID v4 (UUIDv4, uuid4) remains a good choice for randomly generated identifiers when you do not want to expose creation time. For passwords, API credentials, and authentication secrets, use a purpose-built CSPRNG token instead. Need a new GUID instead? Select v4 above — a GUID and a UUID v4 are the same 128-bit random identifier.
| Version | Based On | Time-Sortable | Best For | Status |
|---|---|---|---|---|
| v1 | Timestamp + clock sequence + node (MAC or random) | Partially | Legacy distributed systems | Avoid (MAC leak) |
| v3 | Namespace + name (MD5) | No | Deterministic IDs, legacy | Use v5 instead |
| v4 | 122 bits random | No | Random IDs and GUIDs (UUIDv4, uuid4) | Recommended |
| v5 | Namespace + name (SHA-1) | No | Deterministic, reproducible IDs | Recommended |
| v6 | Reordered v1 timestamp + clock sequence + node | Yes | v1 migration path | RFC 9562 |
| v7 | Unix ms timestamp + random | Yes | Time-sortable database identifiers (UUIDv7, uuid7) | Recommended 2026 |
| v8 | Custom layout | Depends | Application-defined schemas | Experimental |
| Nil / Max | All-zero / all-F | — | Placeholders and testing | Special values |
v1, v3, v4, and v5 appeared in RFC 4122 (2005); v2 is a DCE Security UUID defined separately. RFC 9562 is the current UUID specification. v6, v7, and v8 defined in RFC 9562 (May 2024).
Use Cases
What are UUIDs used for?
UUIDs are useful anywhere a system needs low-collision-risk identifiers without central coordination — the foundation of modern distributed software. Microsoft GUIDs generally use the same 128-bit UUID format, although not every random ID is a UUID.
Database Primary Keys
Unique row identifiers that work across shards and replicas without a shared sequence generator.
API Resource IDs
REST and GraphQL object identifiers that do not expose sequential counts to clients.
Distributed Systems
Microservices and offline-first apps can generate IDs independently with no database round-trip.
Session Tracking
Session record identifiers, request IDs, and trace IDs across logs and distributed tracing systems. Use dedicated secure tokens for authentication.
File Naming
Low-collision-risk names for uploads and generated files; storage bucket names may need additional provider-specific rules.
Test & Mock Data
Useful placeholder IDs and database seed data; deterministic tests may require fixed seed values.
Collision Probability
How unique is a UUID, really?
A UUID v4 has 122 bits of actual randomness. That gives roughly 5.3 × 10³⁶ possible values.
Practically speaking, treat v4 collisions as a non-event at any realistic scale. One important caveat: a UUID is not a cryptographic secret. It is built for uniqueness, not unguessability under attack. Never use a UUID alone as an auth token or password.
Developer Reference
Generate a UUID in your language
Every major language has a native implementation to get a UUID, create a random ID, or build a unique ID generator into your own app:
This Online UUID Generator Runs Entirely in Your Browser
UUIDs generated here are processed locally in the browser using Web Crypto APIs. Random versions use your browser’s built-in crypto.getRandomValues(). The generator does not intentionally send generated UUIDs to our server. No account is required. Other site resources may still make normal network requests.
FAQ
Frequently asked questions
Explore More Tools
Related UUID & GUID Tools
Need something specific? Each tool below is purpose-built for a distinct use case — from GUID generation for .NET developers to bulk exports for database seeding.