Results

5ebdfbc0-12d5-42fb-afe4-22d21b5ad30c
9234bec1-784f-4a12-b7ee-404cabf866a7
00c191ff-b4bf-4b20-a562-dd29e6ed1aaf
8af5df4a-9c4c-4fcb-82be-069fb5957621
de9dd9a7-9df0-4035-9242-0d9b266a6b50
ee737ca8-d0b8-444e-8982-1466e95ec7aa
6d26ebe2-43e3-45ae-ae69-65234584f13c
2134ebe2-8183-41f4-be39-92528a54b4ff
6c3666ae-f8d9-4c87-bd50-007b4f8fbfac
cd7c2c7c-b2c8-47a2-8b29-43e0e168ca41

Free UUID Generator — Generate v1, v3, v4 & v5 UUIDs Online

Generate RFC 4122-compliant UUIDs and GUIDs instantly in your browser. Bulk generation up to 1,000, custom formatting, prefix/suffix, and one-click CSV or TXT download — no sign-up required.

What Is a UUID? (Universally Unique Identifier)

A UUID (Universally Unique Identifier), also called a GUID (Globally Unique Identifier), is a 128-bit number used to uniquely identify information in computer systems. Defined in RFC 4122, a UUID is represented as a 32-character hexadecimal string divided into five groups by hyphens, following the pattern xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (8-4-4-4-12). For example: 550e8400-e29b-41d4-a716-446655440000

The core advantage of UUIDs is that they can be generated independently on any system — without a central authority or coordination — and still be practically guaranteed unique. The probability of generating two identical UUID v4 values, for example, is approximately 1 in 5.3 × 10³⁶. For all practical purposes in software development, database design, and distributed systems, this collision probability is negligible.

UUID vs GUID: These two terms refer to the same concept. UUID is the standard term used in the RFC 4122 specification and is prevalent in Linux, macOS, Java, Python, Node.js, and most open-source ecosystems. GUID (Globally Unique Identifier) is Microsoft's term for the same standard, used in Windows, .NET, C#, Microsoft SQL Server, and Azure. Both produce the same 128-bit, hyphen-separated format.

All UUIDs generated by this tool are produced entirely in your browser and are fully RFC 4122-compliant. No data is sent to any server.

UUID Versions Explained — v1, v3, v4, v5 (and When to Use Each)

The UUID standard defines multiple versions, each with a different generation algorithm and use case. Our generator supports v1, v3, v4, and v5. Here is a complete breakdown:

UUID v1 — Time-Based

UUID v1 is generated using the current timestamp (a 60-bit value based on 100-nanosecond intervals since October 15, 1582) combined with the MAC address of the generating machine (or a random node ID if the MAC is unavailable).

  • ✓ Chronologically sortable — earlier UUIDs sort before later ones
  • ✓ Useful for database indexing and log correlation
  • ✗ Can reveal the generating machine's MAC address
  • ✗ Not suitable when anonymity or privacy is required

Best for: event logs, audit trails, time-ordered database records

UUID v3 — Name-Based (MD5)

UUID v3 generates a deterministic UUID by hashing a namespace UUID combined with a name string using the MD5 hash algorithm. The same namespace + name always produces the exact same UUID, making it reproducible and collision-free within a given namespace.

  • ✓ Deterministic — same inputs always produce the same output
  • ✓ Good for mapping external names/IDs to stable internal UUIDs
  • ✗ Uses MD5, which is considered cryptographically weak
  • ✗ Not recommended for new systems — prefer v5

Best for: legacy systems, URL/DNS namespace mapping

UUID v4 — Random (Most Common)

UUID v4 is generated using cryptographically random numbers, with only 6 bits reserved for version and variant information. The result is 122 bits of randomness, making it overwhelmingly unlikely that any two generated UUIDs will ever match.

  • ✓ Completely random — no information leakage
  • ✓ The most widely used UUID version across all platforms
  • ✓ No coordination needed between systems
  • ✗ Not sortable — sequential inserts cause random index fragmentation in databases

Best for: database primary keys, session tokens, API keys, entity IDs

UUID v5 — Name-Based (SHA-1)

