DevKits

Snowflake ID Generator — 64-bit Twitter-Style Time-Ordered IDs

Generate Twitter Snowflake IDs online — 64-bit integers with 41-bit timestamp, 10-bit worker ID, 12-bit sequence. Preview and inspect how Snowflake IDs are structured. 100% local.

Last updated:

Comments

Preview only. These IDs are generated in your browser using a per-tab counter — they are guaranteed unique within this tab, but not across tabs or clients. Production Snowflake IDs must be minted by a single-writer server (or a cluster with distinct workerIds) to keep the global uniqueness contract.

  • 2079824929313787904
  • 2079824929313787905
  • 2079824929313787906
  • 2079824929313787907
  • 2079824929313787908

Frequently Asked Questions

What is a Snowflake ID?

Snowflake is a 64-bit integer ID format introduced by Twitter: 41 bits of millisecond timestamp (relative to a custom epoch), 10 bits of worker/machine ID, and 12 bits of per-millisecond sequence. It's still used by Twitter/X, Discord, and many high-scale platforms because it's compact, time-sortable, and doesn't need a central coordinator (as long as workerIds are unique).

Can I use this to mint real Snowflake IDs in production?

No — this tool is a browser-side preview. Real Snowflake generation must happen on a coordinated server (or servers with distinct workerIds); otherwise two tabs producing IDs simultaneously will collide. Use it to test parsers, understand the layout, or seed test fixtures.

Why does the ID start over from 0 every millisecond?

That's the 12-bit sequence field. It resets every millisecond and can produce up to 4096 IDs per worker per millisecond. If you exceed that, the algorithm busy-waits until the next millisecond — which is why serious Snowflake generators are single-threaded per worker.

Related Tools