FairSoftware

Free tool

UUID Generator (v4 & v7)

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

25479bdc-8888-48a4-8c2a-a9c561118ca2
9aaae573-04a8-459c-8ad2-70df7244b271
4509607a-57af-48fe-9cad-6232f76f2a43
892073ee-af2f-4ba7-9b14-8697440cde36
af3491f3-f0fd-4513-b5ff-959eb6d8142e
16631bb9-0ce1-4c7b-990d-978c51f72ad4
8fd9bbb2-5b26-4ffd-bc7b-d398a8fa43a2
cc730585-09d7-4743-b73a-003cfeee79d8
ccfba2a8-8e11-4030-9dd0-c8823b51ac25
f1ae77f5-0c4e-4c59-9892-061abef7f84f

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 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