RFC 9562 · TIME-ORDERED

Generatore di UUID v7

Genera UUID v7 online secondo la RFC 9562. Crea UUID ordinabili nel tempo, analizza i timestamp e genera più valori direttamente nel browser.

Browser-only: UUIDs are generated locally and are not uploaded.

Generated UUID v7

Generated UUID v7 values will appear here.

Che cos'è UUID v7?

UUID v7 è un moderno UUID ordinabile nel tempo definito dalla RFC 9562. A differenza di UUID v4, che è principalmente casuale, UUID v7 inserisce un timestamp Unix in millisecondi all'inizio dell'identificatore.

Questo prefisso temporale rende i valori UUID v7 generalmente ordinabili in base al timestamp. Questa caratteristica rende UUID v7 utile per chiavi primarie di database, identificatori di eventi, sistemi distribuiti e record per i quali l'ordinamento cronologico è utile.

Struttura di UUID v7

  • 48 bit: timestamp Unix in millisecondi
  • 4 bit: versione UUID, impostata su 7
  • 12 bit: campo casuale o personalizzabile di UUID v7
  • 2 bit: variante RFC
  • 62 bit: dati casuali o personalizzabili

UUID v7 vs UUID v4

UUID v4 è utile quando è richiesto un identificatore casuale e opaco. UUID v7 è utile quando gli identificatori devono anche contenere informazioni temporali che consentono l'ordinamento. La scelta dipende dal fatto che la visibilità del timestamp e l'ordinamento cronologico siano utili per la tua applicazione.

Usi comuni di UUID v7

  • Chiavi primarie di database
  • Identificatori di eventi
  • Identificatori per sistemi distribuiti
  • Identificatori di log e record di audit
  • Risorse API ordinabili
  • Identificatori di messaggi e attività

Frequently Asked Questions

UUID v7 è un time-ordered UUID formato defined by RFC 9562. It places a Unix timestamp in milliseconds in the most significant 48 bits e uses the remaining bits per versione, variante e casualeness.

UUID v4 is primarily casuale, while UUID v7 contiene a millisecond timestamp at the beginning. This makes UUID v7 values naturally sortable by creation time e can make them useful per database primary keys e event identifiers.

Sì. The timestamp portion of UUID v7 is placed at the beginning of the identifier, so canonical UUID strings generally sort according to their creation timestamp.

UUID v7 contiene a Unix timestamp con millisecond precision. Therefore, the timestamp portion can reveal approximately quando the UUID was generato.

UUID v7 is suitable per unique identifiers quando generato con a cryptographically secure casuale source. However, because the timestamp is visible, UUID v7 should not be treated as a completely opaque identifier.

Sì. This UUID v7 Generator supporta bulk generation direttamente nel browser.

UUID v7 can be a useful choice per database identifiers because its timestamp prefix fornisce natural time ordering while retaining a large casuale portion.

No. UUID generation e timestamp analysis are performed locally in your browser. The generato UUID values do not need to be sent to a server.