UUID v5 works identically to v3 — deterministic output from a namespace + name — but uses SHA-1 hashing instead of MD5. SHA-1 is a stronger hash function, making v5 the recommended choice over v3 for all new name-based UUID use cases.

  • ✓ Deterministic and reproducible from the same inputs
  • ✓ Stronger than v3 — uses SHA-1 instead of MD5
  • ✓ Namespace-scoped — same name in different namespaces = different UUIDs
  • ✗ Still not collision-resistant against intentional attacks

Best for: deriving stable IDs from emails, URLs, usernames, or external identifiers

How to Generate UUIDs — Step-by-Step Guide

  1. Select the UUID version — Choose v1 (time-based), v3 (name-based, MD5), v4 (random), or v5 (name-based, SHA-1) from the Version dropdown. For most use cases, v4 is the right default choice.
  2. Set the quantity — Enter how many UUIDs you need (1–1,000) in the "How many" field. The generator handles bulk UUID generation in a single click.
  3. Configure formatting options — Toggle Uppercase to produce uppercase hex (e.g., 550E8400-E29B-41D4-A716-446655440000). Toggle Remove hyphens to strip the delimiter dashes and produce a compact 32-character hex string (e.g., 550e8400e29b41d4a716446655440000).
  4. For v3/v5: configure namespace and name — Select a predefined namespace (DNS or URL) or enter a custom namespace UUID. Then enter the name string to hash. The same namespace + name combination will always produce the same UUID, every time, on any machine.
  5. Add custom prefix, suffix, or separator (optional) — Use these fields to wrap each UUID in application-specific context. For example, a prefix of user with separator _ produces user_550e8400-e29b-41d4-a716-446655440000.
  6. Click "Generate" — The results panel populates instantly with your UUIDs, each with an individual copy button.
  7. Copy or download your UUIDs — Use Copy all to copy every UUID as newline-separated text, Copy CSV for comma-separated values ready to paste into a spreadsheet, or use the download buttons to save as a .txt or .csv file.

Features of This Free UUID / GUID Generator

✓ All Major UUID Versions — v1, v3, v4, v5

Most online UUID generators only support v4. This tool supports all four RFC 4122 versions with the correct algorithms: time-based (v1), MD5 name-based (v3), random (v4), and SHA-1 name-based (v5). Switch versions instantly without reloading.

✓ Bulk UUID Generation — Up to 1,000 at Once

Generate anywhere from 1 to 1,000 UUIDs in a single batch. Essential for seeding databases, populating test fixtures, generating bulk API keys, or mass-creating entity records in any application.

✓ Uppercase & No-Hyphen Formatting

Toggle uppercase output for systems that require capitalized hex. Remove hyphens to generate compact 32-character strings — useful for database columns that don't support punctuation, storage optimization, or URL-safe identifiers.

✓ Custom Prefix, Suffix & Separator

Wrap every UUID with a custom prefix (e.g., order_), suffix (e.g., _v2), and separator. This lets you generate application-ready identifiers that match your exact naming convention without any post-processing.

✓ Namespace Support for v3 & v5

For v3 and v5 name-based UUIDs, choose from predefined RFC 4122 namespaces (DNS: 6ba7b810..., URL: 6ba7b811...) or enter any custom UUID as your namespace. Enter your name string and generate deterministic, reproducible UUIDs.

✓ Copy All, Copy CSV, Download .txt / .csv

Four export options to fit any workflow: copy newline-separated UUIDs for code editors and scripts, copy CSV for spreadsheets, or download as .txt or .csv files for use in database seeders, test harnesses, and import tools.

✓ 100% Browser-Based — No Server, No Sign-Up

Every UUID is generated locally in your browser using the JavaScript uuid library backed by the Web Crypto API's cryptographically secure random number generator. Nothing is sent to any server. No account required, no rate limits, no watermarks.

✓ Resizable Split-Panel Layout

On desktop, drag the divider between the config and results panels to resize them to your preference. The tool adapts fully to mobile, tablet, and desktop screens with a responsive layout.

When Do Developers Use UUIDs? — Common Use Cases

