Tools › Build › UUID Generator
🆔

UUID Generator – v4 & v7 (GUID), Bulk

Generate random (v4) or time-ordered (v7) UUIDs instantly — one at a time or up to 1,000 at once. Copy, download or inspect any UUID.

✅ 100% Private
🔐 Secure Random
📦 Bulk up to 1,000
Version
Format
Version 4 is fully random — the most widely used and supported UUID.
Generating…
⚡

Bulk generate

Create up to 1,000 UUIDs at once and download them.

Advertisement
🔍

UUID validator & inspector

Paste any UUID to check it and see its version and variant.

How to use

  1. Choose a version (v4 random or v7 time-ordered) and a format.
  2. Click the UUID to copy it, or press “Generate new”.
  3. For many UUIDs, set a count, pick an output style and click “Generate all”, then copy or download.
  4. Use the validator to check any UUID and see its version.

What is a UUID?

A UUID (Universally Unique Identifier), also called a GUID, is a 128-bit value used to identify records in databases, APIs, files and distributed systems without needing a central counter. It is written as 32 hexadecimal digits in five groups: xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx, where M is the version and N the variant.

UUID v4 vs UUID v7 — which one should I use?

v4 is 122 random bits. It is the default almost everywhere and is ideal when you only need a unique, unguessable ID. With about 5.3×10³⁶ possibilities, an accidental collision is practically impossible.

v7 (RFC 9562) starts with a millisecond timestamp followed by random bits, so new IDs sort in creation order. That keeps database indexes compact and fast, which makes v7 a better choice for primary keys in PostgreSQL, MySQL and similar databases. The trade-off: a v7 UUID reveals roughly when it was created.

Are these UUIDs secure and private?

They are generated in your browser using the Web Crypto API (crypto.getRandomValues), a cryptographically secure source. Nothing is sent to a server. UUIDs are identifiers, not secrets — do not use them as passwords or access tokens; use the Password Generator for that.

Frequently asked questions

Can two UUIDs ever be the same?

In theory yes, in practice no. For v4 you would need to generate about a billion UUIDs per second for roughly 85 years to reach a 50% chance of a single duplicate. Bulk generation here also uses fresh random bytes for every UUID.

What is the difference between a UUID and a GUID?

They are the same thing. GUID (Globally Unique Identifier) is the name Microsoft uses; the format is identical. Microsoft tools often show GUIDs in uppercase with braces, which you can get with the UPPERCASE and {Braces} formats here.

Is it safe to use UUIDs as database primary keys?

Yes, but pure random v4 keys scatter inserts across the index, which can slow large tables. UUID v7 solves this by being time-ordered. Store UUIDs in a native UUID or BINARY(16) column instead of text where your database supports it.

How do I generate a UUID in code?

JavaScript: crypto.randomUUID(). Python: import uuid; uuid.uuid4(). PHP: Ramsey\Uuid\Uuid::uuid4() or build one from random_bytes(16). Java: UUID.randomUUID(). MySQL: UUID() (v1). PostgreSQL: gen_random_uuid().

What do the output styles do?

They only change how the list is joined: one per line, comma or semicolon separated, quoted for pasting into SQL or code, or as a JSON array. You can switch style or format after generating without creating new UUIDs.

How many UUIDs can I generate at once?

Up to 1,000 per click. Click Generate all again for a new batch, or download the list as a text or JSON file.