FairSoftware

Free tool

UUID Generator (v4 & v7)

Generate random v4 or time-ordered v7 UUIDs, singly or in bulk.

f02500d8-b713-4990-a305-e49759da567a
6fcb895c-5998-437a-a53c-bce135f378b3
f65c9b48-5dc8-425e-bfc7-ab363dc0f683
41aa524d-49f4-4557-8abe-99b4a906f3a8
02e90947-f7f8-4193-8cd9-105c6bdc039c
8d231769-db7b-4ea4-89ee-42065c14d102
d8b64443-52ed-49b1-80c5-9d81bed0857f
b54c3a60-9c3e-4daf-8ff5-cc26304edf14
db4ae687-438b-4006-898e-5c2ea8296abe
7fc759c5-2903-464a-9a90-ef36cdfe5c7f

v4 vs v7, in short

UUID v4 is 122 bits of pure randomness with no ordering — great for opacity, poor for database indexes because inserts land in random places. UUID v7 puts a Unix millisecond timestamp in the leading 48 bits and fills the rest randomly, so identifiers generated later always sort after earlier ones, which keeps B-tree indexes append-mostly and far faster under heavy insert load.

Related free tools

This tool is free and unrelated to what we sell. FairSoftware supplies genuine one-off Microsoft licences — Office licences and Windows licences, delivered by email.

About this tool

Generate UUIDs for databases, test fixtures, message keys or anything else that needs a unique identifier. Version 4 is fully random; version 7 embeds a millisecond timestamp in its leading bits, so identifiers sort chronologically — which keeps database indexes far happier under insert load. Generate one or thousands, with formatting options and a download.

How to use the Free UUID Generator — v4 and v7

  1. Pick version 4 (random) or version 7 (time-ordered).
  2. Set how many identifiers you need.
  3. Choose formatting: uppercase, hyphens, or wrapped in braces.
  4. Click Generate.
  5. Copy the list to the clipboard or download it as a text file.

Frequently asked questions

What is the difference between UUID v4 and v7?
v4 is 122 bits of randomness with no ordering. v7 puts a Unix millisecond timestamp in the first 48 bits and fills the rest randomly, so identifiers generated later sort after earlier ones.
Which should I use as a database primary key?
v7. Because the values increase over time, index pages fill sequentially instead of fragmenting the way random v4 keys do.
Are these random values safe?
They come from the browser's cryptographic random number generator, and everything is generated locally — nothing is transmitted or logged.
Can two people generate the same UUID?
The probability is negligible: v4 has 2^122 possible values, and v7 additionally separates identifiers by timestamp.

Related free tools

← Browse all free online tools