UUIDs are one of the most commonly used identifiers in software engineering. Here are the primary scenarios where developers reach for a UUID generator:

🗄️ Database Primary Keys

UUIDs are widely used as primary keys in relational databases (PostgreSQL, MySQL, SQLite) and NoSQL databases (MongoDB, DynamoDB, Firestore). Unlike auto-increment integers, UUID primary keys can be generated client-side, work seamlessly in distributed systems, and don't leak record count information through enumerable IDs.

🔌 REST API & GraphQL Entity IDs

Public-facing APIs expose UUIDs as resource identifiers instead of sequential integers to prevent enumeration attacks. A URL like /users/550e8400-e29b-41d4-a716-446655440000 reveals nothing about total user count or record order.

🧪 Test Data & Database Seeding

QA engineers and developers use bulk UUID generation to populate test databases with realistic-looking IDs. Generate 100–1,000 UUIDs, paste them into a SQL seed file or JSON fixture, and you have a complete test dataset in seconds.

🔐 Session Tokens & Authentication

UUID v4's cryptographic randomness makes it suitable as session identifiers, CSRF tokens, password reset tokens, and email confirmation codes where unpredictability is a security requirement. Always use v4 (never v1) for security-sensitive tokens.

🌐 Distributed & Microservices Systems

In distributed architectures where multiple services or nodes create records independently, UUIDs eliminate the need for a central ID-issuing authority. Each service generates its own globally unique IDs without coordination, preventing collisions across service boundaries.

📁 File & Object Storage Naming

Cloud storage systems (AWS S3, Google Cloud Storage, Azure Blob) use UUIDs as object keys to prevent collisions when multiple processes upload files simultaneously. UUID-named files also prevent overwriting existing files with the same original filename.

🔗 Idempotency Keys for APIs

Payment APIs (Stripe, Razorpay) and messaging APIs require an idempotency key per request to prevent duplicate operations. A UUID v4 is the standard choice for idempotency keys — unique per request, simple to generate, and universally accepted.

🏷️ Content & Configuration Management

CMS platforms, feature flag systems, and configuration management tools use UUID v5 to derive stable, deterministic IDs from content slugs, feature names, or configuration keys — ensuring the same logical entity always maps to the same UUID across environments.

UUID Format & Structure — Anatomy of a UUID String

A UUID is always represented as a 36-character string of 32 hexadecimal digits and 4 hyphens. The format is:

xxxxxxxx-xxxx-Vxxx-Nxxx-xxxxxxxxxxxx
SegmentCharactersBitsMeaning
time_low832Low 32 bits of time (v1) or random (v4)
time_mid416Middle 16 bits of time (v1) or random (v4)
time_hi_and_version416High bits of time + version digit (V) — identifies UUID version (1–5)
clock_seq416Clock sequence + variant bits (N) — N is 8, 9, a, or b for RFC 4122
node1248MAC address (v1) or random bits (v4)

Reading the version: Look at the 13th character (first digit of the third group). A 4 means UUID v4, a 1 means v1, and so on. This is how UUID validator tools identify the version of any given UUID string.

UUID vs Other Unique ID Formats — Comparison

FormatLengthSortableURL-SafeCollision ResistanceBest For
UUID v436 charsNoYesExcellentDB keys, APIs, tokens
UUID v136 charsYesYesExcellentLogs, time-ordered events
ULID26 charsYesYesExcellentModern DBs needing sortable IDs
NanoID21 charsNoYesExcellentShort URL IDs, compact keys
Auto-Increment INT1–10 charsYesYesNone (enumerable)Simple single-DB apps
MongoDB ObjectId24 charsYesYesGoodMongoDB collections

UUID v4 remains the most universally supported and interoperable unique identifier format across all programming languages, databases, and platforms — making it the safe default choice for the vast majority of applications.

How to Generate UUIDs in Code — Language Examples

Our online UUID generator is ideal for quick, one-off generation. For automated or programmatic generation inside your application, here is how to generate UUIDs in the most common languages:

