Snowflake ID Timestamp Decoder

Discord user IDs, tweet IDs, Instagram post IDs — they're all snowflakes with a timestamp baked in. Paste one or a batch, get the exact creation time.

—
Embed this tool on your website / blog No code required · Copy and paste
HTML Embed Code (iframe):
<iframe src="https://lucentool.com/snowflake-id-decoder" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/snowflake-id-decoder" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - Snowflake ID Timestamp Decoder</a></div>

How snowflake IDs work

A snowflake is a 64-bit integer: 41 bits of timestamp (milliseconds since a platform-specific epoch), 5 bits worker, 5 bits process, 12 bits sequence. That's why IDs are roughly time-ordered — and why the timestamp is recoverable: timestamp = (id >> 22) + epoch.

Platform epochs

Practical uses

Under the hood

A snowflake ID is a 64-bit integer that packs a timestamp, a machine identifier and a sequence number. The page uses BigInt for the shifts and masks, because a plain JavaScript number only holds 53 bits of precision and would silently corrupt the low bits. Different platforms count from different epochs — Discord, Twitter and Instagram each have their own — and choosing the wrong one shifts the decoded time by years.

Formats, sizes and other limits

64-bit snowflake-style IDs only. UUIDs, MongoDB ObjectIds and Sonyflake have different widths and epochs and need their own tools. The epoch must match the generator or the timestamp is meaningless, and the bit layout is not universal: the common 5+5+12 split for machine, worker and sequence is a convention, not a standard, so custom implementations need checking against their own documentation.

Privacy: nothing is uploaded

IDs are decoded with bitwise arithmetic locally. No database is queried, so the record behind an ID is never touched.

Frequently asked questions

Why is the timestamp years off?

The epoch is wrong. Each platform counts from its own start date, and Twitter's and Discord's differ by several years.

Does it work with UUIDs?

No. UUIDs are 128-bit identifiers with a completely different structure.

How are machine and sequence read?

The common layout is 5 bits of machine, 5 of worker and 12 of sequence, but the widths are set by the implementation — verify against its docs.