Skip to content

KSUID Generator

Generate KSUIDs, the K-Sortable Unique IDs introduced by Segment: 27 Base62 characters made of a 32-bit timestamp in seconds and 128 random bits. They sort roughly by creation time and are safe to use in URLs.

Reset

Frequently asked questions

What is a KSUID?

A 20-byte identifier: 4 bytes of time in seconds since the KSUID epoch of 13 May 2014 and 16 random bytes, written as 27 characters of Base62. It was designed at Segment for distributed systems that want sortable IDs without coordination.

Do KSUIDs sort by time?

Yes, to the second, because the timestamp comes first and Base62 keeps the order. IDs created within the same second sort randomly among each other.

How random is a KSUID?

The 128-bit payload comes from a cryptographically secure generator, more random bits than a UUID v4, which makes collisions practically impossible.

Until when do KSUID timestamps work?

The 32-bit seconds counter starting in 2014 lasts until the year 2150.

Can I decode a KSUID?

Yes. The ID Decoder shows the time and the random payload of a KSUID.

How many can I generate?

Up to 100 per request.

About OneClick Pro

OneClick Pro is a free collection of more than 150 web tools for everyday work: converting images and units, formatting and validating code, checking domains and SEO, and working with text, dates and numbers. Every tool runs without registration or subscription, and what you enter is only used to calculate your result and is never stored. Use it as a quick toolbox for one-off tasks, or bookmark the tools you rely on every day.