Toolivaro

Générateur d'UUID gratuit

Générez des UUID version 4 RFC 4122 à partir d'un aléa cryptographiquement sûr — un à la fois ou en lot, entièrement local.

Le générateur d'UUID produit des identifiants universellement uniques version 4 (RFC 4122) à partir d'un aléa cryptographiquement sûr — getRandomValues de la plateforme, la même source que votre runtime utilise pour les identifiants sécurisés. Générez un UUID d'un clic, ou jusqu'à 100 d'un coup pour des données de test, des données d'amorçage ou des suites de tests ; choisissez minuscules ou majuscules et forme avec ou sans tirets, puis copiez une valeur ou le lot entier. Chaque valeur générée est validée contre les bits de version et de variante avant d'être affichée, et le générateur valide aussi tout UUID que vous collez — en vérifiant la forme, le demi-octet de version 4 et les bits de variante RFC, pas seulement le motif de tirets. La méthode est montrée ouvertement : 122 bits aléatoires, avec les champs de version et de variante fixés, exactement comme le spécifie la section 4.4 de la RFC 4122. Tout s'exécute localement : aucune valeur générée ou validée n'est téléversée, journalisée ni stockée. Utilisez cet outil pour des données de test, des clés de base de données, des identifiants d'événements, ou tout endroit où un UUID v4 est nécessaire et où vous voulez que l'aléa provienne de la source cryptographique de la plateforme plutôt que d'un service web partagé.

Traité localement dans votre navigateur

1–100 par lot.

Format

Comment utiliser cette calculatrice

What a UUID is for, and what version 4 means

A universally unique identifier is a 128-bit value designed for one job: naming things without a central registry. Databases, message queues, event systems, and test suites all use them because a value can be generated anywhere — on any machine, offline, in a script — and still be treated as unique without asking a server for the next number. Version 4 is the random variant: of the 128 bits, 122 come from a random source and 6 are fixed by the format — the version nibble (hex 4) in the third group and the variant bits (the first hex digit of the fourth group, always 8, 9, a, or b). That is why every v4 UUID shows the same tell-tale pattern, 8-4-4-4-12: 7f3a9c21-4d2e-4b8a-9c1e-2f3a4b5c6d7e. The fixed bits are not a bug; they are how a reader can tell a v4 from a time-based v1 or a name-based v3 without any extra information.

The randomness is not from a generic random function but from the platform’s cryptographically secure source, getRandomValues — the same generator your runtime uses for secure tokens and TLS session keys. That matters because identifier collisions are most likely when the random source is weak or predictable: Math.random(), the classic offender, is not designed for this job and is never used here.

Generating identifiers for fixtures and test data

The generator produces one UUID per click or a batch of up to 100 in a single action — enough for a seed-data file, a test fixture, or a set of event ids in a staging run. Output can be lowercase or uppercase (hex is case-insensitive; the choice is purely cosmetic) and hyphenated or hyphenless. Hyphenless forms are convenient when a value is embedded in a filename or a context that treats hyphens specially; hyphenated is the conventional form that matches RFC 4122 and most documentation. Because the version and variant digits are always visible, a hand-typed fake — one where someone edited a real id — is usually easy to spot: the 4 in the third group and the 8/9/a/b start of the fourth group are the first things to check.

The page validates every generated value against the format before showing it, so a batch cannot silently contain a malformed entry. For test fixtures, generate once and reuse the values; there is no need to regenerate per run, and deterministic fixtures are easier to debug than fresh values on every execution.

Using the validator on values from elsewhere

The same page validates any UUID you paste. The check is stricter than a glance at the dash pattern: it verifies the shape (8-4-4-4-12 hex groups), the version nibble (a 4 in the third group), and the RFC variant bits (8, 9, a, or b at the start of the fourth group). A string with the right dashes but the wrong version — a v1 or v3 UUID, or a value that merely looks the part — is correctly rejected. This matters more than it sounds: many systems accept any 8-4-4-4-12 string as a v4 UUID, and subtle bugs follow when a time-based id is later treated as random.

What the validator does not do is check whether a UUID exists anywhere — it cannot, and no tool can: uniqueness is probabilistic, not registered. If your system needs to know whether an id is already in use, the database is the authority, not the format check.

Uniqueness, randomness, and the honest limits

