Skip to main content
Utulio
Developer Tools

UUID Generator

Generate cryptographically random UUID v4 identifiers using crypto.randomUUID(). Generate up to 100 at once with formatting options: uppercase, no hyphens, or wrapped in quotes.

uppercaseUppercasenoHyphensNo HyphenswithQuotesWith Quotes
e902a442-ba08-4995-9366-fa283e24eb93

Generated using crypto.randomUUID() — cryptographically random, version 4 UUID.

UUID Format and Usage

A standard UUID looks like: 550e8400-e29b-41d4-a716-446655440000. The format is 8-4-4-4-12 hexadecimal characters. The third group's first digit indicates the version (4 for v4), and the fourth group's first digit is 8, 9, a, or b (the variant bits).

This generator uses the native crypto.randomUUID() API, which is cryptographically secure and available in all modern browsers and Node.js 14.17+. It is always preferable to Math.random() for security-sensitive contexts.

Format options: databases like PostgreSQL store UUIDs natively; some databases prefer uppercase or no hyphens. Use the formatting options to match your specific requirements.

UUID Generator FAQs

What is a UUID?
A UUID (Universally Unique Identifier) is a 128-bit identifier standardized by RFC 4122. It is represented as 32 hexadecimal digits in the format 8-4-4-4-12 (e.g., 550e8400-e29b-41d4-a716-446655440000). UUIDs are designed to be unique across space and time without requiring a central authority.
What is UUID v4?
UUID v4 is randomly generated — all 128 bits are random except for 4 bits that indicate the version (version 4) and 2 bits for the variant. This is the most commonly used UUID version for generating unique IDs in applications. The probability of two v4 UUIDs colliding is astronomically low (1 in 2^122 ≈ 5.3 × 10^36 combinations).
What is the difference between UUID and GUID?
GUID (Globally Unique Identifier) is Microsoft's implementation of UUID. They are functionally equivalent and use the same format. GUID is the term used in Microsoft technologies (.NET, SQL Server), while UUID is the term used in the open-source and Unix world. Both are 128-bit identifiers.
When should I use a UUID?
Use UUIDs as primary keys when you need to generate IDs client-side or across distributed systems without coordination. Common uses: database primary keys (avoids sequential ID guessing), file names for uploads, session tokens (though dedicated token generation is better), and correlation IDs for distributed tracing.
Are UUID v4 values truly unique?
In practice, yes. UUID v4 uses 122 bits of randomness. If you generated 1 billion UUIDs per second, it would take approximately 86 years before the probability of a collision exceeds 50%. For all practical application purposes, v4 UUIDs are unique.
What is crypto.randomUUID()?
crypto.randomUUID() is a native browser and Node.js API that generates cryptographically secure UUID v4 values. It uses the platform's secure random number generator (CSPRNG), making it more secure than Math.random()-based approaches. This tool uses crypto.randomUUID() for all UUID generation.

Related Tools