UUID v4 Generator

A UUID generator produces RFC 4122 version 4 identifiers from a cryptographically secure random source.

Version 4 UUIDs are 122 bits of randomness with the version and variant bits set. They are generated with the platform crypto API, so they are suitable for database primary keys, idempotency keys and correlation identifiers in tests.

Options

NameTypeDefaultDescription
countinteger5How many records to return, from 1 to 1000.

Use cases

  • Database keys: Seed tables that use UUID primary keys.
  • API fixtures: Produce stable-looking identifiers for mocked API responses.
  • Correlation IDs: Generate request identifiers for tracing experiments.

REST API

GET /api/v1/uuid

curl "https://ukaddressgenerator.org/api/v1/uuid?count=5"
{ "status": "success", "count": 1, "version": "v4", "data": ["b4c0f4b2-1f8e-4f7c-9c1a-7f1a2b3c4d5e"] }

Frequently asked questions

Which UUID version is generated?

Version 4, from a cryptographically secure random source, per RFC 4122.

Should I use UUIDs as primary keys?

They avoid coordination between services, but random v4 values scatter writes across a B-tree index. For high write volumes consider a time-ordered identifier such as UUIDv7 or ULID.

Related tools