UUID Generator
Genera identificatori univoci universali: UUID v4 (random), v7 (timestamp-based) e ULID. Supporta bulk generation, validazione e export.
Genera UUID
Generazione Bulk
Come utilizzare UUID Generator
Scegli il tipo di identificatore
Seleziona tra UUID v4 (completamente casuale, lo standard più diffuso), UUID v7 (basato su timestamp, ordinabile cronologicamente) e ULID (26 caratteri in Crockford Base32, compatto e sortable). Usa v4 per casi d'uso generici, v7 e ULID quando l'ordinamento temporale è importante.
Configura le opzioni di formato
Attiva "UPPERCASE" per ottenere il UUID in lettere maiuscole. Per UUID v4 e v7 puoi attivare "Senza trattini" per ottenere il formato compatto a 32 caratteri senza i separatori. Le opzioni si applicano sia alla generazione singola che alla generazione bulk.
Genera il UUID
Clicca su "Genera" per ottenere un singolo UUID. Il risultato appare con il pulsante copia per copiarlo immediatamente negli appunti. I UUID v4 usano crypto.randomUUID() del browser per la massima sicurezza crittografica.
Generazione Bulk
Usa la sezione "Generazione Bulk" per creare più UUID in una volta. Specifica la quantità desiderata (fino a 100) e clicca su "Genera". Puoi copiare tutti i UUID con un click oppure esportarli in un file TXT.
Suggerimenti
- Preferisci UUID v7 o ULID come chiavi primarie nei tuoi database: l'ordinamento temporale incorporato migliora significativamente le performance degli indici rispetto ai UUID v4 completamente casuali.
- La generazione bulk con esportazione TXT è utile per popolare database di sviluppo o seed file: genera 100 UUID in formato pulito e importali direttamente nel tuo script SQL o di seeding.
- Per confrontare i formati, genera lo stesso numero di UUID v4, v7 e ULID e nota come v7 e ULID abbiano i primi caratteri simili (stesso timestamp) mentre v4 è completamente casuale.
Domande frequenti
What is the difference between UUID v4 and UUID v7?
UUID v4 is completely random: 122 bits of random entropy, no temporal information. UUID v7 includes a Unix timestamp in the first 48 bits, making it chronologically ordered. UUID v7 is preferred for primary database keys as it reduces index fragmentation of B-tree indexes.
What is a ULID and when to use it?
Universal Unique Lexicographically Sortable Identifier is a 26-character format in Crockford's Base32. The first 10 characters encode the timestamp with millisecond precision, the remaining 16 are random. It is compatible with UUID but more compact and always lexicographically sortable, ideal for distributed systems.
Are generated UUIDs cryptographically secure?
Yes, for UUID v4 the generator uses browser's crypto.randomUUID() or crypto.getRandomValues() as fallback, both based on a cryptographically secure pseudo-random number generator (CSPRNG), making them suitable also for session tokens and security identifiers.
How can I validate an existing UUID?
Use the "Validate UUID/ULID" section in the sidebar. The validator automatically recognizes formats (UUID v1, v3, v4, v5, v6, v7 or ULID), checks structure and variant (RFC 4122), and indicates if the UUID is standard or uses an unconventional variant.
What is the standard format of a UUID?
A standard UUID is composed of 32 hexadecimal digits divided into 5 separated groups by hyphens: 8-4-4-4-12 characters (e.g. 550e8400-e29b-41d4-a716-446655440000). The 13th character indicates the version (4 for v4, 7 for v7), and the 17th indicates the variant (8, 9, a or b for RFC 4122).