Generador de UUID

Crea valores UUID/GUID aleatorios por lotes.

// about

Sobre esta herramienta

Un UUID (o GUID) es un identificador único de 36 caracteres formado por letras y números. Ayuda a nombrar archivos o registros de base de datos para evitar duplicados.

Cómo usarla

  1. Elige cuántos UUID necesitas (de 1 a 100).
  2. Selecciona el formato en mayúsculas o minúsculas.
  3. Haz clic en 'Generar' y copia los IDs creados.

Por qué usar esta herramienta

  • Genera IDs únicos garantizados que jamás se repetirán.
  • Crea hasta 100 IDs únicos a la vez con un solo clic.
  • Opción para elegir entre mayúsculas y minúsculas.

Preguntas frecuentes (FAQ)

¿Qué aspecto tiene un UUID?

Tiene la forma 123e4567-e89b-12d3-a456-426614174000, separado por guiones.

¿Pueden coincidir dos UUID generados?

Matemáticamente, la probabilidad de que se repitan es prácticamente cero.

¿Qué versión de UUID se crea aquí?

Esta herramienta crea UUID versión 4, generados con números aleatorios.

Guías · Datos · 7 min de lectura

Guía de UUID: v4 frente a v7 y UUID como claves primarias

Cadenas como 550e8400-e29b-41d4-a716-446655440000 identifican pedidos, archivos y peticiones de API en todas partes. Aprende cómo se generan los UUID y qué versión elegir.

Un UUID (Universally Unique Identifier) es un identificador de 128 bits que permite a cualquiera crear ID que no choquen sin consultar a un servidor central. Microsoft lo llama GUID. El estándar actual es la RFC 9562, publicada en 2024.

Estructura de un UUID, diferencias entre versiones, por qué no colisionan en la práctica y por qué UUID v7 supera a v4 como clave primaria.
Leer guía →
Créalo con IA

Crea esta herramienta tú mismo con IA

¿Quieres tu propia versión? Copia el prompt en un chat de IA o guarda el archivo de skill para un agente de programación. Incluyen las funciones, casos límite y pruebas que usamos al crearla.

El prompt y la skill están en inglés, que las herramientas de IA entienden perfectamente.

Prompt de instrucciones para IA

Pégalo tal cual en Claude, ChatGPT o Gemini.

You are an experienced full-stack web developer. Build a web tool called "Generador de UUID" that meets the requirements below.

## Goal

Build a generator for UUID v4 (random) and v7 (time-ordered).

## Core features

- Choose version v4 or v7
- Generate 1 to 1,000 at once
- Upper/lower case and with/without hyphens
- Output as lines, comma-separated or a JSON array
- Copy all

## Inputs

- Version, count, format options

## Outputs

- List of UUIDs
- Text in the chosen format

## Edge cases and handling rules

- Keep v7 values sortable even within the same millisecond
- Prevent counts above the limit
- Fallback for browsers without crypto.randomUUID
- Set version and variant bits according to RFC 9562

## Implementation requirements

- Build it as a single page (HTML, CSS, JavaScript) that runs entirely in the browser, and never send the user's input to a server.
- Make the UI responsive and easy to use on mobile; label every input and keep everything keyboard accessible.
- Add a Copy button for results and show clear, friendly error messages for invalid input.
- Keep the core logic in functions separate from the UI so it can be unit-tested.

## Definition of done (test cases)

- The third group of a v4 UUID starts with '4'
- Several v7 values sort in creation order
- Removing hyphens yields 32 characters

First outline your implementation plan in at most five lines, then write the complete code, and finally explain how to check the test cases above.

Skill (SKILL.md)

Guárdalo como .claude/skills/build-uuid-generator/SKILL.md para que agentes como Claude Code lo reutilicen cada vez que crees o cambies la herramienta.

---
name: build-uuid-generator
description: Use when building or changing a Generador de UUID tool. Build a generator for UUID v4 (random) and v7 (time-ordered).
---

# Build: Generador de UUID

## Goal

Build a generator for UUID v4 (random) and v7 (time-ordered).

## Workflow

1. Review the required features, inputs and outputs below and ask about anything missing first.
2. Implement the core logic as pure functions separate from the UI.
3. Check the logic against the test cases in the verification list.
4. Build a responsive UI with an input form, a result area and a Copy button.
5. Reproduce each edge case listed under Rules and refine the error messages.

## Core features

- Choose version v4 or v7
- Generate 1 to 1,000 at once
- Upper/lower case and with/without hyphens
- Output as lines, comma-separated or a JSON array
- Copy all

## Inputs

- Version, count, format options

## Outputs

- List of UUIDs
- Text in the chosen format

## Rules

- Keep v7 values sortable even within the same millisecond
- Prevent counts above the limit
- Fallback for browsers without crypto.randomUUID
- Set version and variant bits according to RFC 9562
- Build it as a single page (HTML, CSS, JavaScript) that runs entirely in the browser, and never send the user's input to a server.

## Verification

- [ ] The third group of a v4 UUID starts with '4'
- [ ] Several v7 values sort in creation order
- [ ] Removing hyphens yields 32 characters

Consejos para trabajar con IA

  • Indica tu stack (React, Vue o HTML puro) en la primera línea para obtener código adecuado.
  • Pide que ejecute las pruebas listadas y muestre los resultados antes de aceptar el código.
  • No pegues contraseñas reales, datos de clientes ni claves de API; usa valores de ejemplo.