SellstampUUID generator
Generate one or a hundred random version 4 UUIDs with your browser’s crypto.randomUUID, with the correct version and variant bits, ready to copy.
Up to 100
Version 4 — 122 random bits from your browser’s crypto.randomUUID. Nothing is sent anywhere.
Stays on your device
Everything runs in your browser. Nothing you type is sent to Sellstamp or anyone else.
Building something to sell?
Sellstamp has a storefront, a checkout into your own payment account, automatic delivery and an API with webhooks. Open a free store
How to use it
- Choose how many UUIDs you need, from one to a hundred.
- Press New for a fresh set.
- Press Copy (or Copy all) and paste them where you need them.
What a version 4 UUID is
A 128-bit identifier written as 32 hexadecimal digits in five groups, of which 122 bits are random. The third group always starts with 4 — that is the version — and the fourth with 8, 9, a or b, which is the variant. Both are fixed by the standard (RFC 9562, formerly 4122), and a UUID that gets either wrong will be rejected by a strict database column or parser even though it looks right.
These come from your browser’s own crypto.randomUUID(), with the same cryptographic source the password generator uses. The chance of any two of them colliding is one in 2122; across a whole collection, you would need to generate a billion a second for about 86 years before the chance of a single repeat reached 50%.
When to use a different version
Version 4 is the right default for almost everything: API keys’ public halves, idempotency keys, correlation ids. The one place it costs you is as a database primary key at scale, where its randomness scatters inserts across the whole index. For that, version 7 puts a timestamp in the leading bits so ids are roughly time-ordered; most databases and libraries now generate it for you, and it is a change to make on the server rather than one this page needs to offer.
Questions
What is a version 4 UUID?
A 128-bit identifier written as 32 hexadecimal digits in five groups, with 122 random bits. The third group starts with 4 (the version) and the fourth with 8, 9, a or b (the variant), as RFC 9562 specifies.
Can two UUIDs ever be the same?
In theory yes, in practice no. With 122 random bits you would need about 2.7 × 10^18 of them, a billion a second for about 86 years, before the chance of a single repeat reached 50%.
Is a UUID the same as a GUID?
Yes. GUID is Microsoft’s name for the same 128-bit identifier format.
Should I use UUID version 7 instead?
Version 7 puts a timestamp at the front so ids sort roughly by creation time, which helps databases that index the id. For most other uses, version 4 is the right default.
Are these UUIDs uppercase or lowercase?
Lowercase, which is what RFC 9562 says to output. Comparisons should ignore case anyway.
Related tools
JSON formatter
Pretty-print or minify, with the line and column of any error.Open Graph preview
A share card, an X card and a Google snippet, plus the tags to paste.JSON to CSV
JSON arrays to spreadsheet-ready CSV.CSV to JSON
CSV rows to typed JSON objects.JSON to YAML
JSON to YAML 1.2.YAML to JSON
YAML to JSON, with error positions.
Popular free tools
QR code generator
Any link or text to a QR code, with a logo in the middle.Background remover
A transparent PNG, cut out without uploading the photo.Invoice generator
Line items, tax and a total, ready to print or save as a PDF.Image resizer
Exact pixels or a percentage, as PNG, JPEG or WebP.Logo maker
A mark, a monogram or a wordmark, as a transparent PNG and an SVG.Profit margin calculator
Cost and price to margin, or a target margin to the price that hits it.