Toolivaro

Generador de UUID gratis

Genera UUID versión 4 según RFC 4122 a partir de aleatoriedad criptográficamente segura, de uno en uno o en lote, totalmente local.

El generador de UUID produce identificadores únicos universales versión 4 según RFC 4122 a partir de aleatoriedad criptográficamente segura: getRandomValues de la plataforma, la misma fuente que tu runtime usa para los identificadores seguros. Genera un UUID con un clic, o hasta 100 de una vez para fixtures, datos semilla o suites de pruebas; alterna entre salida en minúsculas o mayúsculas y forma con o sin guiones, y copia un único valor o todo el lote. Cada valor generado se valida contra los bits de versión y variante antes de mostrarse, y el generador también valida cualquier UUID que pegues: comprueba la forma, el nibble de versión 4 y los bits de variante RFC, no solo el patrón de guiones. El método se muestra abiertamente: 122 bits aleatorios con los campos de versión y variante fijados, exactamente como especifica la sección 4.4 de RFC 4122. Todo se ejecuta localmente: ningún valor que generes o valides se sube, registra ni almacena. Usa esta herramienta para datos de prueba, claves de base de datos, identificadores de eventos o cualquier lugar donde necesites un UUID v4 y quieras que la aleatoriedad venga de la fuente criptográfica de la plataforma en lugar de un servicio web compartido.

Se procesa localmente en tu navegador

1–100 por lote.

Formato

Cómo usar esta calculadora

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.

¿Cómo se calcula el resultado?

Tres fixtures de prueba

Genera tres UUID para datos semilla. Cada valor tiene el nibble de versión 4 (un 4 en el tercer grupo) y los bits de variante (8, 9, a o b al inicio del cuarto grupo), p. ej. 7f3a9c21-4d2e-4b8a-9c1e-2f3a4b5c6d7e: el patrón se distingue de un vistazo, así que un falso escrito a mano es fácil de detectar.

Entrada y resultado del ejemplo
Entrada Valor
count 3
format lowercase, hyphenated
Resultado 3 UUID v4 RFC 4122 válidos, cada uno verificado contra los bits de versión y variante

¿Cuál es la fórmula y sus supuestos?

Construcción de la versión 4

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

Términos de la fórmula
Símbolo Significado
version el nibble alto del tercer grupo fijado a 4
variant los dos bits altos del cuarto grupo fijados a 10

La aleatoriedad proviene de getRandomValues, criptográficamente seguro, de la plataforma.

¿Cuáles son los errores más comunes?

  • Usar Math.random() para identificadores: no es criptográficamente seguro; esta herramienta usa getRandomValues.
  • Aceptar cualquier cadena 8-4-4-4-12 como UUID v4: los bits de versión y variante también deben coincidir.
  • Escribir UUID a mano para fixtures: un solo carácter equivocado invalida el valor.
  • Generar identificadores en un servidor que los registra: esta herramienta es totalmente local.

¿Cuáles son los supuestos y las limitaciones?

  • Solo versión 4: la herramienta genera y valida v4; v1, v3, v5 y el v7 ordenado por tiempo no están soportados.
  • La generación en lote tiene un tope de 100 valores por lote para mantener la página receptiva.
  • La unicidad es probabilística, no garantizada: la herramienta indica las probabilidades en lugar de prometer una unicidad absoluta.

¿De dónde salen los números?

Última revisión 5 de agosto de 2026 · Versión 1.0.0 · Toolivaro no garantiza el contenido externo.

Preguntas frecuentes

¿Por qué mi UUID generado siempre tiene un 4 en el tercer grupo?

Ese es el campo de versión: la versión 4 de RFC 4122 fija el nibble alto de ese byte a 0100 (hexadecimal 4). Todo UUID v4 válido lo muestra: no es un error, es el formato.

¿Dos UUID generados están garantizados a ser distintos?

Ningún generador puede garantizar la unicidad: v4 aporta 122 bits aleatorios, así que las colisiones son astronómicamente improbables (alrededor de 1 entre 2^61 con dos mil millones de valores), pero no imposibles. La herramienta usa la aleatoriedad criptográfica de la plataforma, la fuente más fuerte disponible en el navegador.

¿Qué comprueba el validador?

La forma (grupos hexadecimales 8-4-4-4-12), el nibble de versión 4 y los bits de variante RFC. Una cadena con el patrón de guiones correcto pero la versión equivocada —como un UUID v1 o v3— se rechaza correctamente.

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.

Parte de Herramientas de contraseñas, hash y seguridad

¿Encontraste un error o tienes una corrección? Repórtalo: revisamos cada corrección.

¿Te ha sido útil?

Revisado por el equipo editorial de Toolivaro según nuestra metodología Metodología · Política editorial