UUID Generator

Generate RFC 9562 version 4 (random) or version 7 (time-ordered) UUIDs.

  • Runs locally in your browser
  • No upload required

Try it

Reproducible output for tests and documentation only; leave blank for secure randomness.

48-bit Unix epoch milliseconds; blank uses the current time.

Version
v4
Count
2
Identifiers
3e63fdb4-ee66-43e4-90ee-3824760ec99c cbd41ef0-3bda-4156-9dd6-717d43e08b63
3e63fdb4-ee66-43e4-90ee-3824760ec99c
cbd41ef0-3bda-4156-9dd6-717d43e08b63

Supported formats

Input
number
Output
text

Privacy

Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.

Processing
In your browser
Privacy level
Browser only

Generated 2 version 4 UUID(s).

How it works

  • Drew 16 random bytes.
  • Set the version nibble to 4 and the RFC variant bits.
  • Formatted the 16 bytes as 8-4-4-4-12 lowercase hexadecimal.
  • Version 4 UUIDs are random; they carry no ordering information.

Methodology

  1. Generate UUID version 4 identifiers from 122 random bits, or version 7 identifiers from a millisecond timestamp plus random bits, per RFC 9562.
  2. Set the version and variant bits so the identifier is a valid RFC 9562 UUID.
  3. Use a seeded generator only for reproducible tests and documentation; production output uses the platform random source.

Time model

  • Time source: UTC.
  • Timezone: A version 7 timestamp is milliseconds since the Unix epoch (UTC). The identifier is an absolute value and carries no local timezone.
  • Locale: Epoch milliseconds are locale-independent; no locale formatting applies.
  • Daylight saving: UTC has no daylight-saving transitions; a version 7 timestamp is unaffected by DST.
  • Reference date: Version 7 uses an explicit 48-bit epoch-millisecond timestamp when supplied; otherwise it uses the current instant read from the visitor's environment at runtime. Version 4 uses no time.

Usage

  1. Choose version 4 for purely random identifiers or version 7 for sortable, time-ordered ones.
  2. Choose how many identifiers to generate (1 to 100).
  3. Copy the results.

Examples

These are examples, not current values: they use fixed inputs, while the interactive tool computes live results in your browser.

Two reproducible v4 UUIDs

jsonSelect to copy
{
  "version": "v4",
  "count": 2,
  "seed": "example"
}

Time-ordered v7

jsonSelect to copy
{
  "version": "v7",
  "count": 1,
  "seed": "example",
  "timestamp": 1735689600000
}

Limitations

What a UUID actually guarantees

A UUID is an identifier, not a secret. Version 4 carries 122 random bits and version 7 carries a timestamp plus random bits; both are designed to be unique, not unguessable.

Frequently asked questions

Which version should I use?
Use v7 for new database keys because it sorts by creation time and reduces index fragmentation; use v4 when ordering does not matter.
Are generated identifiers sent anywhere?
No. Generation happens locally with the platform random source.

Sources

  1. RFC 9562: Universally Unique IDentifiers (UUIDs) — IETF