550e8400-e29b -41d4-a716 f47ac10b-58cc -4372-a567 v4 v7 v1 6ba7b810-9dad-11d1 -80b4-00c04fd430c8

UUID Generator

Generate unique UUIDs (v1, v4, v7) and GUIDs online. Bulk generation, format options, copy & download. Free, instant, 100% browser-based with cryptographic randomness.

Real-time
How it works: Select a UUID version and quantity, adjust format options, then click Generate. Each UUID is generated with cryptographic randomness using crypto.getRandomValues(). Click any UUID to copy it instantly.

Settings

Format Options

UUID v4 — Random

128-bit identifier with 122 random bits. The most common UUID version, ideal for general-purpose unique identifiers. Uses cryptographically secure randomness.

Generated UUIDs

0 UUIDs
Click Generate UUIDs to create unique identifiers
Version v4
Generated 0
Bits 122
Time 0 ms

Saved UUIDs 0

No saved UUIDs yet. Click Save to keep UUIDs across sessions.

What is a UUID?

A UUID (Universally Unique Identifier) is a 128-bit number used to identify information in computer systems. Also known as GUID (Globally Unique Identifier), UUIDs follow the format xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx where M indicates the version and N indicates the variant.

UUIDs are essential for distributed systems, database primary keys, API identifiers, session tokens, and anywhere unique identification is needed without central coordination.

UUID Versions Compared

VersionMethodSortableBest For
v1Timestamp + Node IDPartiallyLegacy systems, audit trails
v4Fully random (122 bits)NoGeneral purpose, maximum uniqueness
v7Unix timestamp + randomYesDatabase PKs, time-ordered IDs
NilAll zerosN/APlaceholder, unset value
MaxAll ones (f's)N/ASentinel value, max bound
Advertisement
Ad

How to Use — 3 Simple Steps

01

Choose Version & Quantity

Select the UUID version (v1, v4, v7, Nil, Max) and how many to generate (1 to 100). UUID v4 is recommended for most use cases.

02

Adjust Format

Choose uppercase or lowercase, toggle hyphens, add braces or a prefix like urn:uuid:. Pick a separator for bulk output.

03

Generate & Copy

Click Generate UUIDs, then click any UUID to copy it. Use Copy All or Download for bulk export.

Pro Tips

Database Primary Keys

Use UUID v7 for database primary keys. Its time-ordered nature keeps B-tree indexes efficient, unlike random v4 which causes index fragmentation.

API Identifiers

UUID v4 is perfect for API resource IDs where ordering doesn't matter. Its 122 random bits make collisions virtually impossible.

Remove Hyphens for Storage

Store UUIDs without hyphens to save 4 bytes per record. Toggle "Without Hyphens" to get the compact 32-character format.

URN Format

Add the prefix urn:uuid: for the official URN namespace format defined in RFC 4122, used in XML and SOAP services.

Advertisement
Ad

Frequently Asked Questions

What is a UUID?

A UUID (Universally Unique Identifier) is a 128-bit identifier that is practically unique across all systems. It follows the format xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx where M indicates the version and N indicates the variant. UUIDs are used as database primary keys, session tokens, file names, and anywhere a unique identifier is needed without coordination between systems.

What is the difference between UUID v1, v4, and v7?

UUID v1 is time-based, combining a timestamp with the system MAC address (here simulated with random bytes for privacy). UUID v4 is entirely random, offering the highest uniqueness guarantee. UUID v7 is the newest version (RFC 9562), embedding a Unix millisecond timestamp followed by random bits, making it sortable by creation time — ideal for database keys.

How random is UUID v4?

UUID v4 has 122 random bits, giving approximately 5.3 × 10^36 possible values. The probability of generating a duplicate is astronomically low — you would need to generate about 2.71 quintillion UUIDs to have a 50% chance of a single collision. This tool uses crypto.getRandomValues() for cryptographic-quality randomness.

When should I use UUID v7 instead of v4?

Use UUID v7 when you need time-sortable IDs — for example, as database primary keys where insertion order matters for index performance (B-tree friendly). UUID v7 embeds a Unix timestamp in the most significant bits, so IDs sort chronologically. Use v4 when ordering does not matter and maximum randomness is desired.

Is my generated UUID stored anywhere?

No. All UUID generation happens entirely in your browser using JavaScript. No data is sent to any server. Your UUIDs exist only in the browser tab and, if you choose, in your local browser history (localStorage). Clearing your browser data removes all stored history.