🧮 Snowflake ID Calculator

Calculate and decode snowflake IDs - Extract timestamps and components

Calculate Snowflake ID Components

Decode any snowflake ID to see timestamp, worker ID, and sequence number

DECODED COMPONENTS
TIMESTAMP (MS)
DATE & TIME
WORKER ID
SEQUENCE

What is a Snowflake ID Calculator?

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.

How Snowflake ID Calculation Works

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

Platform-Specific Epochs

🐦 Twitter/X

Epoch: November 4, 2010 (1288834974657 ms). Twitter's original snowflake implementation.

💬 Discord

Epoch: January 1, 2015 (1420070400000 ms). Used for all Discord objects.

📸 Instagram

Epoch: January 1, 1970 (0 ms). Uses Unix epoch for media IDs.

Snowflake ID Calculator Use Cases

Understanding Snowflake Components

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.

Calculating Snowflake IDs Manually

To manually calculate snowflake components, you need to perform bitwise operations:

Common Calculation Scenarios

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.

Snowflake ID Calculation Examples

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

Frequently Asked Questions

Can I calculate snowflake IDs from any platform?

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.

Why do different platforms have different epochs?

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).

Can I reverse calculate to create a snowflake ID?

Yes! Use our Snowflake ID Generator to create new IDs, or manually combine timestamp, worker ID, and sequence using bitwise operations.

Are snowflake calculations accurate?

Yes, calculations are accurate to the millisecond. The timestamp is directly encoded in the ID structure and cannot be altered.

What if I get a negative timestamp?

Negative timestamps indicate the ID was created before the platform's epoch, which is impossible. Double-check the ID and selected platform.