Developer ToolboxRFC 9562
New here? Take a 30-second tour of how this page works.

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

UUID

Runs in your browser. Nothing you enter is sent anywhere. How to check

1.How to use

  1. Choose v4 or v7, and how many UUIDs you need (1 to 1,000).
  2. Press Generate. Each press makes a new set.
  3. Copy the values. When you generate more than one, Download saves them asuuids.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

A v7 value

017f22e2-79b0-7cc3-98c4-dc0c0c07398f

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

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.