No generator can guarantee uniqueness. Version 4 provides 122 random bits, so the probability of a collision is astronomically small — roughly one in 2^61 for a batch of two billion values — but it is not zero, and the tool says so rather than promising certainty. For practical purposes the guarantee comes from the random source: with getRandomValues, consecutive values share no predictable pattern, which is the property that makes v4 useful in the first place.

One distinction worth keeping straight: a UUID is an identifier, not a secret. Its structure is public, it is not designed for authenticated access, and the RFC does not treat it as a credential. If you need a value that protects access — a reset token, an API key, a password — use a dedicated secret generator instead, and store it where secrets belong.

Comment le résultat est-il calculé ?

Trois données de test

Générez trois UUID pour des données de test. Chaque valeur possède le demi-octet de version 4 (un 4 dans le troisième groupe) et les bits de variante (8, 9, a ou b en tête du quatrième groupe), par exemple 7f3a9c21-4d2e-4b8a-9c1e-2f3a4b5c6d7e — le motif est visible d'un coup d'œil, si bien qu'un faux saisi à la main se repère facilement.

Exemple d'entrée et de sortie
Entrée Valeur
count 3
format lowercase, hyphenated
Résultat 3 UUID v4 RFC 4122 valides, chacun vérifié contre les bits de version et de variante

Quelle est la formule et ses hypothèses ?

Construction de la version 4

uuid = 122 random bits, with version = 0100 and variant = 10 fixed

Termes de la formule
Symbole Signification
version le demi-octet de poids fort du troisième groupe, fixé à 4
variant les deux bits de poids fort du quatrième groupe, fixés à 10

L'aléa provient de getRandomValues de la plateforme, cryptographiquement sûr.

Quelles sont les erreurs les plus courantes ?

  • Utiliser Math.random() pour des identifiants — il n'est pas cryptographiquement sûr ; cet outil utilise getRandomValues.
  • Accepter n'importe quelle chaîne 8-4-4-4-12 comme UUID v4 — les bits de version et de variante doivent aussi correspondre.
  • Saisir des UUID à la main pour des données de test — un seul caractère faux rend la valeur invalide.
  • Générer des identifiants sur un serveur qui les journalise — cet outil est entièrement local.

Quelles sont les hypothèses et les limites ?

  • Version 4 uniquement : l'outil génère et valide la v4 ; les v1, v3, v5 et la v7 ordonnée par le temps ne sont pas prises en charge.
  • La génération en lot est plafonnée à 100 valeurs par lot pour garder la page réactive.
  • L'unicité est probabiliste, pas garantie — l'outil énonce les probabilités au lieu de promettre une unicité absolue.

D'où viennent les chiffres ?

Dernière révision 5 août 2026 · Version 1.0.0 · Toolivaro ne garantit pas les contenus externes.

Questions fréquentes

Pourquoi mon UUID généré a-t-il toujours un 4 dans le troisième groupe ?

C'est le champ de version : la version 4 de la RFC 4122 fixe le demi-octet de poids fort de cet octet à 0100 (soit 4 en hexadécimal). Chaque UUID v4 valide l'affiche — ce n'est pas un bug, c'est le format.

Deux UUID générés sont-ils garantis différents ?

Aucun générateur ne peut garantir l'unicité — la v4 fournit 122 bits aléatoires, les collisions sont donc astronomiquement improbables (environ 1 sur 2^61 pour deux milliards de valeurs) mais pas impossibles. L'outil utilise l'aléa cryptographique de la plateforme, la source la plus robuste disponible dans le navigateur.

Que vérifie le validateur ?

La forme (groupes hexadécimaux 8-4-4-4-12), le demi-octet de version 4 et les bits de variante RFC. Une chaîne avec le bon motif de tirets mais la mauvaise version — comme un UUID v1 ou v3 — est correctement rejetée.

Can I use a v4 UUID as a password or access token?

No — treat UUIDs as identifiers, not secrets. The format is public, the value is not stored as a credential, and the RFC does not define it for authentication. Use a dedicated secret generator (like the password generator) for anything that gates access.

Are uppercase and lowercase UUIDs different values?

No. Hex digits are case-insensitive, so 7F3A9C21-… and 7f3a9c21-… are the same value. The tool normalizes output to whichever case you pick so the choice is a formatting preference, not a data difference.

Fait partie de Outils de mots de passe, hachage et sécurité

Vous avez repéré une erreur ou souhaitez une correction ? Signalez-la — chaque correction est examinée.

Ce calculateur vous a été utile ?

Relu par l'équipe éditoriale de Toolivaro selon notre méthodologie Méthodologie · Politique éditoriale