← All Tools

KSUID Generator & Decoder

Generate and inspect KSUIDs — Segment's K-Sortable Unique IDentifiers. Each KSUID is 160 bits: a 32-bit timestamp (seconds since 2014-05-13) plus 128 bits of randomness, encoded as 27 base62 characters.

Generate KSUIDs

Decode a KSUID

About KSUID

KSUID was introduced by Segment as an alternative to UUIDs with natural sort order by creation time. The timestamp uses a custom epoch of 2014-05-13T16:53:20Z, giving it an effective range through the year 2150. The payload is 128 cryptographic random bits, encoded together as 27 base62 characters (case-sensitive: 0-9A-Za-z).

Copied!