ledger365

UUID generator

Produces version 4 UUIDs in whatever quantity and format you need — plain for a config file, quoted for a SQL insert, braced for Windows registry work.

How to use the uuid generator

  1. Choose how many you need.
  2. Pick the case and any wrapping.
  3. Copy them all, or download as a text file.

How it works

A version 4 UUID is 122 random bits plus six fixed bits marking the version and variant. Collision probability is so low that you can generate billions before it becomes worth thinking about, which is why they are used as database keys without central coordination.

They come from the browser's cryptographic random source. Version 4 carries no timestamp and no machine identifier, so unlike version 1 it reveals nothing about when or where it was created.

Common questions

Are these safe to use as database primary keys?

Yes, and they let independent services create keys without coordinating. Note they sort randomly, which can hurt index locality — consider UUIDv7 if insertion order matters.

Can two UUIDs be the same?

In theory. In practice the odds are negligible at any realistic scale.

Related tools