UUID generator: v4 and v7

Generate one or many UUIDs (GUIDs) — version 4 (random) or version 7 (time-ordered). Everything is generated in your browser.

Version

What is a UUID?

A UUID (also called a GUID) is a 128-bit identifier like 550e8400-e29b-41d4-a716-446655440000. It can be created anywhere without a central counter, and the chance of two UUIDs colliding is vanishingly small. UUIDs are used as database keys and as IDs for orders, files and events.

v4 or v7?

How to use

Pick a version and how many you need — the UUIDs appear right away. You can switch to uppercase or remove the hyphens. Everything is generated in your browser with crypto.getRandomValues.

FAQ

Can a UUID repeat? In theory yes, in practice no: you’d need to generate about 2.7 quintillion (2.7 × 10¹⁸) v4 UUIDs for a 50% chance of a single duplicate.

What’s the difference between a UUID and a GUID? None — GUID is Microsoft’s name for the same format.

Can I get the creation time from a v7 UUID? Yes: the first 12 hex digits are the time in milliseconds since January 1, 1970. Convert it with the Unix timestamp converter in milliseconds mode.