Calculate Snowflake ID Components
Decode any snowflake ID to see timestamp, worker ID, and sequence number
Calculate and decode snowflake IDs - Extract timestamps and components
Decode any snowflake ID to see timestamp, worker ID, and sequence number
A Snowflake ID calculator is a tool that decodes 64-bit snowflake IDs to extract their embedded components: timestamp, worker ID, and sequence number. Snowflake IDs are used by major platforms like Twitter, Discord, and Instagram to generate unique, time-ordered identifiers in distributed systems.
Our calculator performs reverse engineering on snowflake IDs by extracting the timestamp from the first 41 bits, the worker ID from the next 10 bits, and the sequence number from the final 12 bits. This allows you to see exactly when an ID was created and which server generated it.
Snowflake IDs are 64-bit integers with a specific bit structure:
The calculation formula to extract timestamp:
timestamp_ms = (snowflake_id >> 22) + platform_epoch
worker_id = (snowflake_id & 0x3E0000) >> 17
sequence = snowflake_id & 0xFFF
Epoch: November 4, 2010 (1288834974657 ms). Twitter's original snowflake implementation.
Epoch: January 1, 2015 (1420070400000 ms). Used for all Discord objects.
Epoch: January 1, 1970 (0 ms). Uses Unix epoch for media IDs.
Timestamp Component: The 41-bit timestamp allows for approximately 69 years of unique IDs from the epoch. For Twitter (2010 epoch), this extends to 2079. For Discord (2015 epoch), it extends to 2084.
Worker ID Component: The 10-bit worker ID supports up to 1,024 different servers or processes generating IDs simultaneously. This ensures IDs remain unique even when generated by multiple machines at the exact same millisecond.
Sequence Component: The 12-bit sequence allows for 4,096 unique IDs per millisecond per worker. If more IDs are needed in a single millisecond, the generator waits for the next millisecond.
To manually calculate snowflake components, you need to perform bitwise operations:
Twitter Tweet Age: Calculate when a tweet was posted by decoding its tweet ID. Useful for verifying tweet timestamps and analyzing posting patterns.
Discord Message Timing: Determine exact message creation time from message IDs. Helpful for moderation and investigating incidents.
Instagram Post Date: Extract creation date from Instagram media IDs to verify post timing and analyze content schedules.
Example 1 - Discord User ID:
ID: 175928847299117063
Timestamp: (175928847299117063 >> 22) + 1420070400000 = 1462015105796
Date: April 30, 2016
Worker ID: 1
Sequence: 7
Example 2 - Twitter Tweet ID:
ID: 1234567890123456789
Timestamp: (1234567890123456789 >> 22) + 1288834974657 = 1583879511181
Date: March 10, 2020
Worker ID: 0
Sequence: 21
Yes, as long as you know the platform's epoch. Our calculator supports Twitter, Discord, and Instagram, but you can manually calculate IDs from any platform using snowflakes.
Each platform chooses an epoch close to when they started using snowflake IDs. This maximizes the time range before the 41-bit timestamp overflows (approximately 69 years from epoch).
Yes! Use our Snowflake ID Generator to create new IDs, or manually combine timestamp, worker ID, and sequence using bitwise operations.
Yes, calculations are accurate to the millisecond. The timestamp is directly encoded in the ID structure and cannot be altered.
Negative timestamps indicate the ID was created before the platform's epoch, which is impossible. Double-check the ID and selected platform.