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.
UUID v4Standard
RFC 4122 universally unique identifier. Industry standard for most use cases.
Example: 550e8400-e29b-41d4-a716-446655440000
Count
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
