Skip to content
APK Peer

UUID Generator

Free · runs in your browser · nothing uploaded

Quick answer

This UUID generator creates random version 4 UUIDs, also called GUIDs, using your browser's cryptographically secure random number generator. Make one or up to 500 at a time, switch to uppercase or remove hyphens, and copy them all in one tap. They're ready for database keys, test data and app identifiers.

How to generate UUIDs

  1. Set How many (1 to 500).
  2. Tick Uppercase or No hyphens if your system needs that format.
  3. Tap Generate, then Copy all.

Each UUID is a random version 4 identifier created by your browser's built-in crypto.randomUUID() function, which uses a cryptographically secure random source.

What a UUID looks like

3f1c9a2e-7b4d-4e8a-9c1f-2d6b8e0a5c7f

That's 32 hexadecimal digits in five groups: 8-4-4-4-12. In a version 4 UUID, the first digit of the third group is always 4, and the first digit of the fourth group is always 8, 9, a or b. The other 122 bits are random.

When to use UUIDs

UseWhy UUIDs help
Database primary keysIDs can be created anywhere, even offline, without a central counter
Distributed systemsSeveral servers can create records without clashing
File and upload namesAvoids collisions and doesn't reveal how many files exist
Test dataRealistic unique IDs for fixtures and mock APIs

Trade-offs

UUIDs are long, which makes them awkward to read aloud or type. Because version 4 UUIDs are random, they also don't sort by creation time, which can make some database indexes less efficient. Newer formats such as UUID version 7 add a timestamp at the start for that reason; if your database supports it, consider version 7 for keys.

Are they really unique?

Practically, yes. With 122 random bits there are about 5.3 × 10³⁶ possible values. You'd need to generate around a billion UUIDs per second for many decades before a single duplicate became likely.

For random numbers in a range, use the random number generator. For secret values such as passwords, use the password generator.

Frequently asked questions

What is a UUID?

A UUID (universally unique identifier) is a 128-bit value written as 32 hexadecimal characters in five groups, like 3f1c9a2e-7b4d-4e8a-9c1f-2d6b8e0a5c7f. They let different systems create IDs independently without clashing.

Can two UUIDs ever be the same?

In theory yes, but in practice no. A version 4 UUID has 122 random bits, so you'd need to generate billions per second for many years before a duplicate became likely.

What's the difference between a UUID and a GUID?

They're the same thing. GUID (globally unique identifier) is Microsoft's name for UUIDs. The format and the way version 4 values are generated are identical.

Last updated by the APKPeer Editorial Team. Read our privacy policy for how the site handles data.