UUID and ULID Generator
Generate random UUID v4 values or ULIDs, and check a pasted UUID or ULID. Everything happens in your browser.
Whole numbers only, from 1 to 100.
Check an ID
How to use
- Choose the kind of ID: UUID v4 (random) or ULID (time-sortable).
- Set How many, from 1 to 100. Whole numbers only.
- Press Generate. The IDs appear in a numbered list.
- Press Copy all to put the list on your clipboard, one ID per line.
- To inspect an ID you already have, paste it into the Check an ID box. A UUID reports its version, and a ULID reports the moment it was created.
Worked example
Paste 550e8400-e29b-41d4-a716-446655440000 into Check an ID. The third group starts with 4 and the fourth with a, so the tool reports "UUID, version 4." That is the version digit at work: the first hex digit of the third group.
For a ULID, take 1700000000000 milliseconds since 1970, which is 2023-11-14T22:13:20Z. A ULID made at that instant starts with 01HF7YAT00, followed by 16 random characters. Paste any ULID that begins with those ten characters and the checker reports "ULID created at 2023-11-14T22:13:20.000Z". Because the time sits at the front, a ULID made a second later sorts after it alphabetically, which random UUIDs never do.
How it works
UUID v4 takes 16 random bytes. Four bits are set to version 4 and two bits to the variant 10, then the 32 hex digits are written in the groups 8-4-4-4-12. The result is 36 characters with hyphens. That leaves 122 random bits.
ULID is 26 characters. The first 10 hold a 48-bit millisecond timestamp from the clock on your device, and the last 16 hold 80 random bits. Both parts use Crockford base32, which leaves out I, L, O and U so the IDs are easy to read and type. Because the time comes first, ULIDs sort in creation order.
Check an ID accepts upper or lower case. A UUID shows its version from the version digit (1 to 8, or unknown). A ULID shows the time it was created, decoded from its first 10 characters.
UUIDs are defined in RFC 9562, which replaced RFC 4122 and added versions 6, 7 and 8. Version 7 puts a Unix millisecond timestamp first, as a ULID does. The ULID layout is described in the ULID specification. The random bytes come from the Web Crypto getRandomValues method, which is designed for security uses, unlike Math.random.
Which one to pick
| Need | UUID v4 | ULID |
|---|---|---|
| Length | 36 characters | 26 characters |
| Reveals creation time | No | Yes, to the millisecond |
| Sorts by creation | No | Yes |
| Native database type | Common | Usually stored as text or bytes |
Common mistakes
- Using an ID as a secret. A random UUID is hard to guess, but it is an identifier, not a password or access token. Do not rely on it alone to protect data.
- Leaking time with a ULID. Anyone who sees a ULID can read when the record was made. If creation time is sensitive, use a UUID v4.
- Expecting ULIDs from one millisecond to sort. Two ULIDs from the same millisecond differ only in random bits, so their order is arbitrary. This tool does not apply the optional monotonic increment.
- Random UUIDs as clustered keys. Inserting random values scatters writes across an index. Time-ordered IDs such as ULIDs or UUID v7 usually behave better.
- Trusting the device clock. A ULID takes its time from your device, so a wrong clock gives a wrong prefix.
Frequently asked questions
Can two UUID v4 values collide?
In theory yes, but with 122 random bits the chance is negligible for any realistic system, provided the random source is sound.
Is a GUID the same as a UUID?
Yes. GUID is the name Microsoft uses for the same 128-bit format.
Why does the checker reject my ID?
It expects a hyphenated UUID of 36 characters or a ULID of 26. An ID without hyphens is not accepted, and a ULID must use only the Crockford alphabet.
Are generated IDs sent or saved?
No. They are made in your browser and are not stored.
Can I generate UUID v7 here?
Not at present. The checker will recognise a v7 UUID, and a ULID gives you a similar time-ordered layout.
Related tools
- Unix Timestamp Converter to read the millisecond time inside a ULID.
- Password Generator for secrets that need real entropy.
- Hash Generator for fixed-length digests.