ULID ulid · Base32
A short, time-sortable identifier written as 26 characters of Crockford Base32.
Overview
It encodes a 48-bit timestamp plus 80 random bits into 26 characters. Lexicographic order matches chronological order, and it is safe for URLs and file names.
Structure
| Bit length | 128 |
|---|---|
| Character length | 26 |
| Format | Crockford Base32 |
| Sortable | Yes |
| Random-based | Yes |
When to use
Use it as an alternative to UUID when you need a sortable, short public ID. Because it is case-insensitive Base32, it is also easy for people to read.