Keine Werbung mögen? Gehen Werbefrei Heute

Snowflake-ID-Generator (Twitter-Stil)

DatenEntwicklerZufällig
ANZEIGE Entfernen?

Erzeugen

10-bit machine/worker identifier (0-1023)
Custom starting timestamp used when packing the ID

Oder

Dekodieren


Decoded Snowflake

ANZEIGE Entfernen?

Führung

Snowflake ID Generator (Twitter-Style)

Snowflake-ID-Generator (Twitter-Stil)

Generate 64-bit Snowflake IDs using the classic Twitter bit-layout: a 41-bit millisecond timestamp, 10-bit machine/worker ID, and 12-bit per-millisecond sequence. Every ID is produced client-side with BigInt arithmetic, so nothing leaves your browser and bulk generation up to 1000 IDs stays collision-free for a single machine.

Nutzung

  1. Set Zählen (1 to 1000) for how many Snowflake IDs you want.
  2. Wählen Sie einen Machine ID between 0 and 1023 so IDs from different workers never collide.
  3. Choose an Epoche: Twitter (2010-11-04), Discord (2015-01-01), or plain Unix.
  4. Wählen Sie ein Ausgabeformat: decimal, hex, binary, JSON, or CSV.
  5. Klicken Sie auf Erzeugen, then copy or download the result.
  6. To decode, paste an existing Snowflake ID into the decoder to see its timestamp, machine ID, sequence, hex, and 64-bit binary breakdown.

Funktionen

  • Bulk-Generierung – produce up to 1000 time-sorted 64-bit IDs in one click.
  • Configurable machine ID – full 10-bit range (0-1023) for sharded deployments.
  • Multiple epochs – Twitter, Discord, and Unix epoch presets for cross-system compatibility.
  • Mehrere Ausgabeformate – decimal, hex, binary, JSON, or CSV.
  • Built-in decoder – reverse any Snowflake ID to timestamp, machine ID, sequence, hex, and binary components.
  • Correct sequence handling – auto-increments and waits for the next millisecond if the 4096/ms budget is exhausted.
  • Vollständig clientseitig – BigInt math, no server calls, nothing logged.

Häufig gestellte Fragen

  1. What is a Snowflake ID?

    A Snowflake ID is a 64-bit integer designed for distributed systems. Twitter introduced the format in 2010 to replace auto-increment database IDs: a custom-epoch millisecond timestamp is packed with a machine/worker ID and a per-millisecond sequence, giving sortable, collision-free IDs that can be generated without central coordination.

  2. How does the 41 + 10 + 12 bit layout work?

    The top bit is reserved as a sign bit, leaving 63 usable bits. The next 41 bits encode the number of milliseconds since a custom epoch (good for ~69 years). The following 10 bits identify the machine or worker (up to 1024 machines). The final 12 bits are a sequence counter that lets a single machine generate 4096 IDs per millisecond before needing to wait.

  3. Why do Snowflake IDs sort by time?

    Because the timestamp occupies the most significant bits of the 64-bit value, any two Snowflake IDs from the same epoch compare first by timestamp and only then by machine ID and sequence. That means alphabetical or numeric ordering of IDs is also roughly chronological, which is handy for database indexes, pagination, and log correlation.

  4. What happens if a single machine generates more than 4096 IDs in one millisecond?

    The 12-bit sequence counter overflows. A correct Snowflake implementation detects the overflow, spins until the system clock advances to the next millisecond, and then resets the sequence to zero. This tool follows that pattern so bulk generation never produces duplicate IDs on the same machine.

Möchten Sie werbefrei genießen? Werde noch heute werbefrei

Erweiterungen installieren

IO-Tools zu Ihrem Lieblingsbrowser hinzufügen für sofortigen Zugriff und schnellere Suche

Zu Chrome-Erweiterung Zu Kantenerweiterung Zu Firefox-Erweiterung Zu Opera-Erweiterung

Die Anzeigetafel ist eingetroffen!

Anzeigetafel ist eine unterhaltsame Möglichkeit, Ihre Spiele zu verfolgen. Alle Daten werden in Ihrem Browser gespeichert. Weitere Funktionen folgen in Kürze!

ANZEIGE Entfernen?
ANZEIGE Entfernen?
ANZEIGE Entfernen?

Nachrichtenecke mit technischen Highlights

Beteiligen Sie sich

Helfen Sie uns, weiterhin wertvolle kostenlose Tools bereitzustellen

Kauf mir einen Kaffee
ANZEIGE Entfernen?