UUID / ULID Generator
Generate cryptographically random UUID v4, time-ordered UUID v7, ULID and Nano ID identifiers in bulk, and inspect or convert existing IDs — locally in your browser.
122 random bits. The default choice when you just need a unique ID.
Validate & inspect
Paste a UUID/GUID (any version, with or without hyphens, braces or urn:uuid:) or a ULID to see its version, variant and embedded timestamp.
What is the UUID & ULID Generator?
This generator creates UUID version 4, UUID version 7, ULID and Nano ID identifiers with the browser's cryptographically secure random number generator (crypto.getRandomValues). Generate one ID or up to 10,000 at once, format them in lowercase or uppercase, with or without hyphens, wrapped in quotes, braces or a urn:uuid: prefix, and copy or download them as a list, a comma-separated line or a JSON array.
UUID v4 is fully random and the safest default. UUID v7 (RFC 9562) starts with a 48-bit Unix timestamp in milliseconds, so new IDs sort after older ones — this keeps B-tree indexes compact and makes v7 a better primary key than v4 in PostgreSQL, MySQL or SQL Server. ULIDs carry the same 48-bit timestamp plus 80 random bits in a shorter 26-character Crockford Base32 string. Both v7 and ULID are generated monotonically: IDs created within the same millisecond still increase.
The built-in inspector validates any UUID/GUID or ULID, detects the version (1–8) and variant, and decodes embedded timestamps from v1, v6, v7 and ULID values, along with the clock sequence and node of v1/v6 IDs. It also converts between the UUID and ULID representations of the same 128-bit value. Everything runs locally; no ID is ever sent to a server.
Frequently asked questions
- What does UUID stand for?
- Universally Unique Identifier: a 128-bit value, written as 32 hexadecimal digits in groups of 8-4-4-4-12, that can be generated independently on any machine without a central registry. Microsoft calls them GUIDs.
- Should I use UUID v4 or v7?
- Use v7 for database keys and anything you want to sort by creation time: its timestamp prefix keeps inserts sequential. Use v4 when the ID must not reveal when it was created, because v7 and ULID expose their creation time to anyone who sees the ID.
- What is a ULID?
- A Universally Unique Lexicographically Sortable Identifier: 48 bits of millisecond timestamp and 80 random bits encoded as 26 Crockford Base32 characters. It is URL-safe, case-insensitive and sorts as a plain string, and it can be stored in a UUID column.
- What is Nano ID?
- A compact random ID format. The default 21 characters from a 64-symbol URL-safe alphabet give 126 bits of entropy, close to UUID v4's 122. With a custom alphabet the generator uses unbiased rejection sampling, so every symbol is equally likely.
- How unlikely is a UUID v4 collision?
- With 122 random bits you would need to generate about 2.7 × 10^18 UUIDs to reach a 50% chance of a single collision — roughly a billion per second for 85 years — provided the random generator is cryptographically secure, as it is here.
- Can I extract the creation time from a UUID?
- Only from time-based versions. Paste a v1, v6 or v7 UUID (or a ULID) into the inspector to decode its timestamp. Random v4 UUIDs and name-based v3/v5 UUIDs contain no time information.
- Are the IDs generated on a server?
- No. All IDs are created in your browser with crypto.getRandomValues, so nothing is logged or transmitted and generation works offline.
Related tools
- JSON FormatterFormat, validate, minify and explore JSON with precise error locations. Your data never leaves the browser.
- JSON to TypeScriptPaste JSON and instantly generate TypeScript interfaces or type aliases with nested types, optional fields and arrays. Free and offline.
- Regex TesterTest and debug JavaScript regular expressions with live match highlighting, capture groups, flags and replace preview.
- Hash GeneratorGenerate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes or HMACs from text and files and verify checksums — computed locally with Web Crypto.
- JWT DecoderDecode JWT header and payload, check expiry, and verify HS, RS, PS, ES and EdDSA signatures locally with Web Crypto — your token never leaves the browser.
- SQL FormatterFormat and beautify SQL queries for MySQL, PostgreSQL, SQLite, SQL Server and more with configurable indentation and keyword case.