100% CLIENT-SIDE · NO DATA SENT

UUID Generator

Generate UUIDs v4 (random) and v7 (time-ordered). Bulk mode, multiple formats, copy with one click. Runs entirely in your browser.

Generated UUIDs

Click Generate to create UUIDs
0
Generated
v4
Version
122
Random Bits
~2.71×10¹⁸
For 50% Collision

What is a UUID?

A UUID (Universally Unique Identifier) is a 128-bit identifier that is unique across space and time. Also known as a GUID (Globally Unique Identifier) in Microsoft ecosystems. UUIDs are used in databases, distributed systems, APIs, session tokens, and anywhere you need a guaranteed-unique ID without coordination.

UUID v4 vs UUID v7

FeatureUUID v4UUID v7
GenerationFully randomTime-ordered + random
SortableNoYes (chronological)
Database performanceRandom index fragmentationSequential, B-tree friendly
Timestamp embeddedNoYes (Unix ms)
Best forGeneral purpose IDsDatabase PKs, event logs

UUID Format

A standard UUID looks like: 550e8400-e29b-41d4-a716-446655440000

It's 32 hexadecimal digits displayed in 5 groups separated by hyphens: 8-4-4-4-12. The version number is encoded in the 13th character.

When to Use UUIDs

Generate UUIDs in Code

JavaScript: crypto.randomUUID()

Python: import uuid; uuid.uuid4()

Go: uuid.New() (google/uuid package)

PostgreSQL: gen_random_uuid()

Frequently Asked Questions

What is a UUID?

UUID (Universally Unique Identifier) is a 128-bit identifier formatted as 8-4-4-4-12 hexadecimal characters (e.g., 550e8400-e29b-41d4-a716-446655440000). UUIDs are used to uniquely identify records in databases, distributed systems, and APIs without needing a central authority to coordinate ID assignment.

What is the difference between UUID v1 and UUID v4?

UUID v1 is generated using the current timestamp and MAC address, making it time-ordered but potentially revealing hardware information. UUID v4 is purely random (122 random bits), making it the most common choice for privacy and security. Version 4 is recommended for most use cases where time-ordering isn't needed.

What is a GUID vs UUID?

GUID (Globally Unique Identifier) is Microsoft's term for UUID. They are functionally identical — both are 128-bit identifiers in the same format. You'll see "UUID" in Unix/web contexts and "GUID" in Windows/.NET contexts, but they interoperate perfectly across all platforms and languages.

How unique is a UUID v4?

UUID v4 has 122 bits of randomness, giving 2^122 (roughly 5.3 × 10^36) possible values. The probability of generating a duplicate is astronomically small — you'd need to generate 1 billion UUIDs per second for 85 years before having even a 50% chance of a single collision.

Can I use UUIDs as database primary keys?

Yes, UUIDs are commonly used as primary keys, especially in distributed systems where multiple servers generate records independently. The main trade-off is that random UUID v4 values cause index fragmentation in databases like PostgreSQL and MySQL. Consider UUID v7 (time-ordered) for better index performance.

Need repeatable content output?

If your workflow bottleneck is content distribution, use the free content repurposer to test output, then move to the API for repeatable use across teams, products, and client work.

Try Free Tool → See API →

More Free Developer Tools