UUIDGenerator
Free online tool

UUID generator

Generate a Universally Unique Identifier in one click. Random (v4), time-sortable (v7) and time-based (v1) are all supported. Everything runs in your browser.

Generated locally with your browser's secure random source. Nothing is sent to a server.

What is a UUID, actually?

A UUID is a 128-bit number written in a fixed text format: eight hex digits, a hyphen, four, a hyphen, four, a hyphen, four, a hyphen, twelve — for example 550e8400-e29b-41d4-a716-446655440000. That is 36 characters including the hyphens. The identifier is designed so that any system can mint one on its own, with no registration authority and no coordination with other machines, and still be effectively certain it will never collide with another ID.

That property is why UUIDs show up everywhere: as primary keys in databases, as request and correlation IDs in distributed systems, as filenames for uploaded objects, as session and token identifiers, and as the id attributes in APIs. When you need an identifier that is unique across services that never talk to each other, a UUID is the usual answer.

The three versions worth knowing

Not all UUIDs are made the same way. The version nibble — the first character of the third group — tells you which algorithm produced it. This generator supports the three you are likely to meet.

Version 4 — random

Version 4 fills 122 of the 128 bits from a random source. It is the default choice for application identifiers because it carries no information about where or when it was created. With 122 random bits there are about 5.3 × 10³⁶ possible values; you would need to generate billions per second for decades before a collision became likely. If you are unsure which version to use, use v4.

Version 7 — time-sortable

Version 7 puts a 48-bit Unix millisecond timestamp in the leading bits, then random data. The result still looks like a UUID but sorts lexicographically by creation time. That matters in databases: a random v4 as a clustered primary key scatters inserts across the index, while a v7 appends them in order, reducing page splits and improving write throughput. It is a good fit for log IDs, event IDs and any table where you insert in time order. Learn more on the version 7 generator page.

Version 1 — time and node

Version 1 combines a 100-nanosecond timestamp with a clock sequence and the machine's node identifier (historically its MAC address). It is mostly a legacy format now. Because it encodes when and where it was generated, it can leak information you may not want to expose, so prefer v4 or v7 for new systems. Our v4 page explains the random version in more depth.

How to use this generator

  1. Pick a version. Leave it on v4 unless you specifically need time ordering (v7) or legacy compatibility (v1).
  2. Set the count. One is the default; raise it to seed a table or build test data. For very large batches use the bulk generator.
  3. Choose a format. The standard hyphenated form is right for most databases. Switch to no hyphens when a system expects 32 raw hex characters, or braces for certain Windows and COM contexts.
  4. Press Generate, then Copy. The IDs are produced by JavaScript on this page and never leave your device.
Need to check an ID you were given? Paste it into the UUID validator to confirm the format and see which version it is.

UUID vs GUID

The terms are effectively interchangeable. GUID is the name Microsoft uses for the same 128-bit identifier, and it follows the same underlying standard. In practice a GUID is a UUID formatted a certain way (often with braces or uppercase). If a tool asks for a GUID, a standard UUID string will work in almost every case.

Frequently asked questions

What is a UUID?

A 128-bit identifier in a standard 36-character text format, designed to be unique without a central authority. See the explanation above.

Which UUID version should I use?

v4 for general use, v7 when you need IDs that sort by time (database keys), v1 only for legacy systems that require it.

Is this tool safe? Do you store anything?

No. Generation happens in your browser using its cryptographic random source. There is no upload, no server call and no log.

Are these UUIDs really unique?

v4 has 122 random bits from a secure source, making collisions negligible in practice. v7 adds a timestamp to 74 random bits and is likewise unique in practice.

Can I generate many at once?

Yes. Set the count field, or use the bulk page for larger batches and extra formatting.


Related tools

UUID v4 generator →

Pure random UUIDs with 122 random bits. The default for application IDs.

UUID v7 generator →

Time-sortable IDs that append cleanly to database indexes.

Bulk UUID generator →

Generate hundreds or thousands of IDs, one per line.

UUID generator in Python →

The uuid module, with copy-ready examples for v4 and v7.