Snowflake ID Parser
Decompose a snowflake (Twitter, Discord) into timestamp, worker ID, datacenter ID and sequence. Shows the human-readable date.
Snowflake ID: 64 bits of time, machine and sequence
Twitter created the format in 2010 when moving off MySQL auto-increment: with several databases, nobody can be the single authority handing out the next number. The solution was to assemble the identifier from three parts each machine can fill in alone — the clock, its own number and a local counter.
The layout is fixed: one sign bit always zero, 41 bits of milliseconds counted from an epoch the project chooses, 10 bits identifying the machine and 12 bits of sequence. The 12 sequence bits cap it at 4096 identifiers per millisecond per machine, which in practice never binds. It is the 41 time bits that set the scheme's lifespan: about 69 years from the epoch.
The epoch is what varies between implementations, which is why the page lets you choose: Twitter uses 4 November 2010, Discord 1 January 2015. Applying the wrong epoch raises no error — it returns a plausible date that is wrong by years. Worth noting too that sorting by identifier sorts by time, which is half the reason the format exists.
Frequently asked questions
Why does Twitter send the ID as text in JSON?
What happens if the machine clock goes backwards?
Snowflake or UUID v7?
Related Tools
Cron Parser (describe expression)
Paste a cron expression and see in plain text when it will fire (e.g. "every day at 9am" for `0 9 * * *`). Lists the next N runs. Everything in your browser.
Cache-Control Parser
Read a Cache-Control header and show each directive (max-age, no-cache, public, immutable, stale-while-revalidate) with explanation.
HTTP Cookie Parser
Paste a Set-Cookie header and inspect name, value, Domain, Path, Expires, Max-Age, HttpOnly, Secure and SameSite separately. Browser-only.
URL Analyzer
Decompose any URL into its components: protocol, host, pathname, query parameters and hash. Inspect query strings individually.
UUID Parser
Decompose a UUID into version (1, 3, 4, 5, 6, 7, 8), variant, and when applicable, timestamp and node. Supports UUIDs with or without dashes.
Link Header Parser
Decompose an HTTP Link header (RFC 8288) listing each URI with its parameters (rel, type, title). Useful for paginated APIs and Web Linking.