KSUID Decoder

Decode a KSUID to see when it was created and read its 16-byte random payload. Paste the 27-character ID and the creation time in UTC is shown straight away.

1 Fill in the box

2 Your answer

Your answer shows here as you type.

How to use the KSUID Decoder

  1. Paste a 27-character KSUID into the box.
  2. Read the creation time in UTC and the Unix timestamp.
  3. Check the random payload, shown as 32 hex characters.

Frequently asked questions

What is a KSUID?

A KSUID is a 20-byte identifier. The first 4 bytes hold a timestamp in seconds since 2014-05-13 16:53:20 UTC, and the other 16 bytes are random. It is written as 27 base62 characters.

How is a KSUID different from a UUID?

A UUID is 128 bits and is usually random. A KSUID is 160 bits and starts with a timestamp, so KSUIDs made later sort after earlier ones when compared as strings.

Why does a KSUID have 27 characters?

The 160-bit value is written in base62, using the digits 0 to 9, the uppercase letters A to Z, and the lowercase letters a to z. Base62 needs 27 characters to hold 160 bits, and shorter values are padded with leading zeros.

Can this tool check that a KSUID is genuine?

No. It checks the length, the characters, and the numeric range. It can read the timestamp, but it cannot verify the random payload or who issued the ID.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.