All tools

Snowflake ID Generator

Twitter/Discord-style 64-bit snowflake IDs.

Snowflake IDs (64-bit)

    Created: 2010-11-04T01:42:54.657Z (11/4/2010, 1:42:54 AM)

    Twitter Snowflake (now X). 64-bit ID: 41 bits timestamp (ms since custom epoch), 5 bits data center, 5 bits machine, 12 bits sequence. Discord and Instagram use variants. Default epoch is the Twitter epoch (Nov 4, 2010).

    About

    Generate snowflake IDs with custom epoch, machine ID, and data center ID. Decoder extracts the timestamp from any snowflake. Default uses the Twitter epoch (Nov 4, 2010).

    How to use

    1. Pick machine, datacenter, and epoch.
    2. Generate or decode.

    FAQ

    Why custom epoch?+

    Snowflakes use 41 bits of timestamp, which gives 69 years of range. Starting epoch later (your service's launch) means you can keep generating until 69 years from then before hitting limits.