Cryptographically Secure ยท Free

UUID & IDGenerator

Generate UUID v4, NanoID, hex tokens, OTP codes, ObjectIDs, sortable ULIDs and more โ€” all cryptographically secure, all in your browser.

ID Format
UUID v4Standard
RFC 4122 universally unique identifier. Industry standaโ€ฆ
NanoID (21)URL-safe
URL-safe base64 alphabet, 21 characters. ~1.5ร— more uniโ€ฆ
NanoID (12)Compact
Shorter NanoID โ€” good for database IDs and URLs where Uโ€ฆ
Hex (32 chars)Token
16 random bytes encoded as hex. Common for tokens, secrโ€ฆ
Hex (16 chars)Short
Shorter 8-byte hex. Good for short tokens and keys.
AlphanumericReadable
Random lowercase letters + numbers, 12 chars. Human-friโ€ฆ
Uppercase (8)Codes
Random uppercase letters + numbers, 8 chars. Discount cโ€ฆ
OTP / PIN (6)OTP
6-digit numeric code. One-time passwords, verification โ€ฆ
ULID-styleSortable
Timestamp-prefixed sortable ID. Lexicographically orderโ€ฆ
ObjectID-styleMongo
24-char hex like MongoDB ObjectId. Includes timestamp pโ€ฆ
UUID v4Standard
RFC 4122 universally unique identifier. Industry standard for most use cases.
Example: 550e8400-e29b-41d4-a716-446655440000
Count
0 Generated IDs

Which Format Should I Use?

A quick decision guide

Use case
Database primary keys
UUID v4 or NanoID
Standard, supported by all databases and ORMs
Use case
API tokens / secrets
Hex 32 chars
Maximum entropy, commonly expected format for tokens
Use case
URL slugs / short IDs
NanoID (12)
URL-safe, short enough to be human-friendly
Use case
OTP / verification
6-digit PIN
Numeric, easy to type on mobile keyboards
Use case
Invite / coupon codes
Uppercase (8)
Easy to read aloud, hard to confuse characters
Use case
Time-sorted records
ULID-style
Lexicographic order matches insertion order