deftools.io Developer Tools

Snowflake ID Decoder

Decode Discord, Twitter/X, and Instagram snowflake IDs to timestamps, worker IDs, and sequence numbers. Also generate ID ranges from timestamps.

Reverse: Timestamp → Snowflake ID Range

About this tool

Snowflake IDs are 64-bit integers used by Discord, Twitter/X, and Instagram to generate unique, time-sortable identifiers for messages, tweets, posts, and users. Each platform packs a timestamp, a worker or machine identifier, and a sequence counter into its own bit layout.

Example: Paste the Discord message ID 1234567890123456789 and the decoder shows the exact millisecond it was created, plus the internal worker/process/increment values.

Use the reverse mode to find all possible snowflake IDs within a specific millisecond — useful for pagination, range queries, and understanding how many IDs a platform can generate per millisecond.

FAQ

What is a snowflake ID?

A snowflake ID is a 64-bit integer that encodes a timestamp, a worker/machine identifier, and a sequence number into a single number. This design lets distributed systems generate unique IDs without coordination, while keeping them roughly sorted by time. Twitter open-sourced the original Snowflake ID format in 2010; Discord and Instagram created their own variants.

Which platforms use snowflake IDs?

Discord uses snowflake IDs for messages, channels, guilds, and users. Twitter/X uses them for tweets, DMs, and users (since ~2013). Instagram uses a sharded snowflake variant for posts and media. Each has a different epoch and bit layout. This tool detects the platform automatically or lets you choose manually.

Why do I get a range of IDs instead of one?

The timestamp stored in a snowflake ID has millisecond precision. Within a single millisecond, the remaining bits (worker + sequence) can produce thousands of different IDs. The reverse mode shows the full range of possible IDs for any given millisecond.

How accurate is the auto-detection?

Auto-detection works by decoding the ID with each platform's bit layout and picking the one whose timestamp is closest to the current time. For old IDs (years ago), manual platform selection is more reliable.

More developer tools

Copied!