Security & Privacy Tools

UUID / GUID Generator

Generate cryptographically secure version 4 UUIDs and GUIDs instantly with Web Crypto, bulk generation up to 100, and text download.

  • Free
  • No sign-up
  • Runs in your browser

UUID Generator

5 UUIDs generated

Runs in your browser. Your inputs never leave your device.

Quick Answer

To generate cryptographically secure UUIDs (Universally Unique Identifiers), select your desired quantity (1 to 100) and choose case, hyphen, and brace formatting. The generator uses browser Web Crypto API randomUUID to provide 122 bits of hardware-backed entropy with zero server communication.

How to Use

  1. Select Quantity. Choose how many UUIDs to generate at once, from 1 up to 100 in bulk.
  2. Choose Formatting Options. Toggle uppercase letters, hyphen delimiters, or surrounding curly braces to match your framework.
  3. Copy or Download. Click Copy All to copy all IDs to your clipboard, or click Download .txt to save them to a text file.

RFC 4122 Version 4 UUID Structure

xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx (where y ∈ {8, 9, a, b})

A Version 4 UUID consists of 128 bits: 4 bits are fixed for the version (0100 for v4), 2 bits specify the variant (10 for RFC 4122), and the remaining 122 bits are filled with cryptographically strong pseudorandom numbers. With 2¹²² possible combinations (approximately 5.3 × 10³⁶), the probability of collision is negligible.

Worked Examples

Standard Canonical UUID v4

Algorithm: RFC 4122 v4 · Format: Lowercase with hyphens · Braces: None

  1. Draw 16 cryptographically random bytes via crypto.randomUUID
  2. Verify bit 12 to 15 is 0100 (version 4)
  3. Verify bit 6 to 7 of clock sequence is 10 (RFC 4122 variant)
  4. Format as 8-4-4-4-12 hex characters

Result: c3b8f1a2-9d4e-4b6a-8f12-5e3a7c8b9d0e

Microsoft COM / C# GUID Format

Format: Uppercase with braces · Delimiters: Hyphens included

  1. Generate standard 128-bit random byte payload
  2. Convert all alphanumeric characters to uppercase
  3. Wrap resulting string in curly braces

Result: {C3B8F1A2-9D4E-4B6A-8F12-5E3A7C8B9D0E}

Raw Database Key Without Hyphens

Format: 32-character compact hex · Hyphens: Excluded · Casing: Lowercase

  1. Generate 128-bit UUID
  2. Strip all 4 hyphen delimiter characters
  3. Output continuous 32-character hexadecimal string

Result: c3b8f1a29d4e4b6a8f125e3a7c8b9d0e

Common Mistakes to Avoid

  • Using Math.random() for UUIDs: Standard JavaScript Math.random() is pseudorandom and predictable. Always require crypto.randomUUID() or crypto.getRandomValues() to prevent identifier collision and forgery.
  • Treating UUIDs as Secret Passwords: UUIDs are unique identifiers, not authentication tokens or cryptographic keys. They lack cryptographic hashing or salt and should not substitute for secrets.
  • Assuming Sequential Monotonicity: Version 4 UUIDs are completely random and non-sequential. Using them as clustered database primary keys without sorting indexes can cause B-tree fragmentation.
  • Case-Sensitive Database Lookups: RFC 4122 specifies that hexadecimal comparisons must be case-insensitive. Failing to normalize case when querying databases can lead to missing records.

Frequently Asked Questions

What is a Version 4 UUID?

A Version 4 UUID is a 128-bit universally unique identifier generated using random numbers. It contains 122 random bits, giving 5.3 × 10³⁶ possible values with virtually zero probability of duplicate generation.

What is the difference between a UUID and a GUID?

GUID (Globally Unique Identifier) is Microsoft's implementation term for UUID (Universally Unique Identifier). In modern software, both refer to identical 128-bit RFC 4122 compliant structures.

How are UUIDs generated securely in this tool?

This tool uses the native browser Web Crypto API (crypto.randomUUID). Entropy is gathered directly from your operating system's cryptographic random hardware generator.

Can two UUID v4 values collide?

While theoretically possible, generating 1 billion UUIDs per second for 100 years yields less than a 50% chance of a single collision. For practical software engineering, UUIDs are universally unique.

Are generated UUIDs transmitted or logged?

Never. Generation executes 100% client-side inside your browser memory. No generated keys or logs ever touch external servers.

Sources & References