ebstore pro
Developers · Databases · Testing

UUID Generator

Bulk v4 and v7 UUIDs — up to 500 at a time, generated in your browser.

Most generators stop at random v4. This one also does time-ordered v7 UUIDs (the database-friendly kind), uppercase and no-hyphen formats, one-click copy, .txt download — and a validator that tells you the version and variant of any UUID you paste.

Generate

d1cc64d6-5a3a-4830-83be-f6e289b8fa6f
24f97280-6878-41f0-a7c4-99c0e622cfa7
c67d04a7-7752-463a-8f2f-0c5c1404affe
912d1d81-b6d4-4acf-abbd-be995ab23b57
ec0aa250-ad60-4a28-be49-c5d85c84cd01

Generated with your browser's cryptographic random source (Web Crypto API) — nothing leaves your device.

Validate

Check a UUID

Done-for-you

Need a tool like this on your own website?

Every calculator on this site was built by WebStore Pro — the same work I do for clients: fast, accurate, mobile-friendly tools and full stack websites from $80. If your site needs a custom calculator, converter or internal tool, I can build it for you.

Prefer email? neilsonsmarry@gmail.com · See my services — or explore the Password Generator, Epoch Converter and Base64 Encoder/Decoder — plus 100+ more free tools on the tools hub.

The method

How UUIDs are built

Anatomy of a UUID. A UUID is 128 bits shown as hex in the pattern 8-4-4-4-12. Two spots are reserved: the first digit of the third group is the version (4 or 7), and the first digit of the fourth group encodes the variant (8, 9, a or b for the standard RFC variant). Everything else is random — except in v7, where the first 48 bits are a Unix millisecond timestamp.

Worked example

In 550e8400-e29b-41d4-a716-446655440000, the third group starts with 4 → version 4 (random). The fourth group starts with a → standard RFC 4122 variant. A v7 UUID generated now starts with the hex of the current timestamp instead, so later UUIDs always sort after earlier ones.

  • Use v7 (or a time-ordered scheme) for database primary keys; v4 for opaque public IDs.
  • Store UUIDs as BINARY(16) or the native uuid type — not as 36-char strings — to save space.
  • Keep hyphens in displayed/stored text form; some APIs need the 32-char no-hyphen form instead.
  • Never use a UUID as a password or secret token by itself — it is an identifier, not a credential.
  • The Nil UUID (all zeros) is a sentinel value, not a real ID — reject it in validation.

FAQ

UUID generator questions, answered

What is a UUID and what is it used for?+

A UUID (Universally Unique Identifier, also called a GUID) is a 128-bit ID written as 32 hex digits in five groups: 8-4-4-4-12, like 550e8400-e29b-41d4-a716-446655440000. Software uses UUIDs as database primary keys, session and transaction IDs, file names and request IDs — anywhere you need an ID that is unique without asking a central authority.

What is the difference between UUID v4 and v7?+

Version 4 is pure randomness (122 random bits) — the classic UUID. Version 7 (RFC 9562, 2024) starts with a 48-bit millisecond timestamp, so v7 UUIDs sort in creation order. That ordering makes v7 far better as a database primary key: new rows append at the end of the index instead of scattering randomly, which keeps inserts fast and indexes compact.

Can two v4 UUIDs ever collide?+

In theory yes, in practice no. With 122 random bits, you would need to generate roughly 2.7 quintillion (2.7 × 10¹⁸) UUIDs before the chance of a single duplicate reaches about 50% — and a billion UUIDs per second for a century only gets you to around 3 × 10¹⁸. For real systems, collisions are treated as impossible.

Are the UUIDs generated here secure?+

They are generated with the Web Crypto API (crypto.getRandomValues), the same cryptographic random source your browser uses for security operations — not Math.random. Generation happens entirely on your device; no UUID is sent to or stored on any server, so they are safe to use as keys and tokens (though for passwords, use the Password Generator).

How many UUIDs can I generate at once?+

Up to 500 per batch, in v4 or v7, with lowercase/uppercase and with/without hyphens. Use Copy all to grab the batch or Download .txt to save it as a file — handy for seeding databases and test fixtures.

How do I check whether a UUID is valid?+

Paste it into the validator below the generator. It checks the 8-4-4-4-12 hex format and reports the version (the 13th hex digit) and variant. It also recognises the special Nil UUID (all zeros), which is valid by the spec but should never be used as a real ID.