FREE
Loading…
Generate UUID v4 values using the Web Crypto API. Supports bulk generation, uppercase, and no-hyphens options.
UUID Generator
Processing…
FREE
Loading…
UUID Generator is a free online tool that produces RFC 4122 version 4 UUIDs using crypto.randomUUID() where the browser supports it, falling back to a manual crypto.getRandomValues()-based implementation otherwise. Generate anywhere from 1 to 100 at once, toggle uppercase output, toggle hyphens on or off, and copy the entire batch or any single value in one click.
A UUID (Universally Unique Identifier, also called a GUID — Globally Unique Identifier — in Microsoft ecosystems, the two terms refer to the same 128-bit format) exists to solve a specific coordination problem: generating an identifier that is guaranteed unique without any central authority handing out the next available number. An auto-incrementing integer primary key works fine on a single database, but the moment you have multiple independent services, offline clients, or sharded databases all creating new records simultaneously, nobody can hand out sequential numbers without a coordination bottleneck. UUIDs sidestep this entirely — any machine, anywhere, with no network connection and no shared state, can generate an identifier so unlikely to collide with any other UUID ever generated that the probability is treated as zero for all practical purposes.
There are several UUID versions defined by RFC 4122, and they are not interchangeable in what they reveal or guarantee. Version 1 is time-based and incorporates the generating machine's MAC address, which made it useful historically for sortable identifiers but is now largely avoided because embedding a MAC address leaks identifying hardware information. Versions 3 and 5 are deterministic — they hash a namespace and a name together (MD5 for v3, SHA-1 for v5), so the same input always produces the same UUID, which is useful for generating a stable ID from an existing value like a URL or email address rather than for creating a new random one. Version 4, the version this tool generates exclusively, is the simplest and by far the most common in modern application development: it is 122 bits of pure randomness with no embedded machine information, no timestamp, and no dependency on external input, which is exactly what you want for a general-purpose unique identifier. Newer time-ordered variants (v6 and v7) exist in more recent specifications to combine v4-style randomness with a sortable timestamp prefix, addressing the database index fragmentation that purely random v4 values can cause on very large tables — this tool sticks to standard v4 since it remains the most broadly supported and requested format across programming languages and databases.
The math behind why v4 collisions are considered practically impossible is worth being concrete about: of the 128 total bits, 6 are fixed (4 bits set the version to 0100, 2 bits set the variant to 10), leaving 122 bits of actual randomness. That is roughly 5.3 × 10^36 possible values. Using the birthday-paradox approximation, you would need to generate about 2.71 quintillion UUIDs before the probability of a single collision reached just 50% — a rate of a billion UUIDs generated every second would still take over 85 years to reach that point. This is why UUID v4 is trusted as a primary key in distributed databases, a correlation ID in distributed tracing, and a resource identifier in public APIs without any deduplication check against existing values.
Generation here uses crypto.randomUUID(), a native browser method built directly on the same operating-system cryptographic random number generator used for TLS keys, available in all current browser versions. Where that method is unavailable, the fallback path draws 16 random bytes from crypto.getRandomValues() and manually sets the version and variant bits per the RFC 4122 specification, producing an identical result. Either path avoids Math.random(), which is not cryptographically secure and should never be used to generate identifiers that need genuine unpredictability. Everything runs locally with zero network calls.
RFC 4122 version 4 lays out 128 bits as 32 hexadecimal characters grouped 8-4-4-4-12 and separated by hyphens. Of those bits, the four most significant bits of the seventh byte are fixed to 0100 to mark the UUID as version 4, and the two most significant bits of the ninth byte are fixed to 10 to mark the RFC 4122 variant — every other bit is filled with cryptographically secure randomness. When crypto.randomUUID() is available, the browser handles this entire process natively and returns a correctly formatted string directly. In the fallback path, the tool allocates a 16-byte Uint8Array, fills it via crypto.getRandomValues(), then patches byte index 6 with (byte & 0x0f) | 0x40 to set the version nibble and byte index 8 with (byte & 0x3f) | 0x80 to set the variant bits, before converting the bytes to a hex string and inserting hyphens at the standard positions. The uppercase and no-hyphens options are applied as a final string transformation after generation, so they never affect the underlying randomness.
Set the quantity
Enter how many UUIDs you need, from 1 to 100, in the Count field.
Choose formatting options
Toggle Uppercase if your target system expects capital hex digits, and toggle Hyphens off if you need the compact 32-character form without separators.
Generate
Click "Generate UUIDs" to create the full batch instantly using cryptographically secure randomness — every value is a standards-compliant RFC 4122 version 4 UUID.
Review the list
Scan the generated values to confirm the format matches what your database, API, or configuration file expects.
Copy what you need
Click "Copy All" to grab the entire newline-separated batch, or click Copy next to any individual UUID to grab just that one value.
Database Primary Keys
Generate UUID v4 values to use as primary keys in distributed databases where auto-increment would cause conflicts.
Object Identity in Code
Create UUIDs for in-memory objects, components, or React keys to guarantee uniqueness without a central registry.
API Resource Identifiers
Use UUIDs as resource IDs in REST APIs to prevent sequential enumeration attacks on endpoints.
Test Data Generation
Generate batches of UUIDs to populate test fixtures with realistic-looking unique identifiers.
Unique File Naming
Use UUIDs as filenames for user-uploaded files to prevent collisions on shared storage buckets.
Session Token Seeding
Generate a UUID v4 as the base for session tokens or correlation IDs in distributed tracing systems.
RFC 4122 Compliant
Generated UUIDs strictly follow RFC 4122 v4 format with correct version (4) and variant (10xx) bits set.
Bulk Generation
Generate up to 100 UUIDs at once with a single click for batch operations and test data creation.
Cryptographically Random
Uses crypto.randomUUID() or crypto.getRandomValues() for 122 bits of true randomness per UUID.
Format Options
Toggle uppercase output and hyphen removal to match the format expected by your specific database or system.
Copy All Feature
Copy every generated UUID to the clipboard as a newline-separated list for easy pasting into scripts or seed files.
Instant and Private
All UUIDs are generated in your browser with no server calls, ensuring fast results and complete privacy.
Also Try
Also Known As
Binary To Decimal
Convert between binary, decimal, hex and octal number systems
Color Converter
Convert colors between HEX, RGB, and HSL formats
Convert Binary
Convert binary numbers to text and text to binary
Convert Timestamp
Convert Unix epoch timestamp to standard date format and back
Count Words
Count words, characters, sentences and paragraphs in text
Convert Datetime
Convert datetime between different formats and timezones
Trusted Worldwide
iLoveDocsTools is used by students, professionals, and businesses across the United States, Canada, United Kingdom, Australia, India, and more than 100 other countries. All tools are browser-based and process files privately — your files never leave your device. Free to use, with Pro plans for unlimited access.
All processing happens directly in your browser. Your documents are never sent to any server — complete privacy guaranteed for users in the USA, Canada, UK, and worldwide.
Every tool on iLoveDocsTools is free to use. Need more? Upgrade to Pro for unlimited usage, priority access, and no daily limits. Trusted by students, freelancers, and teams across North America and Europe.
Whether you are on a Mac, Windows PC, iPhone, or Android in New York, Toronto, London, or Sydney — our tools work instantly in any modern browser.
Looking for free PDF tools in the USA? Free document converters in Canada? Online PDF editors in the UK or Australia? iLoveDocsTools offers 70+ free tools — merge PDF, split PDF, compress PDF, convert Word to PDF, Excel to PDF, JPG to PDF, and many more — all free, all instant, all private. No watermarks. No file size limits. Just free tools that work.