UUIDジェネレーター

ランダムなUUID/GUIDをまとめて作成します。

// about

ツールについて

UUID(またはGUID)は、数字とアルファベットで構成される36文字のユニークな識別IDです。ファイルやデータベースの項目が重複しないように管理するために使われます。

使い方

  1. 必要なUUIDの個数を選択します。
  2. 大文字か小文字かを選びます。
  3. 「生成」ボタンを押して結果をコピーします。

このツールが使われる理由

  • 世界中で絶対に重複しないランダムなIDを生成できます。
  • ワンクリックで最大100個のIDをまとめて作成可能です。
  • 大文字・小文字のフォーマットを自由に選択できます。

よくある質問 (FAQ)

UUIDはどのような形をしていますか?

123e4567-e89b-12d3-a456-426614174000 のようにハイフンで区切られた36文字の文字列です。

他の人とUUIDが重複することはありますか?

確率上、重複することは事実上ゼロですので安心して使用できます。

生成されるUUIDのバージョンは何ですか?

最も一般的でランダム値ベースの「Version 4」のUUIDを生成します。

ガイド · データ · 3分で読めます

UUIDガイド:v4とv7の違い、データベースの主キーにUUIDを使うときのポイント

550e8400-e29b-41d4-a716-446655440000 のような文字列は、注文、ファイル、APIリクエストなどあらゆる場所で識別子として使われています。UUIDがどのように生成されるのか、どのバージョンを選ぶべきかを学びましょう。

UUID(Universally Unique Identifier)は128ビットの識別子で、中央のサーバーに問い合わせなくても、誰もが重複しないIDを作れるようにするものです。MicrosoftではGUIDと呼ばれます。現在の標準は2024年に公開されたRFC 9562です。

UUIDの構造、バージョンごとの違い、衝突が事実上起きない理由、そして主キーとしてv4よりv7が注目される理由を解説します。
ガイドを読む →
AIで作る

このツールをAIで自作してみましょう

自分用のバージョンが必要なら、作業指示プロンプトをAIチャットに貼り付けるか、スキルファイルをAIコーディングエージェントに保存してください。私たちが開発時に整理した機能、例外、テストケースが含まれています。

プロンプトとスキルは英語で提供しています。AIツールはどの言語でもよく理解できます。

AI作業指示プロンプト

Claude、ChatGPT、GeminiなどのAIチャットにそのまま貼り付けてください。

You are an experienced full-stack web developer. Build a web tool called "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.md)

Claude CodeなどのAIコーディングエージェントで .claude/skills/build-uuid-generator/SKILL.md に保存すると、このツールを作る・直すたびに再利用できます。

---
name: build-uuid-generator
description: Use when building or changing a UUIDジェネレーター tool. Build a generator for UUID v4 (random) and v7 (time-ordered).
---

# Build: 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

AIに任せるときのコツ

  • 最初の行に使用技術(React、Vue、素のHTMLなど)を書くと、プロジェクトに合ったコードになります。
  • コードを受け取る前に、テストケースを実行して結果を見せるよう依頼しましょう。
  • 本物のパスワード、顧客データ、APIキーは入力せず、サンプル値を使ってください。