BLANCO

Developer · blancodagoat.dev

Guides

DECODE A DISCORD SNOWFLAKE

Every Discord ID — for a user, message, channel, guild, or role — is a snowflake: a 64-bit number that embeds the exact millisecond it was created. That means any ID tells you when the thing behind it was made. Here is the layout and the formula.

→ OPEN THE SNOWFLAKE DECODER

THE BIT LAYOUT

THE FORMULA

WORKED EXAMPLE

FAQ

What is a Discord snowflake?

The 64-bit ID Discord assigns to every user, message, channel, guild, and role. The first 42 bits are a millisecond timestamp, then 5 bits of worker ID, 5 bits of process ID, and a 12-bit per-process increment.

How do I get the creation date from a Discord ID?

Shift the ID right by 22 bits and add the Discord epoch: new Date(Number(BigInt(id) >> 22n) + 1420070400000). Or paste it into the snowflake decoder.

What is the Discord epoch?

1420070400000 ms — the first second of 2015. Snowflake timestamps count from here, not the Unix epoch.

Related: permissions integer explained · gateway intents · all guides