UUID Generator

Generate random UUID v4 or time-ordered v7 identifiers, up to 1,000 at once, in any format. Check and decode any UUID.

Create unique identifiers instantly: random version 4 UUIDs, or the newer version 7 UUIDs that start with a timestamp so they sort by creation time — ideal for database keys. Generate one or a thousand, in lower or upper case, with or without hyphens or braces, or as a ready-to-paste list or JSON array.

UUIDs are made with your browser's cryptographically secure random number generator, on your device. Paste any existing UUID to see its version, variant and — for time-based UUIDs — when it was created.

How to use UUID Generator

  1. Choose the version: v4 (random) or v7 (time-ordered).
  2. Enter how many UUIDs you need (1–1000) and click Generate.
  3. Pick a format: UPPER CASE, without hyphens, in {braces}, one per line, quoted with commas, or a JSON array.
  4. Copy the result or download it as a text file. To check a UUID, paste it into the box below.

Features

  • UUID version 4: 122 random bits from a cryptographically secure generator.
  • UUID version 7 (RFC 9562): time-ordered, strictly increasing even within the same millisecond.
  • Nil and Max UUIDs for tests and placeholders.
  • Bulk: up to 1,000 at a time.
  • Formats: lower or UPPER case, with or without hyphens, {braces}, quoted list or JSON array.
  • UUID checker: version, variant and creation time of v1, v6 and v7 UUIDs; accepts urn:uuid:, braces and no hyphens.
  • Works offline once loaded; nothing is sent to a server.

What is a UUID?

A UUID (universally unique identifier), also called a GUID in the Microsoft world, is a 128-bit number written as 32 hexadecimal digits in five groups: 8-4-4-4-12, for example 3f2b9c1e-7a4d-4e8b-9f21-6c0d5e7a1b34. The 13th digit shows the version and the 17th digit the variant.

UUIDs can be created anywhere — on a phone, a server or in a browser — without asking a central system, and still never collide in practice. That makes them popular for database keys, file names, request IDs and anything that needs a unique name.

UUID v4 vs v7: which should I use?

Version 4 is completely random and reveals nothing. Version 7 starts with the current time in milliseconds followed by random bits, so newer UUIDs sort after older ones. Databases store sorted keys much more efficiently, which is why v7 is recommended for primary keys.

UUID v4UUID v7
Made from122 random bits48-bit timestamp + 74 random bits
Sortable by timeNoYes
Database index performanceCan fragment indexesGood: new keys go at the end
Reveals creation timeNoYes, to the millisecond
Best forTokens, public IDs, anything that must not leak timePrimary keys, logs, event IDs
StandardRFC 4122 / RFC 9562RFC 9562 (2024)

UUID versions explained

Paste any UUID into the checker to see which version it is.

VersionHow it is made
1Time + the computer's MAC address (can reveal the machine)
3MD5 hash of a namespace and a name
4Random
5SHA-1 hash of a namespace and a name
6Like v1 but with the time reordered so it sorts
7Unix time in milliseconds + random
8Custom, vendor-specific layout

Can two UUIDs ever be the same?

In theory yes, in practice no. A v4 UUID has 122 random bits — about 5.3 × 10^36 possible values. You would need to generate around a billion UUIDs every second for about 86 years to reach a 50% chance of a single duplicate. Version 7 UUIDs also include the time, so duplicates could only happen within the same millisecond, and this generator keeps them strictly increasing even then.

Frequently asked questions

Is this UUID generator free and secure?

Yes. It is free and uses crypto.getRandomValues, the browser's cryptographically secure random number generator. UUIDs are created on your device and never sent anywhere.

What is the difference between a UUID and a GUID?

Nothing important — GUID is Microsoft's name for the same 128-bit identifier. Windows tools often show GUIDs in upper case and inside braces, which you can choose here.

Should I use UUID v4 or v7 for a database primary key?

v7 is usually better: because it starts with the time, new rows are added at the end of the index instead of at random places, which keeps inserts fast. Use v4 when the creation time must stay private.

Are UUIDs case-sensitive?

No. The standard says to output lower case and accept either case when reading. Choose UPPER CASE only if a system requires it.

How many UUIDs can I generate at once?

Up to 1,000 per click; click Generate again for more. Download them as a text file or copy them as a JSON array for code.

Can I find out when a UUID was created?

For version 1, 6 and 7 UUIDs, yes — paste it into the checker to see the timestamp. Version 4 UUIDs are purely random and contain no time.

Is a UUID safe to use as a secret token?

A v4 UUID is unguessable in practice and fine for many links and IDs. For passwords or API secrets prefer a longer random value — see the Password Generator. Never use v1 or v7 UUIDs as secrets, because part of them is predictable.

Related tools