Developer ToolsA little help for every day

Search by name or task, such as JSON or percentage.

Developer Tools

UUID Generator: Random v4 and Time-Ordered v7

Generate up to 500 UUIDs at once, random v4 or time-ordered v7, in lowercase, uppercase, without hyphens or in braces, using secure browser randomness.

View all tools
Result

Press “Generate UUIDs” to see the result.

How to use UUID Generator: Random v4 and Time-Ordered v7

Set how many UUIDs you need, from 1 to 500, choose v4 or v7 and a format, then press Generate UUIDs. A list of 10 v4 UUIDs is created when the page loads.

  1. Set the quantityEnter any number from 1 to 500; larger numbers are capped at 500 per batch.
  2. Choose version and formatPick v4 (random) or v7 (time-ordered), then lowercase, uppercase, no hyphens or braces.
  3. Generate and copyPress Generate UUIDs for a new list and use Copy result to copy every value, one per line.

UUID v4 or v7: which to use

A v4 UUID is 122 random bits plus version and variant markers, so values have no order and reveal nothing about when they were made. A v7 UUID starts with a 48-bit Unix timestamp in milliseconds followed by random bits, so IDs created later sort after earlier ones. That makes v7 a good fit for database primary keys, where ordered inserts keep B-tree indexes compact, and for records you want to sort by creation time. Choose v4 when IDs should not leak timing information. Each batch of v7 values is sorted before it is shown.

Reading a UUID: version and variant digits

A UUID has 32 hex digits in five groups of 8-4-4-4-12, for example c2784756-0ca7-42ac-a794-56d0d871d55a. The first digit of the third group is the version, 4 or 7 here, and the first digit of the fourth group is the variant, always 8, 9, a or b for standard RFC 9562 UUIDs. Removing the hyphens gives a 32-character string, and Microsoft tools often show GUIDs in braces, such as {7f1a66a8-32c0-4e24-a246-10e659900ecd}. Every format holds the same 128-bit value, so pick the one your database, code or config file expects.

Accuracy and data handling

Validate the result with your project's own tests and runtime rules before using it in production. The calculation runs in your current browser; the tool code does not send the input to a processing API.

Often Used Together

Next step

FAQ

What is the difference between a UUID and a GUID?

GUID is Microsoft's name for the same 128-bit identifier. The values are interchangeable; choose the uppercase or braces format if a Windows tool or registry entry expects that style.

Can two UUIDs ever be the same?

In theory yes, in practice no. A v4 UUID has 122 random bits, so you would need around 2.7 quintillion of them for a 50% chance of a single duplicate.

How many UUIDs can I generate at once?

Up to 500 per click. Press Generate UUIDs again for another batch. Every value comes from crypto.getRandomValues in your browser, and nothing is sent or stored.

More Developer Tools

Related tools