Skip to content
utilhex

UUID Generator

Runs in your browserFree · No sign-up

Generate random UUID v4 or time-ordered UUID v7 values, up to 1,000 at a time, using your browser's secure random generator. Validate and inspect UUIDs.

About UUID Generator

UUID Generator creates random UUIDs online, one or up to 1,000 at a time, using your browser’s cryptographically secure random generator (the Web Crypto API). Choose version 4 for fully random IDs, or version 7, whose values start with a millisecond timestamp so they sort by creation time, which suits database primary keys. Format them in uppercase, without hyphens, or wrapped in braces for Windows GUIDs, and paste any UUID into the inspector to see its version, variant, and embedded time.

How to use UUID Generator

  1. Choose UUID version 4 or 7.
  2. Set how many to generate (1–1,000) and the formatting options.
  3. Select Generate, then copy or download the list.
  4. To inspect a UUID, paste it into the inspector below the generator.

Examples

v4

Random: 3f0c6c58-2b4e-4b0e-9c51-5d1f3a7e9b20

v7

Time-ordered: 0192a3b4-7c1d-7e2f-8a3b-4c5d6e7f8091

Test data

Generate 500 UUIDs, download them as a text file, and use them as IDs in seed data or fixtures.

UUID versions compared

VersionBuilt fromUse it for
v1Timestamp and device (MAC) addressLegacy systems; it can reveal when and where it was made
v4122 random bitsGeneral-purpose IDs: order numbers, file names, public record IDs
v5SHA-1 hash of a namespace and a nameThe same input always gives the same UUID
v7Unix time in milliseconds plus random bitsDatabase primary keys: new rows sort in order and index well

This generator makes v4 and v7. RFC 9562, the current UUID standard, recommends v7 over the older time-based v1 for new systems.

Anatomy of a UUID

A UUID is 128 bits written as 32 hexadecimal digits in five groups: 8-4-4-4-12. The first digit of the third group is the version, and the first digit of the fourth group (8, 9, a, or b) marks the standard RFC variant. In 3f0c6c58-2b4e-4b0e-9c51-5d1f3a7e9b20, the 4 shows it is a version 4 UUID.

Generate a UUID in code

CodeLanguage
crypto.randomUUID()JavaScript and TypeScript (browsers, Node.js, Deno, Bun): v4
import uuid; uuid.uuid4()Python: v4 (uuid.uuid7() from Python 3.14)
UUID.randomUUID()Java: v4
Guid.NewGuid()C# / .NET: v4 (Guid.CreateVersion7() from .NET 9)
SELECT gen_random_uuid();PostgreSQL: v4 (uuidv7() from PostgreSQL 18)
uuid.New()Go with github.com/google/uuid: v4

Limitations

  • UUID v7 values generated in the same millisecond are ordered using random bits, so strict ordering within a millisecond is not guaranteed.
  • UUIDs are unique identifiers, not secrets. Use a dedicated token generator for passwords or session keys.

Privacy

This tool processes everything locally in your browser tab. Your input is not uploaded to Utilhex or any third party, and it is discarded when you close or reload the page. Read the privacy policy for details.

Frequently asked questions

Is my input sent anywhere?

No. Processing happens in your browser. Utilhex does not send tool input to its servers, analytics, or any AI service.

Are these UUIDs secure?

They use crypto.getRandomValues, a cryptographically secure generator. UUIDs are identifiers, though - do not use them as secret tokens.

What is the difference between a GUID and a UUID?

GUID is Microsoft's name for the same 128-bit identifier format. The values generated here work as GUIDs; turn on braces and uppercase for the classic {XXXXXXXX-…} style.

Can two random UUIDs ever be the same?

In theory, but practically never. A v4 UUID has 122 random bits; you would need to generate about a billion per second for decades before a duplicate became likely.

Should I use v4 or v7 for database keys?

Prefer v7. Because new values sort after old ones, inserts land at the end of the index instead of at random places, which keeps B-tree indexes compact and fast.