Lihat halaman ini dalam Bahasa IndonesiaVer esta página en españolVer esta página em portuguêsDiese Seite auf Deutsch ansehen

UUID Generator (v4 & v7)

Create unique IDs for database rows, files, requests and test data. Version 4 is fully random; version 7 starts with the creation time, so new IDs sort after older ones and keep database indexes compact. The checker tells you the version of any UUID and when a v7 or v1 UUID was made.

Runs 100% in your browser: keys and data are never uploaded
Loading the tool…

How to use this tool

  1. Choose version 4 (random) or version 7 (time-ordered).
  2. Set how many you need, up to 100.
  3. Choose uppercase or no hyphens if your system needs them.
  4. Copy one UUID or all of them. Paste any UUID in the checker to see its version and variant.

What this tool can do

Version 4 and version 7

Both follow RFC 9562. Version 4 has 122 random bits; version 7 has a 48-bit Unix time in milliseconds followed by random bits.

Bulk and formats

Up to 100 at once, in lowercase or uppercase, with or without hyphens, ready to paste into SQL or a fixture file.

Validator

Checks a UUID or GUID (with braces or urn:uuid: too), shows its version and variant, and reads the creation time of version 7 and version 1 UUIDs.

Secure randomness

Random bits come from crypto.getRandomValues, so the IDs cannot be predicted.

Tips and common problems

v4 or v7 for a database key?

v7. Because it grows with time, new rows land at the end of the index instead of at random places, which keeps inserts fast in PostgreSQL, MySQL and SQL Server.

Does a v7 UUID reveal anything?

It shows when it was created, to the millisecond. If that must stay hidden, use v4.

GUID or UUID?

GUID is Microsoft's name for the same 128-bit identifier. Use uppercase with braces if a Windows tool asks for that form.

Frequently asked questions

Can two generated UUIDs be the same?

In practice no. With 122 random bits you would need to create billions of UUIDs every second for many years before a duplicate became likely.

Are the UUIDs generated on a server?

No. They are created in your browser and nothing is recorded.

What is the difference between UUID v4 and v7?

v4 is completely random. v7 begins with the current time, so v7 IDs sort by creation time while still having 74 random bits.

Is a UUID a good secret or API key?

No. A UUID is an identifier, not a secret. For tokens and keys use the Secret Key Generator, which gives 256 bits of randomness.