Skip to content
ForgePlug — Logo
Developer100% Browser-BasedNo Signup

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.

of 100 max
15 UUIDs100
Generated UUIDs5 items
51e31506-b3a8-49c0-98b6-242760f83251
da03eb4e-b74b-47e7-ad92-869dc0cbec95
30f6e477-d068-4520-bffb-4bb1c7f46ac8
736b12da-d88a-4ea2-8ebd-2ca695557802
4c81105c-8f1f-4328-bed2-bca0fdd5d216
Generated 5 UUIDs in <1 ms

Quick Generate

Pre-configured UUID generation presets for common use cases.

Single UUID v4

One random UUID (most common format)

v4 · 1 UUID

5 UUID v4 Batch

Five random UUIDs for bulk operations

v4 · 5 UUIDs

Single UUID v7

One time-ordered UUID (modern, sortable)

v7 · 1 UUID

10 UUID v4 Batch

Ten random UUIDs for testing or seeding

v4 · 10 UUIDs

Frequently Asked Questions

What is a UUID?
A UUID (Universally Unique Identifier) is a 128-bit identifier standardized by RFC 4122. UUIDs are used to uniquely identify information in computer systems. They are globally unique, meaning the same UUID will never be generated twice across different systems. They are commonly used as database primary keys, API identifiers, and distributed system identifiers.
What is UUID v4?
UUID v4 is the most common UUID format. It generates a random identifier using 122 bits of cryptographically secure randomness. The remaining 6 bits are used for version and variant indicators. UUID v4 is the default choice for most applications because of its simplicity and security. With 2^122 possible values, collisions are astronomically unlikely.
What is UUID v7?
UUID v7 (RFC 9562 draft) is a modern UUID format that combines a Unix timestamp in milliseconds (48 bits) with random bits (74 bits). This gives UUIDs time-ordered sortability while maintaining randomness. UUID v7 is ideal for database primary keys and indices because new UUIDs are chronologically sortable, improving B-tree index performance.
When should I use UUID instead of auto-increment IDs?
Use UUIDs when you need globally unique identifiers across distributed systems, when merging data from multiple databases, when you don't want to expose sequential IDs (security through obscurity), or when you need to generate IDs on the client side. Use auto-increment IDs for simple, single-database applications where performance and readability are priorities.
Are UUIDs truly unique?
UUIDs are designed to be universally unique with an extremely high probability of uniqueness. For UUID v4, there are approximately 5.3 × 10^36 possible values — that's 5.3 trillion trillion trillion. While collisions are theoretically possible, the probability is so low that they are practically impossible in normal use. The chance of a collision with 1 billion UUIDs is about 50% only after generating 2.7 × 10^18 UUIDs (birthday problem).
What is the difference between UUID v1 and v7?
Both UUID v1 and v7 are time-based, but they differ in implementation. UUID v1 uses a 60-bit timestamp in 100-nanosecond intervals since October 15, 1582, plus a node identifier (typically a MAC address). UUID v7 uses a simpler 48-bit Unix timestamp in milliseconds plus random bits. UUID v7 is recommended for modern applications because it's simpler, faster, and avoids privacy concerns associated with MAC address exposure in v1.
Can I generate UUIDs offline?
Yes! The entire UUID generation process happens in your browser using the Web Crypto API. No internet connection is required after the page loads. All UUIDs are generated locally using cryptographically secure random number generation.

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?
A UUID (Universally Unique Identifier) is a 128-bit identifier standardized by RFC 4122. UUIDs are used to uniquely identify information in computer systems. They are globally unique, meaning the same UUID will never be generated twice across different systems. They are commonly used as database primary keys, API identifiers, and distributed system identifiers.
What is UUID v4?
UUID v4 is the most common UUID format. It generates a random identifier using 122 bits of cryptographically secure randomness. The remaining 6 bits are used for version and variant indicators. UUID v4 is the default choice for most applications because of its simplicity and security. With 2^122 possible values, collisions are astronomically unlikely.
What is UUID v7?
UUID v7 (RFC 9562 draft) is a modern UUID format that combines a Unix timestamp in milliseconds (48 bits) with random bits (74 bits). This gives UUIDs time-ordered sortability while maintaining randomness. UUID v7 is ideal for database primary keys and indices because new UUIDs are chronologically sortable, improving B-tree index performance.
When should I use UUID instead of auto-increment IDs?
Use UUIDs when you need globally unique identifiers across distributed systems, when merging data from multiple databases, when you don't want to expose sequential IDs (security through obscurity), or when you need to generate IDs on the client side. Use auto-increment IDs for simple, single-database applications where performance and readability are priorities.
Are UUIDs truly unique?
UUIDs are designed to be universally unique with an extremely high probability of uniqueness. For UUID v4, there are approximately 5.3 × 10^36 possible values — that's 5.3 trillion trillion trillion. While collisions are theoretically possible, the probability is so low that they are practically impossible in normal use. The chance of a collision with 1 billion UUIDs is about 50% only after generating 2.7 × 10^18 UUIDs (birthday problem).
What is the difference between UUID v1 and v7?
Both UUID v1 and v7 are time-based, but they differ in implementation. UUID v1 uses a 60-bit timestamp in 100-nanosecond intervals since October 15, 1582, plus a node identifier (typically a MAC address). UUID v7 uses a simpler 48-bit Unix timestamp in milliseconds plus random bits. UUID v7 is recommended for modern applications because it's simpler, faster, and avoids privacy concerns associated with MAC address exposure in v1.
Can I generate UUIDs offline?
Yes! The entire UUID generation process happens in your browser using the Web Crypto API. No internet connection is required after the page loads. All UUIDs are generated locally using cryptographically secure random number generation.

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.

  1. Choose a version

    Pick v4 for general-purpose keys, v1 for timestamped IDs, or v7 for sortable identifiers.

  2. Set quantity & format

    Choose how many UUIDs to generate (up to 100) and select uppercase, lowercase, or no-dash formatting.

  3. Generate

    Click generate — cryptographically secure IDs appear instantly, ready to inspect.

  4. 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

Share
Runs in your browser100% privateNo data uploaded