UUID Generator

Generate Version 4, Version 7, and Nil/Empty UUIDs directly in your browser.

Looking for .NET GUIDs?GUID Generator
  • Zero Network Latency
    Generated 100% locally via crypto.randomUUID().
  • Entropy Guarantee
    UUIDv4 provides 122 random bits; UUIDv7 provides 74 random bits alongside its timestamp.
  • Database Index Friendly
    UUIDv7 orders naturally by timestamp for optimal B-Tree performance.

Documentation

Understanding UUID Versions

A Universally Unique Identifier (UUID) is a 128-bit label used for records in computing systems. Standardized by RFC 4122 and RFC 9562, UUIDs eliminate the need for a central coordinating registration system, letting independent systems generate IDs with virtually zero risk of collisions.

While UUIDv4 is created from pseudo-random numbers (providing maximum unpredictability), UUIDv7 encodes a millisecond Unix timestamp within the first 48 bits. This makes UUIDv7 naturally sortable in ascending chronological order, preventing heavy database index fragmentation in systems like PostgreSQL, MySQL, and MongoDB.

UUID Anatomy (36 characters)RFC 9562 Spec
8 chars
time-low
4 chars
time-mid
4 chars
version
4 chars
variant
12 chars
node-random

Deciding between UUID v4 and v7 for your database primary keys?

Read the Complete Comparison
Developer SDKs & APIs

Generate UUIDs in your code

See implementation examples for JavaScript, Python, Java, C#, Go, PHP and more.

// Modern Native Web Crypto (Node 16+, Browsers)
const uuid = crypto.randomUUID();
console.log(uuid);

Got Questions?

Frequently Asked Questions

Yes, completely. This tool runs 100% inside your browser using the W3C standard Web Cryptography API (crypto.getRandomValues). No generated strings, seed keys, or device metadata ever leave your computer or touch a network backend.
UUIDv4 relies entirely on random bits, meaning records are unordered in memory. UUIDv7 combines a 48-bit millisecond timestamp prefix with random entropy. This time-locality prevents random page insertion splits in standard database indices like B-Trees.
Yes. Generate up to 1,000 UUIDs at once, then export the batch as plain text (.txt), CSV, or formatted JSON for seeding relational tables.
View all tools (15)