UUID ジェネレーター
UUID v4 を瞬時に生成。まとめて複数個も作れます。
UUID ジェネレーターとは
UUIDジェネレーターとは、重複しない128ビットの識別子(UUID)を生成するツールです。v4は暗号的に安全な乱数を使い、データベースの主キーやセッションIDなどに使われます。
🔒 処理はすべてブラウザ内で完結し、データは送信されません。
このツールの前提
- 処理場所
- このページのブラウザ内(JavaScript / Canvas)
- アップロード
- なし — ファイルは端末の外に出ません
- オフライン
- ページを開いた後は通信不要
Version 4 means random, and that is the whole guarantee
A v4 UUID is 122 random bits plus 6 fixed bits that mark the version and variant, rendered as 32 hex digits in five groups. This page calls crypto.randomUUID where available, falls back to getRandomValues with the RFC 4122 bit-fixing done by hand, and only degrades to Math.random if neither exists — a chain worth knowing, because the last fallback is not cryptographically strong.
The 122 bits are the reason collisions are not a practical concern: you would need to generate about 2.7×10^18 of them before a one-in-a-billion chance of a duplicate. That is why v4 is accepted for database keys and request IDs without coordination.
What v4 does not give you
It carries no timestamp, no machine identity and no ordering. Two UUIDs generated microseconds apart sort arbitrarily, which matters the moment someone uses the primary key as a sort key and gets a table in random order. If ordering is needed, use UUIDv7 or a ULID — both put a timestamp in the high bits.
It also leaks nothing, which is usually good: the older v1 format embedded a timestamp and a MAC address, and that was a real privacy problem when UUIDs appeared in URLs. Anyone planning to use v1 should know it can expose when and where a record was created.
Storage and formatting
The canonical form is 36 characters with hyphens; the same value without hyphens is 32 characters and stores in half the space of a CHAR(36) column. PostgreSQL has a native uuid type at 16 bytes, and MySQL's BINARY(16) with a conversion is the compact option.
Case does not matter under the specification — uppercase and lowercase are the same UUID — but string comparison in most databases does. Normalise to lowercase on write, or two records for the same id will never match.
使い方
- 1.バージョンを選択
- 2.生成数を指定
- 3.「実行する」をクリック
他の方法との比較
同じ変換をする方法は 3 つあります。ブラウザ内(このページ)、サーバー側の変換サービス、デスクトップアプリ。差がつくのは速度ではなく、ファイルがどこへ行くかと、無料でどこまでできるかです。
| 観点 | このツール | サーバー側の変換サービス | デスクトップアプリ |
|---|---|---|---|
| ファイルの処理場所 | このページのブラウザ内 | ベンダーのサーバー(アップロード後) | 自分の PC(アプリをインストール) |
| アカウント | 不要 | 多くの場合必要(無料枠の制限解除に登録を求める) | 不要(ライセンス認証は必要な場合あり) |
| 無料で扱えるサイズ | サイズ制限なし(回数制限もなし) | 数ファイル/時間、または 5〜10MB 程度で課金 wall | ディスクとメモリ次第 |
| 料金 | 無料。Pro は月 $9(大きいファイルと AI 機能のみ) | サブスクが一般的。おおむね月 $7〜15(2026 年 11 月時点) | 買い切り、またはサブスク |
| オフライン | 一度開けば通信不要 | 不可 | 可 |
| 20MB を処理し始めるまで | 待ち時間なし(アップロードが無い) | アップロードが支配的(10Mbps 上りで約 16 秒) | アプリの起動のみ |
| 保証できないこと | 値は端末の CSPRNG で生成され、サーバーには送られません | 同じ(変換の原理は変わらない) | 同じ。ただし書式の再現はより忠実な場合がある |
サーバー側のサービスが優れている点は明確にあります。巨大なファイル、チームでの共有、変換履歴の管理、スクリプトからの自動化。逆に「1 回だけ、手元のファイルを別形式にしたい」という今回の用途では、アップロードの待ち時間と登録の手間だけが増えます。
よくある質問
UUIDとは?
128ビットの universally unique identifier。32文字の16進数をハイフンで区切った形式です。
安全性は?
ブラウザの暗号的乱数(crypto.randomUUID / getRandomValues)を使います。