Online toolTools
TSID Generator
Generate 64-bit TSIDs and read them back as decimal, Crockford Base32, timestamp, node and counter. Make a batch at once or paste a TSID made elsewhere. Every calculation stays in your browser.
1Generate one TSID
0 – 1023
UInt64 · decimal
-
Int64 · signed decimal
-
Crockford Base32
-
-
ms since 2020-01-01 UTCnode IDsequence in the same ms
2Decode · convert
Timestamp (ISO 8601)
-
UInt64 · decimal
-
Crockford Base32
-
Node / counter
-
-
3Generate a batch
-
Layout — a TSID is one 64-bit integer. The top 42 bits count milliseconds since 2020-01-01T00:00:00Z; the remaining 22 bits are split into a node ID and a counter. With 10 node bits the counter gets 12, so one millisecond holds 4096 IDs in order. This page gives the counter whatever the node leaves and moves to the next millisecond when the counter overflows.
- Crockford Base32 writes those 64 bits in 13 characters.
IandLread as1,Oas0, and case does not matter. - Decoding splits node and counter with the node bits selected above. For a TSID made with another setting, match the node bits to get those parts right.
- Int64 is the same bits read as a signed integer. When the top bit is 1 it shows as a negative number.
- Nothing you type leaves this browser, and a reload clears anything you generated.