How do I generate a UUID?
Choose how many you need (1 to 100), pick the formatting options, and click Generate. This free UUID generator creates version 4 UUIDs using your browser crypto API, the same secure random source used for keys and tokens. A version 4 UUID looks like 93b453a4-d578-4f76-9cf7-5bbd0f675a32: five groups of hexadecimal digits separated by hyphens. Options let you switch to uppercase, remove the hyphens (32 characters, useful for compact storage), or wrap each UUID in braces for systems that expect that form. Copy the whole list with one click for database seeding, API test payloads, file naming or configuration. Generation is instant and unlimited, and a fresh set is produced every time you click.
What is a UUID and what is version 4?
A UUID (Universally Unique Identifier), also called a GUID in Microsoft systems, is a 128-bit identifier designed to be unique without any central registry. The standard format is 36 characters: 32 hexadecimal digits in groups of 8-4-4-4-12, separated by hyphens. The first digit of the third group is the version. Version 4 means the UUID is generated from random numbers: 122 of its 128 bits are random, with 4 bits marking the version and 2 bits marking the variant (the first digit of the fourth group is always 8, 9, a or b). Other versions exist (version 1 uses time and a MAC address, version 5 hashes a namespace and name, version 7 uses a timestamp for sortable IDs), but version 4 is the common default for general-purpose unique IDs.
Can two UUIDs ever collide?
In theory yes, in practice no. With 122 random bits there are about 5.3 undecillion (2 to the power 122) possible version 4 UUIDs. The birthday maths says you would need to generate roughly 2.7 quintillion UUIDs before the chance of a single duplicate reached 50%. Put differently, generating a billion UUIDs per second, it would take about 85 years to reach that 50% point. Real systems generate far fewer, so accidental collisions are negligible compared with ordinary hardware failures. The one real-world risk is bad randomness: UUIDs generated with weak random sources (such as Math.random in JavaScript, or a poorly seeded server) can repeat. That is why this generator uses the browser crypto API (crypto.randomUUID where available), which draws from the operating system secure random generator.
UUID vs auto-increment IDs: which should I use?
Auto-increment integer IDs are small, fast to index, and easy to read, but they leak information (anyone can guess the next ID and count your records) and they clash when merging data from multiple systems. UUIDs can be generated anywhere (browser, phone, server) without coordination, never collide across systems, and reveal nothing about order or volume, which is why they suit distributed systems, public APIs and offline-first apps. The costs are size (16 bytes, or 36 characters as text, versus 4 to 8 bytes for an integer) and index behaviour: random UUIDs insert all over a B-tree index, which is slower than appending sequential IDs, a problem that time-ordered variants like UUID version 7 address. A common pattern is an internal numeric primary key with a public UUID for URLs and APIs. For test data, file names and one-off identifiers, a generated UUID is the simplest safe choice.
How do I store UUIDs in a database?
Store them in a native UUID type where your database offers one (PostgreSQL uuid, MySQL 8 with UUID functions, SQL Server uniqueidentifier), or as BINARY(16) for compact storage. Avoid CHAR(36) text storage for large tables: it uses more than twice the space and slows index comparisons, though it is acceptable for small tables and maximum portability. In code, keep UUIDs as strings for display and APIs, but convert to bytes for storage if your stack supports it. When comparing UUIDs, remember that case does not matter (93B453A4 and 93b453a4 are the same UUID) and hyphens are only formatting. The nil UUID (all zeros) is reserved as a null-like value; this generator never produces it because version 4 sets fixed version and variant bits.
Is it free and private?
Yes. The UUID generator is free, with no signup, no account and no limits. UUIDs are generated in your browser with the crypto API and are never sent to a server, stored or logged; they exist only in the output box until you copy them or close the tab. That matters when the UUIDs will become real record identifiers: nobody else can see, predict or reuse the values you generate here. Generate as many batches as you need, up to 100 per click, in the format your system expects. For bulk generation inside your own code, use the equivalent built-in: crypto.randomUUID() in JavaScript, uuid.uuid4() in Python, or Guid.NewGuid() in .NET, all of which produce the same version 4 format.