Snowflake ID Generator & Decoder
Generate and decode Snowflake IDs with custom epoch, worker id and sequence. Batch generation and timestamp decoding run locally in your browser.
Defaults to the Twitter epoch 1288834974657 (2010-11-04). Use the same epoch when decoding.
No data yet
ID generation and decoding run locally in your browser; nothing is uploaded.
About This Tool
The Snowflake tool helps with API debugging and data forensics: batch-generate IDs following the 41-bit timestamp, 10-bit worker and 12-bit sequence layout, or decode an existing ID back into its generation time, worker id and sequence.
The epoch is configurable so it can match your own service. Use the same epoch when decoding to recover the real timestamp. Everything runs locally in the browser.
Key Features
Batch generation
Generate up to 1000 IDs at once and copy them as a list for test fixtures.
Timestamp decoding
Turn an ID into a millisecond timestamp, readable time, worker id and sequence.
Custom epoch
Match your own service epoch instead of decoding everything to 2010.
Zero dependencies
Pure algorithm with no network calls, usable offline.
When to Use It
Test data
Produce a batch of valid IDs for test cases and load parameters.
Production forensics
Decode an order or message ID to find which instance created it and when.
Algorithm verification
Compare IDs across epochs and worker ids to confirm bit allocation.
How to Use It
- 1Fill in epoch, worker id, start sequence and count on the Generate tab.
- 2Click generate and copy the IDs you need.
- 3Switch to the Decode tab, paste an ID with the same epoch and decode.
Frequently Asked Questions
Why is the decoded time wrong?
The epoch most likely does not match. Decoding must use the same epoch as generation, otherwise the timestamp shifts.
Can sequences repeat within the same millisecond?
The tool increments the sequence for each generated ID, mirroring real implementations, and wraps to 0 after 4095.
Does generation leak business data?
No. IDs are generated locally and contain no business fields.
