GUID Generator

GUID Generator

Generate one or more GUIDs (UUIDs v4) instantly in various formats.

About the GUID / UUID Generator

A GUID (globally unique identifier) — called a UUID (universally unique identifier) outside the Microsoft world — is a 128-bit value written as 32 hexadecimal digits in five groups, such as 3f2b8c1e-9d4a-4f7b-a6e2-5c1d0b9e8a77. Applications use them as database keys, correlation IDs, file names and idempotency keys because they can be created anywhere, without a central counter, with practically no chance of a collision.

This generator creates random version 4 UUIDs using your browser's cryptographically secure random number generator (crypto.randomUUID()). Generate up to 500 at once and pick the format you need: standard lowercase, uppercase, without dashes, wrapped in braces, or as a ready-to-paste C# new Guid("...") expression.

Common uses

  • Creating primary keys or seed data for a database.
  • Generating correlation or request IDs for logging and tracing.
  • Producing unique test values for unit and integration tests.
  • Filling in ProjectGuid, COM class IDs or other configuration that requires a GUID.

How to use it

  1. Set the Count (1–500).
  2. Choose a Format.
  3. Press Generate, then Copy All or Save the list. A fresh batch is created every time the page loads.

Example

The same random UUID in each available format:

Input
Count: 1
Output
Standard:   9b2e4c1a-7f3d-4e8b-b5a6-1c0d2e3f4a5b
Uppercase:  9B2E4C1A-7F3D-4E8B-B5A6-1C0D2E3F4A5B
No dashes:  9b2e4c1a7f3d4e8bb5a61c0d2e3f4a5b
Braces:     {9b2e4c1a-7f3d-4e8b-b5a6-1c0d2e3f4a5b}
C#:         new Guid("9b2e4c1a-7f3d-4e8b-b5a6-1c0d2e3f4a5b")

Tips and common pitfalls

  • In a version 4 UUID, the 13th hex digit is always 4 (the version) and the 17th is 8, 9, a or b (the variant). The other 122 bits are random.
  • Random UUIDs as clustered primary keys cause index fragmentation in SQL Server and MySQL because inserts land in random places. Consider time-ordered UUIDv7 or NEWSEQUENTIALID() for heavy-insert tables.
  • UUIDs are unique but not secret. Do not use them as the only protection for private links or password-reset tokens unless they are generated with a secure random source and expire.
  • Store UUIDs in a native uuid / uniqueidentifier column (16 bytes) instead of a 36-character string.

Frequently asked questions

Is there any difference between a GUID and a UUID?

In practice, no — they are the same 128-bit format. "GUID" is Microsoft's name; "UUID" is the name used in the RFC 9562 standard and most other platforms.

Can two generated UUIDs ever be the same?

In theory yes, in practice no. With 122 random bits you would need to generate about a billion UUIDs per second for around 85 years to reach a 50% chance of a single collision.

Are these UUIDs generated on a server?

No. They are created in your browser using the Web Crypto API and never sent anywhere.

How do I generate a UUID in code?

C#: Guid.NewGuid(); JavaScript: crypto.randomUUID(); Python: uuid.uuid4(); SQL Server: NEWID(); PostgreSQL: gen_random_uuid().

Related