Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Developer Utilities

Snowflake ID Decoder

Break a Twitter / Discord / Instagram Snowflake ID into the millisecond timestamp, worker and process ids, and per-millisecond sequence it packs. Pick a known epoch or supply your own.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

Options

Your result will appear here

Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.

How it works

What it does

Feed in one decimal Snowflake id and the result is a two-column table of fields against values: the creation time as an ISO UTC string, the same instant in Unix milliseconds, milliseconds since the service epoch, the 5-bit worker id, the 5-bit process id, the combined 10-bit machine id, the 12-bit sequence, and the raw 64-bit value in binary. The stats strip repeats the chosen epoch and the bit widths.

When to use it

Useful when you need the creation time hidden inside a Discord message id, or when a Snowflake generator you run suddenly issues duplicates and you want to confirm which worker and sequence a suspicious id came from.

Choosing the epoch

The epoch option offers Twitter, Discord and Instagram presets, each using the service own millisecond origin. Picking Custom reveals a second number field for any other origin; the stored time is added to that value, so simply reading the top 42 bits is not enough.

Limits and pitfalls

Only digits are accepted, so strip any mention syntax such as a leading angle bracket and at-sign first. Values must fit in 64 bits. The bit split is fixed at 42/5/5/12, so an id from a service using a different layout will decode into plausible but wrong numbers, and the date can fall outside the representable range.

Privacy

Decoding is plain BigInt arithmetic in the page, so ids are never sent anywhere and the tool runs offline. That suits investigating ids that belong to private conversations or accounts.

Questions

What is the bit layout?

From the top: 42 bits of millisecond timestamp, then 5 bits worker id, 5 bits process id, and 12 bits sequence. Twitter uses a single 10-bit machine id over the same two 5-bit fields.

Why do I need to pick an epoch?

The stored timestamp is milliseconds since a service-specific epoch, not the Unix epoch. Choosing the wrong one shifts every decoded date.

How do I read the binary row?

It is the 64-bit value padded to 64 characters and grouped as 42, 5, 5 and 12 bits, so the field boundaries are visible at a glance.

See category