Advertisement

UUID Generator

Generate random v4 or time-ordered v7 UUIDs (GUIDs) - one or a thousand - and validate any UUID.

Last updated:

UUID Generator
v4 · v7 · Bulk · Validator
-
Validate / decode a UUID

How to Generate UUIDs

1
Choose Version 4 (random) or Version 7 (time-ordered)
2
Pick how many and the format (uppercase, no hyphens, braces)
3
Copy one, copy all, or download TXT or CSV

UUIDs are created on your device with a secure random generator.

UUID v4 vs v7: Which Should I Use?

VersionMade fromSortable by timeBest for
v4122 random bitsNoGeneral IDs, tokens, file names
v7Unix time in ms + random bitsYesDatabase primary keys (better index performance)
v1Time + MAC addressPartlyLegacy systems - can leak the device MAC
v5 / v3Hash of a nameNoSame input always gives the same ID

UUID Format

Can Two UUIDs Ever Be the Same?

Generate a UUID in Code

Languagev4v7
JavaScript (browser / Node 19+)crypto.randomUUID()uuid package: v7()
Pythonstr(uuid.uuid4())uuid.uuid7() (Python 3.14+)
JavaUUID.randomUUID()library (e.g. java-uuid-generator)
C# / .NETGuid.NewGuid()Guid.CreateVersion7() (.NET 9+)
PostgreSQLgen_random_uuid()uuidv7() (PostgreSQL 18+)
MySQLUUID() (v1)-
Linux / Macuuidgen-

UUIDs as Database Keys

UUID vs Other ID Types

ID typeLengthSortableNotes
Auto-incrementShortYesEasy to guess; needs one database to assign
UUID v436 charsNoRandom, universal support
UUID v736 charsYesBest UUID for primary keys
ULID26 charsYesSimilar idea to v7, Base32 text
Snowflake ID64-bit numberYesUsed by X/Twitter and Discord
NanoID21 chars (default)NoShort, URL-friendly random IDs

Related Tools

Frequently Asked Questions

How do I generate a UUID? +

One is generated as soon as the page opens. Press New for another, or choose How many for bulk.

What is the difference between UUID and GUID? +

They are the same 128-bit identifier. GUID is Microsoft's term and is often shown in uppercase with braces.

Should I use UUID v4 or v7? +

Use v7 for database primary keys because it sorts by creation time; use v4 for everything else.

Are these UUIDs truly random? +

Yes. They use your browser's cryptographically secure random generator.

Can I generate many UUIDs at once? +

Yes, up to 1,000, and download them as TXT or CSV.

How do I check if a UUID is valid? +

Paste it in Validate / decode. It shows the version, variant and, for v1 and v7, the creation time.

Can UUIDs collide? +

In practice no - the chance is astronomically small.

Is a UUID safe to use as a secret token? +

v4 UUIDs are hard to guess, but for security tokens use a purpose-built random token of 128+ bits from a secure generator.

About the creator Prajwal Karkera, creator of ToolsFlow

Built and maintained by Prajwal Karkera, a digital product specialist with 8+ years of experience in digital products. Found a problem with this tool? Let us know through the Contact page.
Read more about me →