ULID 生成器
生成通用唯一字典排序标识符
什么是 ULID?
ULID(通用唯一字典排序标识符)是一种 128 位标识符,可按时间排序且与 UUID 兼容。
使用方法
输入数值
在输入栏中填入您的数字或参数。
即时获取结果
结果在您输入时自动更新——无需按计算按钮。
复制或保存
将结果复制到剪贴板或用于您的工作流程。
为什么使用此工具
100% 免费
没有隐藏费用,没有付费等级——所有功能完全免费。
无需安装
完全在浏览器中运行。无需下载或安装任何软件。
隐私且安全
您的数据永远不会离开您的设备。不会上传至任何服务器。
支持移动设备
完全响应式设计——在手机、平板或桌面电脑上均可使用。
ULID: Universally Unique Lexicographically Sortable Identifiers
Key Takeaways
- ULIDs combine a 48-bit millisecond timestamp with 80 bits of randomness, creating IDs that are both unique and chronologically sortable.
- ULIDs use Crockford's Base32 encoding, producing compact 26-character strings that are URL-safe and case-insensitive.
- All ULIDs are generated in your browser — no data is sent to any server.
ULID (Universally Unique Lexicographically Sortable Identifier) addresses a key limitation of UUID v4: lack of natural ordering. By encoding the creation timestamp in the first 10 characters, ULIDs sort chronologically while maintaining global uniqueness through random suffixes. This makes them excellent primary keys for databases where insertion order matters.
ULIDs can generate 1.21 x 10^24 unique IDs per millisecond — more than enough for any application.
Throughput Capacity
Key Concepts
ULID Structure
A ULID consists of a 10-character timestamp (48 bits, millisecond precision, good until year 10889) followed by a 16-character random component (80 bits of entropy).
Crockford's Base32
ULIDs use Crockford's Base32 alphabet (0-9, A-Z excluding I, L, O, U) which avoids ambiguous characters. This encoding is URL-safe, case-insensitive, and more compact than hex.
ULID vs. UUID v7
Both embed timestamps for sortability. UUID v7 is an official IETF standard (RFC 9562) with broad ecosystem support. ULIDs are more compact (26 vs 36 chars) and use a simpler specification.
Monotonic ULIDs
When multiple ULIDs are generated within the same millisecond, monotonic mode increments the random component to guarantee strict ordering within that millisecond.
Pro Tips
Use ULIDs as database primary keys when you need time-ordered records without a separate created_at column.
Extract the timestamp from existing ULIDs for audit logging — no additional metadata storage needed.
Use monotonic ULID generation in high-throughput systems to guarantee strict ordering even at sub-millisecond rates.
ULIDs can be converted to UUID format (128-bit) for compatibility with UUID-typed database columns.
All ULIDs are generated entirely in your browser using cryptographically secure randomness. No generated identifiers are stored or transmitted to any server.