UUID Generator
RFC 4122 Version 4
Generate RFC 4122 UUID version 4 values in bulk for database keys, fixtures, filenames, and distributed IDs. Uses browser crypto — nothing is uploaded.
This conversion runs only in your browser — nothing is uploaded.
- Version—
- Count—
What is this tool?
This UUID generator creates RFC 4122 version 4 identifiers. A UUID v4 is a 128-bit value whose uniqueness comes from randomness (Web Crypto / crypto.randomUUID), not from a MAC address or a central counter.
The familiar string form is 36 characters with hyphens: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx. The version nibble is 4; the variant bits identify the RFC layout. Remaining bits are random.
Use UUIDs for database rows, file names, test fixtures, event IDs, queue messages, and distributed traces. Do not use them as passwords or bearer tokens—uniqueness and secrecy are different properties.
Common use cases
- Bulk-create primary keys or fixture IDs for local seeding and integration tests
- Mint unique file or object names without a shared sequence generator
- Produce correlation / event IDs for logs and queues in distributed systems
How to use
- Keep UUID v4 (random) selected (the only version this page supports).
- Choose how many IDs to create (1–100) and click Generate. The first UUID appears on load.
- Copy a single row, or Copy All for a newline-separated list. Clear empties the list.
- Click Generate again whenever you need a fresh batch.
Examples
| Input / setting | Output | Notes |
|---|---|---|
Count 1, Generate | One xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx | Version digit is 4; variant nibble is 8, 9, a, or b. |
Count 3, Copy All | Three lines, one UUID each | Handy for paste into CSV / SQL seed scripts. |
| Clear then Generate | Empty list → new batch | Clear does not upload; it only resets local UI state. |
| Expect time-sortable IDs | Not available here | v4 is random order—use ULID / UUID v7 elsewhere if you need insert-order sort. |
Practical pitfalls
- v4 vs other versions: v1 embeds time/node data; v5 is name-based (SHA-1); ULID and UUID v7 aim for time-sortable keys. This tool is v4 only.
- Sortable UUID need: Lexicographic or B-tree insert order of v4 values is effectively random—hot indexes and locality suffer if you assumed chronological order. Pick a sortable ID scheme when that matters.
- UUIDs are identifiers, not secrets. Anyone who sees a UUID can reuse it; do not treat it as a password or API key.
- Collision risk is negligible for honest generators, but uniqueness is probabilistic—not a mathematical proof for adversarial settings.
References
이 도구는 무엇인가요?
RFC 4122 버전 4 UUID를 생성합니다. v4는 MAC·중앙 카운터가 아니라 Web Crypto(crypto.randomUUID) 난수로 고유성을 확보합니다.
문자열 형식은 하이픈 포함 36자 xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx입니다. 버전 니블은 4, 변형 비트는 RFC 레이아웃을 따릅니다.
DB 행, 파일명, 테스트 fixture, 이벤트·큐·분산 추적 ID에 씁니다. 비밀번호·토큰 대용으로 쓰지 마세요—고유성과 비밀성은 다릅니다.
자주 쓰는 경우
- 로컬 시드·통합 테스트용 PK / fixture ID 대량 생성
- 공유 시퀀스 없이 고유 파일·오브젝트 이름 만들기
- 분산 로그·큐용 correlation / event ID 발급
사용 방법
- **UUID v4 (난수)**를 선택한 상태(이 페이지가 지원하는 유일한 버전)로 둡니다.
- 개수(1–100)를 정한 뒤 Generate를 누릅니다. 진입 시 1개가 바로 생성됩니다.
- 행별 복사 또는 전체 복사(줄바꿈 구분). Clear로 목록을 비웁니다.
- 새 배치가 필요하면 다시 Generate합니다.
예시
| 입력 / 설정 | 출력 | 메모 |
|---|---|---|
개수 1, Generate | …-4…-… 형태의 1개 | 버전 자리 4, 변형은 8/9/a/b |
개수 3, 전체 복사 | UUID 3줄 | CSV·SQL 시드에 붙여넣기 용이 |
| Clear 후 Generate | 빈 목록 → 새 배치 | Clear는 로컬 UI만 초기화 |
| 시간순 정렬 ID 기대 | 미지원 | v4는 무작위 순서 — ULID/UUID v7 등 검토 |
실무에서 흔한 실수
- v4 vs 기타: v1은 시간/노드, v5는 이름 기반(SHA-1), ULID·UUID v7은 시간 정렬에 가깝습니다. 여기는 v4만입니다.
- 정렬 가능 UUID가 필요할 때: v4의 사전식·B-tree 삽입 순서는 사실상 무작위라 시간순을 가정하면 인덱스 지역성이 나빠집니다.
- UUID는 식별자이지 비밀이 아닙니다.
- 충돌 확률은 극히 낮지만 확률적 유일성입니다.
참고자료
このツールについて
RFC 4122 バージョン 4 UUID を生成します。v4 の一意性は MAC や中央カウンタではなく、Web Crypto(crypto.randomUUID)の乱数に依ります。
文字列はハイフン付き 36 文字 xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx です。バージョンニブルは 4、バリアントは RFC レイアウトです。
DB 行、ファイル名、テスト fixture、イベント/キュー/分散トレース ID 向けです。パスワードやトークンの代わりに使わないでください。
よくある用途
- ローカルシードや結合テスト用の主キー/fixture をまとめて作る
- 共有シーケンスなしで一意なファイル/オブジェクト名を切る
- 分散ログ・キューの correlation/event ID を発行する
使い方
- **UUID v4(乱数)**を選択したままにします(このページが対応する唯一の版)。
- 個数(1–100)を選び Generate。初回表示で 1 件生成されます。
- 行ごとのコピー、または すべてコピー(改行区切り)。Clear で一覧を空にします。
- 新しいバッチが必要なら再度 Generate します。
例
| 入力 / 設定 | 出力 | メモ |
|---|---|---|
件数 1, Generate | …-4…-… が 1 件 | バージョン桁は 4、バリアントは 8/9/a/b |
件数 3, すべてコピー | UUID 3 行 | CSV/SQL シード向け |
| Clear → Generate | 空 → 新しいバッチ | Clear はローカル UI のみ |
| 時系列ソート ID が欲しい | 非対応 | v4 は順不同 — ULID/UUID v7 等を検討 |
実務での落とし穴
- v4 とその他: v1 は時刻/ノード、v5 は名前ベース、ULID・UUID v7 は時系列寄り。ここは v4 のみ。
- ソート可能な UUID が必要な場合: v4 の辞書順・B-tree 挿入順は事実上ランダムです。
- UUID は識別子であり秘密ではありません。
- 衝突確率は極めて低いですが確率的一意性です。
参考資料
¿Qué es esta herramienta?
Genera identificadores UUID versión 4 (RFC 4122). La unicidad de v4 proviene de aleatoriedad Web Crypto (crypto.randomUUID), no de MAC ni contador central.
El formato familiar son 36 caracteres con guiones: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx. El nibble de versión es 4.
Úsalos para filas de BD, nombres de archivo, fixtures, eventos y trazas. No como contraseñas o tokens.
Casos de uso comunes
- Crear en bloque claves primarias o IDs de fixture para semillas y tests
- Nombrar archivos u objetos sin secuencia compartida
- Emitir IDs de correlación / evento para colas y logs distribuidos
Cómo usar
- Deja UUID v4 (aleatorio) (única versión soportada aquí).
- Elige cantidad (1–100) y pulsa Generate. Al cargar ya hay al menos uno.
- Copia una fila o Copiar todo (una línea por UUID). Clear vacía la lista.
- Pulsa Generate de nuevo para un lote fresco.
Ejemplos
| Entrada / ajuste | Salida | Notas |
|---|---|---|
Cantidad 1, Generate | Un UUID con 4 en versión | Variante 8/9/a/b |
Cantidad 3, Copiar todo | Tres líneas | Pegar en CSV / SQL |
| Clear → Generate | Lista vacía → lote nuevo | Clear solo reinicia la UI |
| IDs ordenables por tiempo | No disponible | v4 es orden aleatorio — valora ULID / UUID v7 |
Errores prácticos
- v4 frente a otras: v1 lleva tiempo/nodo; v5 es por nombre; ULID/UUID v7 buscan orden temporal. Aquí solo v4.
- Si necesitas UUID ordenable: el orden léxico de v4 es casi aleatorio y empeora la localidad del índice si esperabas orden de inserción.
- Un UUID no es un secreto.
- La colisión es improbable, no imposible.
Referencias
Qu'est-ce que cet outil ?
Génère des UUID version 4 (RFC 4122). L’unicité v4 vient de l’aléa Web Crypto (crypto.randomUUID), pas d’une adresse MAC ni d’un compteur central.
Format habituel : 36 caractères avec tirets xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx. Le nibble de version vaut 4.
Pour lignes de base, noms de fichiers, fixtures, événements et traces. Pas comme mot de passe ou jeton.
Cas d'usage courants
- Créer en masse des clés primaires / IDs de fixture pour seeds et tests
- Nommer fichiers ou objets sans séquence partagée
- Émettre des IDs de corrélation / événement pour files et journaux distribués
Comment utiliser
- Laissez UUID v4 (aléatoire) (seule version prise en charge).
- Choisissez le nombre (1–100) puis Generate. Au chargement, au moins un ID apparaît.
- Copiez une ligne ou Tout copier (une ligne par UUID). Clear vide la liste.
- Relancez Generate pour un nouveau lot.
Exemples
| Entrée / réglage | Sortie | Notes |
|---|---|---|
Nombre 1, Generate | Un UUID avec version 4 | Variante 8/9/a/b |
Nombre 3, Tout copier | Trois lignes | Pratique pour CSV / SQL |
| Clear → Generate | Liste vide → nouveau lot | Clear ne fait que réinitialiser l’UI |
| IDs triables dans le temps | Non disponible | v4 est désordonné — voir ULID / UUID v7 |
Pièges courants
- v4 vs autres : v1 porte temps/nœud ; v5 est basé sur un nom ; ULID/UUID v7 visent l’ordre temporel. Ici v4 uniquement.
- Besoin d’UUID triable : l’ordre lexicographique v4 est pratiquement aléatoire — mauvaise localité d’index si vous comptiez sur l’ordre d’insertion.
- Un UUID n’est pas un secret.
- Collision extrêmement improbable, pas impossible.
Références
这个工具是什么?
生成 RFC 4122 版本 4 UUID。v4 的唯一性来自 Web Crypto(crypto.randomUUID)随机数,而非 MAC 或中心计数器。
常见字符串为带连字符的 36 字符:xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx,版本半字节为 4。
适用于数据库行、文件名、测试 fixture、事件与分布式追踪 ID。不要当作密码或令牌。
常见用途
- 批量为本地种子与集成测试生成主键 / fixture ID
- 在没有共享序列的情况下命名文件或对象
- 为分布式日志与队列生成 correlation / event ID
如何使用
- 保持 UUID v4(随机)(本页唯一支持版本)。
- 选择数量(1–100)并点击 Generate。进入页面即生成至少 1 个。
- 逐行复制,或 全部复制(换行分隔)。Clear 清空列表。
- 需要新一批时再次 Generate。
示例
| 输入 / 设置 | 输出 | 说明 |
|---|---|---|
数量 1,Generate | 一个版本位为 4 的 UUID | 变体为 8/9/a/b |
数量 3,全部复制 | 三行 UUID | 便于粘贴到 CSV / SQL |
| Clear → Generate | 空列表 → 新批次 | Clear 只重置本地 UI |
| 需要按时间可排序 ID | 不支持 | v4 无序 — 可考虑 ULID / UUID v7 |
实践中的常见误区
- v4 与其他版本: v1 含时间/节点;v5 基于名称;ULID、UUID v7 偏时间有序。此处 仅 v4。
- 需要可排序 UUID 时: v4 的字典序/B-tree 插入顺序近似随机,若按插入时间排序会损害索引局部性。
- UUID 是标识符,不是密钥。
- 冲突概率极低,但仍是概率意义下的唯一。
参考资料
這個工具是什麼?
產生 RFC 4122 版本 4 UUID。v4 的唯一性來自 Web Crypto(crypto.randomUUID)亂數,而非 MAC 或中央計數器。
常見字串為含連字號的 36 字元:xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx,版本半位元組為 4。
適用於資料庫列、檔名、測試 fixture、事件與分散式追蹤 ID。不要當作密碼或權杖。
常見用途
- 批次為本機種子與整合測試產生主鍵 / fixture ID
- 在沒有共用序號的情況下命名檔案或物件
- 為分散式日誌與佇列產生 correlation / event ID
如何使用
- 保持 UUID v4(隨機)(本頁唯一支援版本)。
- 選擇數量(1–100)並點 Generate。進入頁面即產生至少 1 個。
- 逐行複製,或 全部複製(換行分隔)。Clear 清空清單。
- 需要新一批時再次 Generate。
範例
| 輸入 / 設定 | 輸出 | 說明 |
|---|---|---|
數量 1,Generate | 一個版本位為 4 的 UUID | 變體為 8/9/a/b |
數量 3,全部複製 | 三行 UUID | 便於貼到 CSV / SQL |
| Clear → Generate | 空清單 → 新批次 | Clear 只重設本機 UI |
| 需要依時間可排序 ID | 不支援 | v4 無序 — 可考慮 ULID / UUID v7 |
實務上常見陷阱
- v4 與其他版本: v1 含時間/節點;v5 基於名稱;ULID、UUID v7 偏時間有序。此處 僅 v4。
- 需要可排序 UUID 時: v4 的字典序/B-tree 插入順序近似隨機,若依插入時間排序會損害索引區域性。
- UUID 是識別碼,不是密鑰。
- 碰撞機率極低,但仍是機率意義下的唯一。
參考資料
Last reviewed: 2026-07-27
Frequently asked questions
- Which UUID version does this generate?
- UUID version 4 (random) only. Version and variant bits follow RFC 4122; the rest comes from `crypto.randomUUID` / Web Crypto. v1, v5, and ULID/UUID7-style sortable IDs are not offered here.
- How many UUIDs can I create at once?
- Between 1 and 100 per batch. Use Generate again for a fresh set, or Clear to empty the list.
- Are UUIDs guaranteed unique?
- Collisions for properly generated UUID v4 values are astronomically unlikely, but not mathematically impossible. Do not treat uniqueness as a substitute for secrecy (they are not passwords).
- Are generated UUIDs uploaded?
- No. Values are created and copied in your browser only.