Free · No sign-up · Private

UUID Generator

Generate one or many RFC 4122 version 4 UUIDs.

Quick answer

Choose how many UUIDs you need and press Generate. Each one is a random version 4 UUID such as 3f2b8c4e-1d7a-4b9e-8c21-5a6f0e9d4c37, created with crypto.randomUUID. It has 122 random bits, so the chance of two ever matching is negligible.

UUID GeneratorRuns in your browser
0 UUIDs

Step by step

How to use the UUID Generator

01

Choose how many UUIDs to generate.

02

Copy the list of unique identifiers.

Worked examples

UUID format

PartLengthMeaning
8-4-4-4-12 hex digits36 charactersStandard text form
13th digit1Version (always 4)
17th digit1Variant (8, 9, a or b)
Random bits122Unique part

Good to know

UUID or GUID?

They are the same thing. GUID is Microsoft’s name for a UUID; both follow RFC 4122 (now RFC 9562).

When to use version 4

Version 4 UUIDs suit database keys, file names and request IDs where you need uniqueness without coordination. If you need IDs that sort by creation time, version 7 UUIDs are designed for that.

Using UUIDs as database keys

Random UUIDs let separate servers or offline devices create IDs without asking a central database, and they do not reveal how many records exist. Their downside is size and randomness: 16 bytes per key and inserts spread across an index. Many databases store them as a native UUID type rather than as 36-character text to save space.

FAQ

Frequently asked questions

Can two UUIDs be the same?

In theory yes, in practice no: you would need to generate billions per second for many years before a duplicate became likely.

Are UUIDs secret?

They are hard to guess but not meant as passwords or security tokens.