{"docs_business":{"tools":{"uuid":{"content":{"title":"UUID v4: format, random generation and collision risk","intro":"A version 4 UUID is a 128-bit identifier in which 122 bits are random, written as 32 hexadecimal digits in 5 groups (8-4-4-4-12). The tool produces 1 to 100 at a time with your browser's cryptographic generator and sends nothing to a server. The chance of a duplicate is negligible: about 1 in 10 billion billion for a billion identifiers.","details":"

What the tool does

Each identifier comes from the browser's crypto.randomUUID() function, which returns a lowercase version 4 UUID such as 3f2b8c1e-9a4d-4e7b-b2c5-6d1f0a9e8c47. The 13th digit is always 4 (the version) and the 17th is 8, 9, a or b (the variant), leaving 122 random bits. The list is regenerated when you change the quantity or click Generate; Copy All puts one UUID per line on the clipboard.

Chance of a duplicate

With n identifiers, the probability that at least two match is roughly n² ÷ 2123. For a billion UUIDs: 1018 ÷ 1.06 × 1037 ≈ 9.4 × 10-20. You would need about 2.7 × 1018 UUIDs to reach even odds.

Limits

Sources and dates: RFC 9562 \"Universally Unique IDentifiers (UUIDs)\", IETF, May 2024, which obsoletes RFC 4122; Web Crypto specification of randomUUID() (checked 14/10/2026).

"},"faqs":[{"question":"Can two v4 UUIDs be identical?","answer":"In theory yes, in practice no: each v4 UUID holds 122 random bits, or 5.3 × 10³⁶ possible values. For a billion identifiers, the probability of a duplicate is about 9.4 × 10⁻²⁰. You would need around 2.7 × 10¹⁸ of them to reach even odds."},{"question":"What is the difference between a UUID and a GUID?","answer":"None in substance: GUID is Microsoft's name for the same 128-bit identifier. The 8-4-4-4-12 hexadecimal layout is identical. Microsoft often shows it in uppercase inside braces, while this tool outputs lowercase without braces."},{"question":"How do I recognise a version 4 UUID?","answer":"The first digit of the third group is 4, and the first digit of the fourth group is 8, 9, a or b. Example: 3f2b8c1e-9a4d-4e7b-b2c5-6d1f0a9e8c47. A v7 UUID, by contrast, starts with a timestamp and has a 7 in that position."},{"question":"Should I use a v4 UUID as a primary key?","answer":"You can, but random values land anywhere in the index, which fragments it on large tables. RFC 9562 (May 2024) added version 7, which is time-ordered and better suited to this use. This tool only generates v4."}]}}}}