JavaScript / Node.js
import { v4 as uuidv4 } from 'uuid';
const id = uuidv4();
// e.g. '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d'
Python
import uuid
id = uuid.uuid4()
print(str(id))
# e.g. '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d'
Java
import java.util.UUID;
UUID id = UUID.randomUUID();
String idStr = id.toString();
C# / .NET (GUID)
using System;
Guid id = Guid.NewGuid();
string idStr = id.ToString();
PHP
// Using ramsey/uuid package
use RamseyUuidUuid;
$uuid = Uuid::uuid4()->toString();
PostgreSQL / SQL
-- Generate UUID in PostgreSQL
SELECT gen_random_uuid();
-- Or with pgcrypto extension:
SELECT uuid_generate_v4();

For one-off UUIDs during development, testing, database migrations, configuration files, or manual record creation, this online UUID generator is the fastest option — no code to write, no package to install.

Frequently Asked Questions — UUID Generator

What is a UUID used for?

UUIDs are used to uniquely identify records, entities, files, sessions, and resources in software systems without a central authority. Common uses include database primary keys, REST API resource IDs, session tokens, idempotency keys, test data generation, and distributed system identifiers where multiple nodes create records independently.

Which UUID version should I use?

Use v4 for most general-purpose use cases — it is random, widely supported, and safe. Use v1 when you need chronological ordering (e.g., log events, audit trails). Use v5 (preferred over v3) when you need a deterministic UUID derived from a fixed input like a username, URL, or email address.

What is a GUID? Is it the same as a UUID?

Yes — GUID (Globally Unique Identifier) and UUID are the same thing. GUID is Microsoft's name for the RFC 4122 UUID standard and is the terminology used in .NET, C#, Windows, and Microsoft SQL Server. UUID is the term used everywhere else. Both produce the same 128-bit, hyphenated hex string format.

Can two UUIDs be the same? Are they truly unique?

Technically, UUID v4 collisions are possible but astronomically unlikely. With 122 bits of randomness, you would need to generate approximately 2.71 quintillion UUIDs to reach a 50% probability of a single collision. In practice, UUID v4 is treated as universally unique for all real-world applications.

What does "no hyphens" mean for a UUID?

A standard UUID has four hyphen separators, producing a 36-character string. Removing hyphens yields a compact 32-character hex string: 550e8400e29b41d4a716446655440000. This format is used when the storage layer doesn't support hyphens, to save 4 bytes per record, or when the identifier must be URL-safe without encoding.

What is a namespace UUID in v3 and v5?

A namespace is itself a UUID that scopes the name-based generation. RFC 4122 defines standard namespaces: DNS (for domain names) and URL (for URLs). Using different namespaces with the same name produces different UUIDs — preventing collisions across different naming systems. You can also define a custom namespace UUID for your own application's identifier space.

Is it safe to use this UUID generator for security tokens?

UUID v4 uses the browser's Web Crypto API (crypto.getRandomValues()) for cryptographically secure random number generation. This makes it suitable for session tokens, CSRF tokens, and non-cryptographic secret uses. However, for cryptographic secrets like API private keys or encryption keys, purpose-built key generation tools are recommended — UUIDs have only 122 bits of entropy, which is strong but below the 256-bit standard for cryptographic keys.

How do I generate a UUID in bulk and download it?

Set the "How many" field to your desired count (up to 1,000), click Generate, then click "Download .txt" for a newline-separated file or "Download .csv" for a comma-separated file. Both are ready to use in SQL seed scripts, JSON fixtures, Postman collections, or any bulk-import workflow.

Are UUID v4 values safe to expose in URLs?

Yes. UUID v4 values contain only hexadecimal characters (0–9, a–f) and hyphens, all of which are URL-safe without encoding. They reveal no information about your data structure, are not sequential, and cannot be enumerated — making them safe and recommended for use as public-facing resource identifiers in REST APIs.

What is the difference between UUID v3 and v5?

Both v3 and v5 are name-based and deterministic. The difference is the hash algorithm: v3 uses MD5, while v5 uses SHA-1. SHA-1 produces a better distribution and is considered more secure than MD5. For all new projects requiring name-based UUIDs, use v5. v3 exists for backward compatibility with older systems.