UUID Generator
Generate random UUID v4 or time-ordered UUID v7 values, one or up to 1,000 at a time.
RFC 9562v4 and v7 · up to 1,000 per batch
Runs in your browser. Nothing you enter is sent anywhere. How to check
1.How to use
- Choose v4 or v7, and how many UUIDs you need (1 to 1,000).
- Press Generate. Each press makes a new set.
- Copy the values. When you generate more than one, Download saves them as
uuids.txt, one per line.
One v4 value is ready when the page opens. Changing an option generates a new set straight away. Uppercase and Hyphens change only how the values are written.
2.Examples
Both examples are taken from RFC 9562, Appendix A.
A v4 value
919108f7-52d1-4320-9bac-f847db4148a8
4(the first digit of the third group) is the version.9(the first digit of the fourth group) holds the variant. It is always8,9,aorb.- The other 122 bits are random.
A v7 value
017f22e2-79b0-7cc3-98c4-dc0c0c07398f
017f22e2-79b0(the first 48 bits) is the Unix time in milliseconds: 1645557742000, which is 22 February 2022, 19:22:22 UTC.7is the version. The next three digits (cc3) are the rand_a field. This page uses them as a counter that keeps values in order when several are generated in the same millisecond.9holds the variant, as in v4. The last 62 bits are random.
3.Options explained
v4 or v7
A v4 UUID is made almost entirely of random bits (RFC 9562 §5.4). A v7 UUID starts with the time it was created, in milliseconds, followed by a counter and random bits (RFC 9562 §5.7). Values generated later sort after earlier ones, including values generated in the same millisecond (RFC 9562 §6.2).
Why v7 suits database primary keys
Databases usually keep primary keys in a sorted index. Random v4 keys land anywhere in that index, so each insert touches a different page. v7 keys arrive in order, so new rows go to the end of the index. This keeps the index compact and the recently used pages in memory.
Uppercase and Hyphens
UUIDs are written in lowercase with hyphens in the 8-4-4-4-12 pattern by default. Some systems expect uppercase. Turn off Hyphens to get 32 hexadecimal characters with no separators.
4.Limits
- Up to 1,000 UUIDs per batch. Press Generate again for more.
- Versions 4 and 7 only. Other versions, and checking an existing UUID, are not available.
- v7 uses your device clock. If the clock is set before 1970, v7 is unavailable.
5.FAQ
What is the difference between a UUID and a GUID?
None in practice. GUID is the name Microsoft uses for the same 128-bit identifier. The values from this page work wherever a GUID is expected.
Can two UUIDs collide?
In theory, yes; in practice, no. A v4 value has 122 random bits. You would need to generate about 2.7 × 1018 values to have a 50% chance of a single duplicate. v7 values from different milliseconds can never be equal, and values within one millisecond still carry 62 or more random bits.
Which version should I use?
Use v7 for database keys and anywhere sorting by creation time helps. Use v4 when the value must not reveal when it was created: anyone can read the time inside a v7 value.
Are these UUIDs generated on a server?
No. They are generated in your browser with its secure random source (crypto.getRandomValues). Nothing is sent or stored. The privacy pageshows how to confirm this in your browser's Network tab.