UUID Generator
Generate RFC 4122 compliant UUIDs in Version 1 (time-based), Version 4 (random), and Version 5 (name-based) formats. Generate up to 100 at once.
RFC 4122 compliant. Uses crypto.randomUUID() for v4.
How to Use This Tool
Select the UUID version: v4 (random) is recommended for most use cases. v1 uses the current timestamp and machine identifier. v5 is deterministic — it generates the same UUID for the same name and namespace combination.
Set the quantity (1-100) to generate multiple UUIDs at once — useful for seeding databases or creating test data. For v5, enter your namespace UUID and name string.
Copy individual UUIDs with the copy button, or use the "Copy All" button to copy the entire list. UUIDs are formatted in the standard 8-4-4-4-12 hexadecimal pattern.
Code Examples
// Node.js 14.17+ has crypto.randomUUID() built-in
const { randomUUID } = require('crypto');
// v4 (random) — most common
const id = randomUUID();
console.log(id); // e.g., '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d'
// Using the 'uuid' package for v1, v5 support
const { v1, v4, v5 } = require('uuid');
console.log(v1()); // time-based
console.log(v4()); // random
console.log(v5('example.com', v5.DNS)); // deterministicFrequently Asked Questions
What is the difference between UUID v1, v4, and v5?
UUID v4 is randomly generated — use it when you need a unique, unpredictable identifier (database primary keys, session IDs). UUID v1 is time-based and includes a machine identifier — useful when you need sortable IDs but avoid it when anonymity matters. UUID v5 is deterministic — given the same namespace and name, it always produces the same UUID — useful for content addressing and deduplication.
Are UUID v4 values guaranteed to be unique?
UUIDs are not mathematically guaranteed unique, but the probability of collision is astronomically low — roughly 1 in 5.3 × 10^36 for any two random v4 UUIDs. For all practical purposes, you can treat them as unique without any central coordination.
When should I use UUID instead of a database auto-increment ID?
Use UUIDs when you need IDs to be generated without database coordination (e.g., in distributed systems or client-side), when you don't want to expose sequential record counts to users, or when merging records from multiple databases. Use auto-increment IDs when performance and sortability are priorities and you have a single centralized database.
Is UUID the same as GUID?
Yes. GUID (Globally Unique Identifier) is Microsoft's term for what the RFC 4122 standard calls a UUID. They use the same format and are interchangeable. The only practical difference is that some Microsoft implementations historically generated v1-like UUIDs with different byte ordering.