UUID / GUID Generator

Generate random, version 4 UUIDs (also called GUIDs) instantly. Runs entirely in your browser using the same cryptographically secure randomness built into it.

b1992f87-85e9-42b4-9c65-bfa54e477d0a

How to use this

Set how many you need, up to 100 at a time, and click Generate. Each one is a version 4 UUID, meaning it's built from random data rather than your device's identity or the current time, which is the version almost every modern system actually wants. Toggle uppercase or remove dashes if your target system expects a different format, then copy individual values or everything at once.

Anatomy of a version 4 UUID

A UUID is 32 hexadecimal digits shown in five groups: 8-4-4-4-12, for 128 bits in total. In a version 4 UUID, two parts are fixed. The first digit of the third group is always 4; that is the version marker. The first digit of the fourth group is always 8, 9, a or b; that is the variant marker. Every other digit, 122 bits in all, is random, which is why two UUIDs essentially never repeat: you would need to generate around 2.3 billion billion of them before the odds of a single collision reached 50 percent. For any real system, treating a v4 UUID as unique is safe.

UUID or auto-increment ID?

A database counter (1, 2, 3...) is simpler and sorts naturally, and for a single small database it is often the right choice. UUIDs earn their keep in three situations. Multiple writers: phones, servers or offline apps can each mint IDs without asking a central counter, and the records merge later without clashes. Public URLs: /orders/1042 tells a stranger how many orders you have and invites them to try /orders/1043; a UUID in the URL leaks nothing. Merging data: two databases that both start counting at 1 collide everywhere; UUID-keyed tables combine cleanly. The trade-off is size and readability: a UUID takes 16 bytes against a counter's 4 or 8, and nobody can read one aloud over the phone.

Frequently asked questions

What is the difference between a UUID and a GUID?

Nothing in practice. GUID is Microsoft's name for the same 128-bit identifier format; a GUID generated on Windows and a UUID generated anywhere else follow the same structure.

Are UUIDs case-sensitive?

The hexadecimal digits are not: the specification treats upper and lower case as the same value, and most systems store and display UUIDs in lowercase. Comparisons should be done case-insensitively.

What kind of UUIDs does this generator create?

Version 4 UUIDs, which are built from random data rather than your device or the current time. This is the version most modern systems expect.

How many UUIDs can I generate at once?

Up to 100 at a time. You can copy individual values or everything at once.

Can I change the format?

Yes. Toggle uppercase or remove the dashes if your system expects a different format.

Is a UUID the same as a GUID?

Yes. GUID is simply the name Microsoft uses for a UUID, so the values from this tool work for both.