All tools

UUID / GUID Generator

Generate v1–v8, validate, analyze, compare, collision probability, and export (JSON/CSV/SQL). 100% client-side — no UUID data sent to servers.

100% in-browserNo signupFree forever
Runs in browserNo UUID data sent to serverCryptographically secure

UUID Analyzer

Validator

Compare two UUIDs

Collision probability

UUIDs →1.00e+2%
Export:

Code examples

JavaScript (browser)
Python
Go
Node.js
PostgreSQL
C#

All generation and analysis run in your browser. No UUID data is sent to any server.

What Is a UUID?

A UUID (Universally Unique Identifier) is a 128-bit label used to identify information in computer systems. Standardised in RFC 4122, a UUID looks like:

xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx

M indicates the version; N indicates the variant. UUIDs are used as database primary keys, session IDs, transaction IDs, and anywhere a globally unique identifier is needed without coordination between systems.

How it works

Generate and Export UUIDs in Seconds

01

Choose a version

Pick v4 (random), v7 (time-sorted), v5 (namespace), or any other version.

02

Set quantity

Generate 1 or bulk-generate up to 1,000 UUIDs at once.

03

Copy or export

Copy individual UUIDs or export all to JSON, CSV, or SQL INSERT statements.

04

Validate or analyze

Paste any UUID to validate, inspect the version/variant, and check collision probability.

Use cases

When Developers Use UUIDs

🗄️

Database Primary Keys

Use v7 for time-sortable, index-friendly primary keys in Postgres, MySQL, or DynamoDB.

🔗

Distributed Systems

Generate IDs across services without a central coordinator — no collision coordination needed.

🔀

Idempotency Keys

Attach a v4 UUID to API requests to make retries safe without duplicate processing.

📂

File & Upload IDs

Name uploaded files with UUIDs to avoid collisions and prevent enumeration attacks.

🧪

Test Fixtures

Generate bulk UUIDs for seeding test databases or mock API responses.

🔁

Deterministic IDs

Use v5 (SHA-1 namespace) for stable, repeatable IDs from a URL or email.

UUID Versions Explained — v1 through v8

VersionSourceSortableBest for
v1Timestamp + node✅ TimeLegacy time-ordered systems
v3MD5 namespaceDeterministic IDs (legacy)
v4RandomMost general use cases
v5SHA-1 namespaceDeterministic IDs (preferred over v3)
v6Reordered v1✅ TimeDB-friendly v1 replacement
v7Unix ms + random✅ Time⭐ New apps, database primary keys
v8CustomApp-definedApplication-specific layouts

UUID v4 vs v7 — Which to Use for Database Keys?

v7 for all new applications. UUID v7 encodes a Unix millisecond timestamp in the first 48 bits, making it time-sortable. Records with v7 primary keys insert in chronological order, which dramatically improves B-tree index performance compared to random v4 UUIDs (which scatter inserts across the index, causing page splits). Use v4 for non-database IDs where sort order does not matter.

FAQ

Frequently Asked Questions

1What is the difference between UUID and GUID?
They are the same thing. GUID is Microsoft's term for UUID. Both follow RFC 4122 and are completely interchangeable. GUID is common in Windows/.NET; UUID is used everywhere else.
2What is the difference between UUID v4 and v7?
v4 is purely random — 122 bits of randomness. v7 encodes a Unix millisecond timestamp in the first 48 bits making it time-sortable, which significantly improves database index performance.
3Can two UUIDs ever be the same?
Practically impossible. A v4 UUID has 2^122 possible values. To have a 50% collision chance you would need to generate approximately 2.7 quintillion UUIDs. Use the collision probability calculator in the tool to see exact probabilities for your scale.
4Should I use UUID or auto-increment for database IDs?
Auto-increment is simpler for single-database setups. UUIDs are better for distributed systems, offline ID creation, merging databases, and public APIs where you don't want to expose sequential IDs. UUID v7 minimises index fragmentation vs random v4.
5What is a namespace UUID (v3 and v5)?
Namespace UUIDs are deterministic — the same namespace and name always produce the same UUID. v3 uses MD5, v5 uses SHA-1. Use them when you want stable IDs from the same input (e.g. a URL or email address).
6Are the UUIDs generated here cryptographically secure?
Yes. v4 and v7 UUIDs use the Web Crypto API's getRandomValues(), which is a cryptographically secure random number generator. Nothing is sent to any server.
Learn more

Developer Guides

Feedback for uuid_generator

Tell us what's working, what's broken, or what you wish we built next — it directly shapes our roadmap.

You make the difference

Good feedback is gold — a rough edge you hit today could be smoother for everyone tomorrow.

  • Feature ideas often jump the queue when lots of you ask.
  • Bug reports with steps get fixed faster — paste URLs or examples if you can.
  • Name and email are optional; we won't use them for anything except replying if needed.

Stay Updated

Get the latest tool updates, new features, and developer tips delivered to your inbox.

What you'll get
  • Product updates & new tools
  • JSON, API & developer tips
  • Unsubscribe anytime — no hassle

Get in touch

Feature ideas, bugs, or a quick thanks — we read every message.