UUID & NanoID Generator
Generate UUIDs and unique identifiers for databases, APIs, and distributed systems. Supports UUID v1, v4, v7, and NanoID.
Generation Settings
Configure how many IDs to generate
UUID v4
Standard universally unique identifiers (128-bit)
NanoID
Compact, URL-friendly unique IDs (default: 21 characters)
✨ Pro
Pro Features
- •Generate up to 10,000 IDs at once
- •Custom alphabet presets and templates
- •Export as CSV, JSON, or SQL INSERT statements
- •API endpoint for programmatic generation
Key Features
✓UUID v1, v4, and v7 generation
✓NanoID generation for shorter IDs
✓Batch generation (up to 100 at once)
✓UUID validation and parsing
✓Uppercase/lowercase format options
✓Copy individual or all UUIDs
✓Cryptographically secure randomness
✓Version information display
About UUIDs
UUIDs (Universally Unique Identifiers) are essential for distributed systems, databases, and applications that need unique identifiers without central coordination. Our UUID Generator creates multiple UUID versions instantly.
Generate UUID v1 (timestamp-based), UUID v4 (random), or the new UUID v7 (time-ordered random) depending on your use case. Also includes NanoID generation for shorter, URL-friendly identifiers.
UUID Version Comparison
| Version | Based On | Best For |
|---|---|---|
| UUID v1 | Timestamp + MAC address | When you need timestamp extraction |
| UUID v4 | Random numbers | General purpose (most common) |
| UUID v7 | Timestamp + random | Database primary keys (sortable) |
| NanoID | Random characters | URL-friendly short IDs |
Common Use Cases
- Creating unique primary keys for databases
- Generating session IDs for web applications
- Creating unique identifiers for API resources
- Generating correlation IDs for distributed tracing
- Creating unique file names for uploads
- Generating test data with unique identifiers
Frequently Asked Questions
What is the difference between UUID v1, v4, and v7?
UUID v1 includes timestamp and MAC address (semi-unique). UUID v4 is fully random and most commonly used. UUID v7 is the newest standard, combining timestamp ordering with random bits - ideal for database indexing.
Can two UUIDs ever be the same?
While theoretically possible, the probability is astronomically low (1 in 2^122 for v4). You would need to generate a billion UUIDs per second for about 85 years to have a 50% chance of a collision.
When should I use NanoID instead of UUID?
Use NanoID when you need shorter IDs that are URL-friendly. NanoIDs are 21 characters by default compared to UUID's 36 characters, while maintaining comparable collision resistance.
Are generated UUIDs truly random?
Yes. We use the Web Crypto API (crypto.getRandomValues) which provides cryptographically secure random numbers, ensuring each UUID is truly random and unpredictable.
Which UUID version should I use?
Use UUID v4 for general purposes (most common). Use UUID v7 for database primary keys where time-ordering improves index performance. Use v1 only if you need timestamp extraction.