UUID Generator

Developer·Free · in browser

UUID Generator

Generate cryptographically random UUID v4s, or time-ordered UUID v7s that index far better as database primary keys.

UUID Generator
All tools

A UUID generator produces 128-bit identifiers that are unique without a central authority. Version 4 is fully random; version 7 embeds a millisecond timestamp in the leading bits so IDs sort chronologically and index far better as primary keys.

Runs entirely in your browser · no signup · nothing is uploaded · updated 2026-08-29

Version

How many

122 random bits from crypto.getRandomValues.

How to use it

  1. 1.Pick v4 for pure randomness or v7 for time-ordered IDs.
  2. 2.Choose how many you need.
  3. 3.Copy them out - generation uses your browser's crypto API, so the values never touch a server.

Frequently asked questions

What is the difference between UUID v4 and v7?

v4 is 122 random bits. v7 puts a millisecond timestamp in the leading 48 bits, so IDs sort chronologically. Both are 128 bits and collision-safe in practice.

Should I use a UUID as a primary key?

Use v7, not v4. Random v4 keys scatter inserts across a B-tree index, causing page splits and bloat. v7 appends in order, so it behaves much more like a sequential key.

What are the odds of a collision?

For v4, you would need roughly 2.7 x 10^18 UUIDs before a 50% chance of one collision. It is not a practical concern.

Are these random enough for security tokens?

They come from crypto.getRandomValues, so yes for identifiers. For session or reset tokens, generate them server-side and store a hash.

Is UUID v7 safe to use in production yet?

Yes. It was standardised in RFC 9562 in 2024 and is supported by Postgres extensions, most ORMs and every major language's UUID library.

Does a UUID v7 leak information?

It leaks the creation time to the millisecond, since the timestamp is in plain sight. That is usually harmless, but do not use v7 where the creation time is sensitive.

UUID or ULID?

They solve the same problem. ULID is 26 characters in Crockford base32 and sorts lexically as a string; UUID v7 is the standardised, more widely supported equivalent. Prefer v7 unless you need the shorter text form.

Should UUIDs be stored as text?

No. Store them as a native uuid type in Postgres or a 16-byte binary column in MySQL. Storing as a 36-character string roughly doubles the index size for no benefit.

The guide behind this tool

Tools that pair with this one

Built something?

RankCert is a weekly launch board where products rank on domain control we verify ourselves - not upvotes. Listing is free and the link is dofollow whether or not you display our badge.