GUID/UUID Generator

1–100 per batch

Output Formats

Format preview

3f6d8a1e-4b5c-4d2e-9f0a-1b2c3d4e5f6a

Generated GUIDs0

No GUIDs generated yet

About GUIDs/UUIDs

  • Globally unique IDs. Collision probability is negligible
  • Uses cryptographically secure random numbers
  • Output formats for common programming languages
  • For database keys, session IDs, and unique references

About this tool

This tool generates random version 4 UUIDs, also called GUIDs, in batches of up to 100. Developers use them as database keys, request IDs, and file names. A UUID (universally unique identifier) is a 128-bit value written as 32 hexadecimal digits in five hyphen-separated groups; GUID is Microsoft's name for the same format. In version 4, 122 of the 128 bits are random.

Because every value is created locally in your browser, you can produce IDs for test fixtures, seed data, or configuration files without sending anything to a server. Each batch is independent of the last one, so generating again gives a completely new set instead of continuing a sequence.

How it works

Set the quantity with the minus and plus buttons, type a number from 1 to 100, or pick a preset of 1, 5, 10, 25, or 50. Toggle the output formats: standard hyphens, uppercase letters, and curly braces; the format preview shows the result. Select Generate GUIDs to create a new batch. Click any value to copy it, or use Copy all or Download .txt.

The format switches change only how the same 128 bits are written. Turning hyphens off gives the compact 32-character form that some databases and URLs prefer, uppercase matches the style common in Windows and .NET tooling, and braces produce the {…} form used in the Windows registry and Visual Studio project files. RFC 9562 recommends lowercase output and case-insensitive input, so keep the default unless the system you are pasting into expects something else.

Example

The standard form of a v4 UUID looks like 3f6d8a1e-4b5c-4d2e-9f0a-1b2c3d4e5f6a: the first digit of the third group is always 4, marking the version, and the first digit of the fourth group is 8, 9, a, or b, marking the variant. With hyphens off and uppercase and braces on, the same value is shown as {3F6D8A1E4B5C4D2E9F0A1B2C3D4E5F6A}.

Length is a quick sanity check when a system rejects an ID. The standard form has 36 characters (32 digits plus 4 hyphens), the compact form has 32, and the braced form adds 2 more. If you generate 25 values and choose Download .txt, the file contains one UUID per line, ready to paste into a script or spreadsheet.

Assumptions and limits

The tool generates only version 4 (random) UUIDs, using the browser's crypto.randomUUID function. Very old browsers without that function fall back to Math.random, which is not cryptographically secure. Formatting options change only how values are displayed and copied. Time-ordered versions such as v1 and v7 are not available.

Frequently asked questions

What is the difference between a UUID and a GUID?

They are the same 128-bit identifier format. UUID is the term used in the RFC 9562 standard, while GUID is the name Microsoft uses in Windows and .NET, where values are often shown in uppercase with braces. A value generated here works in either context, including SQL Server uniqueidentifier and PostgreSQL uuid columns.

Are UUID v4 collisions possible?

In theory yes, but with 122 random bits the chance is negligible. You would need to generate about 2.7 quintillion v4 UUIDs to reach a 50% chance of a single duplicate. In real systems, duplicates almost always come from bugs, such as copying the same value twice or a broken random source, rather than from chance.

Is a UUID v4 safe to use as a secret token?

A v4 UUID from a cryptographically secure generator is hard to guess, but the UUID standard does not promise secrecy. For passwords, API keys, or session secrets, use a purpose-built random token generator.

Should I use UUID v4 or v7 for database primary keys?

Version 7 UUIDs start with a timestamp, so new keys sort in creation order and cause less index fragmentation in B-tree indexes. Version 4 is fully random and reveals nothing about when it was created. Choose v4 when you prefer not to expose creation time or when insert order does not matter; this tool generates v4 only.

How do I generate a UUID in code?

Most platforms have a built-in function. Modern JavaScript offers crypto.randomUUID(), Python has uuid.uuid4() in the uuid module, and .NET provides Guid.NewGuid(). This page is useful when you need a handful of values by hand, for example for a config file, a test case, or a manual database insert.

Link with your values

Add these parameters to this page’s address to open it with the values filled in, for example to share a calculation or to link to it from an AI assistant. The result is calculated in the browser: the page HTML shows an example for the default values, and the tool sets the data-url-params attribute once the link’s values are applied.

ParameterValueIf omitted
countQuantitywhole number; allowed 1–100default 1
uppercaseUppercasetrue or falsedefault false
hyphensStandard (Hyphens)true or falsedefault true
bracesBracestrue or falsedefault false

Examples

  • ?count=25&uppercase=true
  • ?count=5&hyphens=false&braces=true

Write decimals with a point. Encode a space as %20, + as %2B, # as %23 and & as %26.

Result elements: [data-result-block="guids"]