Skip to main content

UUID Generator

Generate UUIDs (v1, v3, v4, v5)

Generate between 1 and 100 UUIDs.

Generated UUIDs (0)
Click "Generate UUIDs" to create 1 V4 identifier.

Was this UUID Generator helpful?

Help us keep tools reliable, fast, and bug-free.

What you can do with UUID Generator

  • Create a random uuid
  • Generate guid

How this generator works

Generate UUID versions 1, 3, 4, or 5, including random, time-based, and namespace-and-name-based identifiers.

Example input

{"version":"v5","namespace":"6ba7b810-9dad-11d1-80b4-00c04fd430c8","name":"www.example.com","quantity":1}

Example output

2ed6657d-e927-568b-95e1-2665a8aea6a2

Practical workflow

  1. Choose v1 (time-based), v4 (random), v3 (MD5 name-based), or v5 (SHA-1 name-based).
  2. For v3 or v5, enter a UUID namespace and a name; the same pair deterministically produces the same ID for that version.
  3. For v1 or v4, set the quantity from 1 to 100. Name-based v3 and v5 return one deterministic UUID per namespace and name.
  4. Copy one identifier, copy the whole list, or download the results as a plain-text file.

Common use cases

  • Generating unique primary keys for distributed SQL databases and MongoDB documents.
  • Creating random v4 identifiers for database records and distributed request IDs.
  • Generating repeatable v3 or v5 identifiers from a namespace and stable name.
  • Producing several UUIDs at once for local test fixtures.

Important notes and limitations

  • Version 4 uses the uuid package's cryptographically secure random source. Version 1 is time-based; v3 and v5 are deterministic for a given namespace and name.
  • The tool generates the standard lowercase hyphenated UUID format. Random and time-based generation is limited to 100 IDs per run; each name-based run returns one ID and accepts names up to 100,000 characters.
  • Namespace and name inputs stay in page memory and clear when the page reloads. Older saved namespace and name drafts are removed on the next visit when browser storage allows it.
  • Version 3 uses MD5 and version 5 uses SHA-1 for name-based identifiers; neither is intended as a secret or password.

Native OS & CLI UUID generation equivalents

Generate standard UUID v4 via uuidgen

uuidgen --random

Generates an RFC 4122 compliant version 4 random UUID using kernel cryptographic randomness (/dev/urandom).

Generate sequential time-sortable UUID v7 in Node.js

node -e "console.log(crypto.randomUUID())"

Invokes the native V8/Node.js WebCrypto implementation to generate a high-entropy pseudo-random UUID.

Bulk UUID generation in bash

cat /proc/sys/kernel/random/uuid

Directly reads pseudo-random UUIDs from the Linux kernel virtual filesystem without spawning child processes.

Entropy & UUID collision troubleshooting

Database B-tree index fragmentation with UUID v4

Cause: Random v4 UUIDs insert data across random B-tree pages, causing heavy disk page thrashing and write amplification under high QPS.

Solution: Migrate to time-ordered UUID v7 or ULID for primary keys to preserve index locality while retaining global uniqueness.

Case sensitivity and hyphen validation failures

Cause: PostgreSQL stores UUID as 128-bit native type, while some ORMs or APIs strictly require canonical lowercase 36-character hyphenated strings.

Solution: Always normalize UUID strings to lowercase with standard 8-4-4-4-12 hyphenation format before validation or hashing.

Continue your workflow

Frequently asked questions

What UUID versions can I generate here?

The tool supports v1 time-based, v4 random, v3 MD5 name-based, and v5 SHA-1 name-based UUIDs. Versions 3 and 5 require a namespace UUID and a name.

Is there any risk of collision when generating UUID v4 identifiers?

The collision probability of UUID v4 is negligible: you would need to generate approximately 2.71 quintillion UUIDs to have a 50% chance of a single collision.

Will the same namespace and name always create the same UUID?

Yes, for v3 or v5 the same namespace and name produce the same version-specific UUID. Version 4 uses randomness, while v1 is time-based. Do not treat UUIDs as passwords or cryptographic secrets.