UUID Generator
A premium UUID generator that creates cryptographically secure UUIDs entirely in your browser. Supports UUID v1 (time-based), UUID v4 (random), and UUID v7 (time-ordered random). Includes a built-in UUID validator with version detection, bulk generation (up to 100 at once), multiple export formats (TXT, CSV, JSON), and flexible formatting options — all without sending any data to a server.
UUID Generator
UUID v4
Random UUID with 122 bits of cryptographic randomness. The most commonly used UUID format.
The default choice for most applications. Use when you need unique identifiers without ordering.
51e31506-b3a8-49c0-98b6-242760f83251da03eb4e-b74b-47e7-ad92-869dc0cbec9530f6e477-d068-4520-bffb-4bb1c7f46ac8736b12da-d88a-4ea2-8ebd-2ca6955578024c81105c-8f1f-4328-bed2-bca0fdd5d216Quick Generate
Pre-configured UUID generation presets for common use cases.
Single UUID v4
One random UUID (most common format)
5 UUID v4 Batch
Five random UUIDs for bulk operations
Single UUID v7
One time-ordered UUID (modern, sortable)
10 UUID v4 Batch
Ten random UUIDs for testing or seeding
Frequently Asked Questions
What is a UUID?
What is UUID v4?
What is UUID v7?
When should I use UUID instead of auto-increment IDs?
Are UUIDs truly unique?
What is the difference between UUID v1 and v7?
Can I generate UUIDs offline?
Understanding UUIDs: The Backbone of Distributed Identifiers
How Universally Unique Identifiers work, when to use each version, and why they matter for modern software architecture.
In distributed systems, microservices architectures, and modern databases, generating identifiers that are guaranteed to be unique across every system in the world is a fundamental challenge. UUIDs (Universally Unique Identifiers) solve this problem elegantly — they are 128-bit values that can be generated independently by any system without coordination, yet produce practically zero chance of duplication.
UUID Structure and Versions
A UUID is a 128-bit number typically displayed as 32 hexadecimal characters separated by hyphens in an 8-4-4-4-12 pattern. The most familiar format looks like 550e8400-e29b-41d4-a716-446655440000. The structure reserves specific bits for the version number (indicating how the UUID was generated) and the variant (indicating the UUID layout), while the remaining bits are filled with data specific to the version.
Several versions exist, each optimized for different use cases. UUID v1 uses a 60-bit timestamp (in 100-nanosecond intervals since October 15, 1582 — the date of the Gregorian calendar reform) combined with a node identifier, typically derived from the machine's MAC address. The timestamp component means v1 UUIDs are time-sortable, but the inclusion of the MAC address raises privacy concerns in some contexts.
UUID v4 is the most widely used version. It fills 122 of its 128 bits with cryptographically secure random data, reserving only 6 bits for version and variant indicators. The result is a UUID with no meaningful relationship to time, location, or any other metadata — pure randomness. With 2^122 possible values (approximately 5.3 × 10^36), the probability of generating a duplicate is astronomically low.
UUID v7 is a modern standard (draft RFC 9562) that combines a 48-bit Unix timestamp in milliseconds with 74 bits of random data. This gives you the time-ordered sortability of v1 without the privacy concerns of including a MAC address. UUID v7 is increasingly recommended for database primary keys because new records naturally sort chronologically, improving B-tree index performance and reducing page splits.
UUIDs vs. Auto-Increment IDs
The traditional alternative to UUIDs is auto-incrementing integer IDs — simple, sequential numbers assigned by the database. Auto-increment IDs are smaller, faster to index, and human-readable, making them ideal for simple, single-database applications. However, they have significant limitations in distributed systems.
With auto-increment IDs, you need a central authority (the database) to assign the next number. If you have multiple databases or need to generate IDs on the client side (for example, in an offline-capable app that syncs later), auto-increment becomes impractical. UUIDs eliminate this bottleneck by allowing any system to generate IDs independently.
UUIDs also provide a modest security benefit by making resource URLs less predictable. A URL like /users/12345 is trivially guessable — an attacker can increment the number and access other users' data. A URL like /users/550e8400-e29b-41d4-a716-446655440000 is not, though this should never be relied upon as a security mechanism (authorization checks are essential regardless).
Performance Considerations
UUID v4 can cause index fragmentation in databases that use B-tree indexes, because new UUIDs are inserted at random positions in the index rather than sequentially. This leads to more page splits and slightly reduced write performance. UUID v7 addresses this by incorporating a timestamp prefix, ensuring that new IDs sort chronologically and are inserted at the end of the index.
For storage, UUIDs require 16 bytes compared to 4 bytes for a 32-bit integer or 8 bytes for a 64-bit integer. While this difference is negligible for most applications, it can matter in high-volume systems where millions of rows are stored and indexed.
When to Use Each Version
- UUID v4: Default choice for most applications. Use when you need globally unique identifiers and sort order does not matter.
- UUID v7: Use for database primary keys where chronological ordering improves performance. Ideal for high-write systems.
- UUID v1: Rarely recommended for new applications due to MAC address exposure. Consider only for backward compatibility with legacy systems.
Frequently Asked Questions
Everything you need to know about generating UUIDs
What is a UUID?
What is UUID v4?
What is UUID v7?
When should I use UUID instead of auto-increment IDs?
Are UUIDs truly unique?
What is the difference between UUID v1 and v7?
Can I generate UUIDs offline?
Guides & Articles
Learn how to get the most out of this tool with our in-depth guides.
Tool Overview
A closer look at UUID Generator — how it works, who it's for, and where it fits in your workflow.
A UUID (Universally Unique Identifier) is a 128-bit identifier standardized as a 36-character string, for example 550e8400-e29b-41d4-a716-446655440000. UUIDs let distributed systems generate unique keys without coordination — no central database, no incrementing counters, no collisions in practice. That makes them the default choice for database primary keys, API resource IDs, event tracking, idempotency keys, and anywhere two systems might generate identifiers independently.
ForgePlug's generator supports the three versions you'll actually encounter. UUID v4 uses cryptographically secure random numbers — the best default for almost everything. UUID v1 embeds a timestamp and node identifier, useful when you need rough chronological ordering or to trace generation time. UUID v7, the modern recommendation, combines randomness with a millisecond timestamp so records are naturally sortable — ideal for database indexes and event streams.
The built-in validator detects the version of any UUID you paste, so you can identify what you're working with instantly. Bulk generation produces up to 100 IDs at once with formatting options and TXT/CSV/JSON export, ready to paste straight into a migration, fixture file, or spreadsheet. All generation uses your browser's crypto APIs — nothing leaves your device.
Key Features
Everything you get with this tool, at a glance.
v1, v4 & v7
Generate time-based, random, and sortable time-ordered UUIDs.
Secure Randomness
Uses the browser's Web Crypto API — never Math.random, never predictable.
Validator with Version Detection
Paste any UUID to confirm validity and identify its version instantly.
Bulk Generation
Generate up to 100 UUIDs at once for fixtures, migrations, and datasets.
Flexible Export
Download as TXT, CSV, or JSON, or copy a formatted block in one click.
Zero-Server Privacy
Identifiers are created locally — no generation log, no tracking, no signup.
How to Use UUID Generator
Get from zero to done in four quick steps — no account, no learning curve.
Choose a version
Pick v4 for general-purpose keys, v1 for timestamped IDs, or v7 for sortable identifiers.
Set quantity & format
Choose how many UUIDs to generate (up to 100) and select uppercase, lowercase, or no-dash formatting.
Generate
Click generate — cryptographically secure IDs appear instantly, ready to inspect.
Export your batch
Copy the block or download as TXT, CSV, or JSON for use in code, migrations, or spreadsheets.
Practical Examples
Real input and output pairs so you know exactly what to expect.
UUID v4
Input
Click Generate with version v4
Output
9c0f6a1e-6b21-4a7e-9d34-3f8a2b7c1d05
UUID v7 (sortable)
Input
Click Generate with version v7
Output
0192f6c8-1a2b-7c3d-8e4f-5a6b7c8d9e0f
Validate an unknown UUID
Input
550e8400-e29b-41d4-a716-446655440000
Output
Valid UUID v4
Guides & Articles
Learn how to get the most out of this tool with our in-depth guides.
Part of Developer Essentials
Was this tool helpful?
Your feedback helps us improve UUID Generator for everyone.
Share this tool
