What is a KSUID?
A KSUID (K-Sortable Unique IDentifier) is a 27-character ID made of a 32-bit timestamp followed by 128 random bits. It is written in base 62, using digits and upper and lower case letters. It was created by the company Segment for distributed systems.
The timestamp counts seconds from 14 May 2014, which is 1,400,000,000 in Unix time. Because time comes first, KSUIDs sort roughly in creation order, to the second. With 128 bits of randomness, the chance of two matching is extremely small without any central counter, so many servers can create them independently.
How to use the KSUID Generator
- Choose how many IDs you want.
- Press the button to generate them.
- Check the time shown in the note.
- Copy or download the IDs.