Use this generator for v4 test-record identifiers. It offers a batch count and uppercase display, not v7 generation or a remove-hyphens option.

Test input and settings

xxxxxxxx-xxxx-4xxx-[8|9|a|b]xxx-xxxxxxxxxxxx
Open the tool and follow the steps below

Check a batch without expecting fixed values

Set count to 3 and generate. Each value should have 36 characters, four hyphens and hexadecimal groups of 8-4-4-4-12. The third group starts with 4; the fourth with 8, 9, a or b. Generate again and compare the batches. Shape and a small no-duplicates check do not establish random-source quality.

Estimate collision risk with explicit assumptions

For n independent uniform v4 draws from N = 2^122 possibilities, the birthday approximation is p ≈ 1 − exp(−n(n−1)/(2N)). At n = 10^9, p is approximately 9.4 × 10^-20. The 50% point is about 2.7 × 10^18 draws, or about 86 years at 10^9 per second—not trillions of years. These assumptions exclude faulty generators and copied records.

Choose storage and access rules separately

Retain a uniqueness constraint and handle a duplicate insert. V4 sorting is not creation order; store a timestamp when you need it. If index locality motivates v7, evaluate a v7 implementation in your database workload; this generator does not implement it. Knowing or guessing a record ID must never bypass authorization.

Completion criteria and limits

A generated identifier is not a session-management system. Use your authentication framework for session credentials and enforce access checks on every record.

Technical reference

Back to tasks and guides · Report an incorrect instruction or result