UUID/GUID Generator
Generate cryptographically secure UUID v4 or time-based UUID v1 values in bulk. Customize layout options and copy instantly.
âī¸ Generator Settings
đ Generated Results
RFC 4122 / RFC 9562 Universally Unique Identifier (UUID) Specifications
A Universally Unique Identifier (UUID), also known in Microsoft ecosystems as a Globally Unique Identifier (GUID), is a 128-bit label standardized by RFC 4122 and recently updated by RFC 9562. UUIDs enable distributed systems to generate unique primary keys and entity identifiers without coordinating with a central registration authority or database sequencer.
A standard canonical UUID is represented as 32 hexadecimal characters grouped into five hyphen-separated blocks in the 8-4-4-4-12 format (36 characters total), such as f47ac10b-58cc-4372-a567-0e02b2c3d479.
Our generator utilizes the browser's native Cryptographically Secure Pseudo-Random Number Generator (window.crypto.getRandomValues) to guarantee genuine high-entropy UUID v4 generation, adhering strictly to RFC specifications.
Understanding UUID Versions: v1 vs v4 vs v7
Different UUID versions serve specific architectural needs:
- UUID v1 (Timestamp + MAC Address): Uses 60-bit system timestamp and 48-bit network node MAC address. Rarely used in modern web systems due to privacy leaks revealing physical network hardware addresses.
- UUID v4 (Random): 122 bits of pure cryptographic entropy. The probability of two UUID v4 values colliding is astronomically low (1 in 5.3 x 10^36), equivalent to generating 1 billion UUIDs every second for 85 years before a 50% collision probability.
- UUID v7 (Time-Ordered + Random - RFC 9562): The modern standard for database primary keys. Combines a 48-bit millisecond Unix timestamp with 74 bits of random entropy, ensuring chronological B-tree database index sorting while preventing page splits and fragmentation.
Programmatic UUID Generation in JavaScript, Python & CLI
// Modern JavaScript (Native Web Crypto - Node.js 16+ & Browsers)
const uuid = crypto.randomUUID();
console.log("UUID v4:", uuid);
# Python 3 uuid module
import uuid
v4 = uuid.uuid4()
print("UUID v4:", str(v4))
# Bash / Terminal CLI
# On macOS / Linux
uuidgen | tr '[:upper:]' '[:lower:]'
Why Math.random() Must Never Be Used for UUIDs
Naive UUID generators that rely on Math.random() are severely insecure. Math.random() uses a deterministic pseudorandom number generator (like xorshift128+) that can be easily predicted by observing past outputs, leading to predictable session IDs and account takeover vulnerabilities. Always enforce CSPRNG (crypto.randomUUID()).
Related Utilities & Productivity
Chain UUID/GUID Generator with these complementary client-side utilities from our Utilities & Productivity collection:
Generate secure random passwords locally with custom parameters and a strength meter. Compute SHA-256, SHA-512, and MD5 hashes instantly.
Generate cryptographically secure random numbers offline. Customize range (min/max), quantity, sorting, separators, and allow/prevent duplicates. Uses Web Crypto API.
Generate custom barcodes online instantly. Supports CODE128, CODE39, EAN-13, UPC, ITF, and more. Customize colors, sizes, text visibility and download in SVG or PNG. 100% offline.
Calculate and scale aspect ratios easily. Simplify width and height into standard ratios (16:9, 4:3, 1:1), compute new scaled dimensions, and preview shapes visually. 100% offline.
Frequently Asked Questions
In practical terms, no. With 122 bits of random entropy, the odds of a collision among trillions of generated IDs are virtually zero.
Yes. Our tool allows you to generate up to 500 UUIDs in a single click, with options for uppercase formatting, hyphen removal, or JSON array output.
In a UUID v4, the 13th character is always "4" (indicating version 4), and the 17th character is always "8", "9", "a", or "b" (indicating RFC 4122 variant 1).
Because UUID v7 starts with a timestamp, new records are inserted sequentially at the end of database B-trees, eliminating expensive page splits caused by random UUID v4 inserts.
No. All UUIDs are generated in your local browser using window.crypto.randomUUID() and are never stored or logged.