Toolivaro

無料のUUID ジェネレーター

暗号学的に安全な乱数から RFC 4122 バージョン 4 の UUID を生成します。単発・一括生成に対応し、完全にローカルで動作します。

UUID ジェネレーターは、暗号学的に安全な乱数(プラットフォームの getRandomValues。ご利用のランタイムが安全な ID に使うのと同じソース)から、RFC 4122 バージョン 4 の UUID を生成します。クリック 1 回で 1 つの UUID を生成するほか、フィクスチャ、シードデータ、テストスイート用に最大 100 個を一括生成できます。小文字・大文字の出力切り替え、ハイフン付き・ハイフンなしの形式切り替えに対応し、1 件だけのコピーや一括コピーもできます。生成したすべての値は表示前にバージョンとバリアントのビットで検証され、貼り付けた UUID の検証も行えます。形状、バージョン 4 のニブル、RFC のバリアントビットをチェックするので、ダッシュのパターンだけのチェックではありません。手法も明示しています。バージョンとバリアントのフィールドを固定した 122 ビットの乱数で、RFC 4122 のセクション 4.4 が定めるとおりです。すべてローカルで処理されるため、生成・検証した値がアップロードされたり、ログに記録されたり、保存されたりすることはありません。テストデータ、データベースキー、イベント ID、または v4 UUID が必要で、乱数を共有の Web サービスではなくプラットフォームの暗号ソースから得たいあらゆる場面でご利用ください。

ブラウザ内でローカル処理されます

1回の生成で1〜100件。

形式

この計算機の使い方

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.

結果はどうやって計算されるの?

3 件のテストフィクスチャ

シードデータ用に 3 つの UUID を生成します。各値にはバージョン 4 のニブル(3 番目のグループの 4)とバリアントビット(4 番目のグループの先頭の 8、9、a、b のいずれか)があり、たとえば 7f3a9c21-4d2e-4b8a-9c1e-2f3a4b5c6d7e のようになります。パターンが一目でわかるため、手打ちの偽物もすぐに見抜けます。

入力と出力の例
入力
count 3
format lowercase, hyphenated
結果 RFC 4122 v4 の有効な UUID 3 件。それぞれバージョン・バリアントのビットで検証済み

計算式と前提は?

バージョン 4 の構成

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

計算式の記号
記号 意味
version 3 番目のグループの上位ニブルを 4 に設定
variant 4 番目のグループの上位 2 ビットを 10 に設定

乱数はプラットフォームの暗号学的に安全な getRandomValues から得られます。

よくある間違いは?

  • ID に Math.random() を使うこと。これは暗号学的に安全ではありません。このツールは getRandomValues を使用します。
  • 8-4-4-4-12 の形式なら何でも v4 UUID とみなすこと。バージョンとバリアントのビットも一致する必要があります。
  • フィクスチャ用に UUID を手打ちすること。1 文字間違えるだけで不正な値になります。
  • ログを取るサーバー上で ID を生成すること。このツールは完全にローカルで動作します。

前提と制限は?

  • バージョン 4 のみ対応です。このツールが生成・検証するのは v4 で、v1、v3、v5、時刻順の v7 には対応していません。
  • ページの応答性を保つため、一括生成は 1 バッチあたり 100 件までです。
  • 一意性は確率的であり、保証されるものではありません。このツールは絶対的な一意性を約束する代わりに、その確率を明示します。

数値の出典は?

最終確認 2026年8月5日 · バージョン 1.0.0 · Toolivaro 外部コンテンツを保証するものではありません。

よくある質問

生成した UUID の 3 番目のグループが必ず 4 なのはなぜですか?

それがバージョンフィールドです。RFC 4122 のバージョン 4 はそのバイトの上位ニブルを 0100(16 進の 4)に固定します。有効な v4 UUID はすべてこの形をしています。バグではなく、フォーマットです。

生成した 2 つの UUID が必ず異なることは保証されますか?

どのジェネレーターも一意性を保証できません。v4 は 122 ビットの乱数を提供するため、衝突は天文学的に起こりにくい(20 億個でおよそ 2^61 分の 1)ものの、不可能ではありません。このツールはブラウザで利用できる最強のソースである、プラットフォームの暗号乱数を使用しています。

バリデーターは何をチェックしますか?

形状(8-4-4-4-12 の 16 進グループ)、バージョン 4 のニブル、RFC のバリアントビットです。ダッシュのパターンは正しくてもバージョンが違う文字列(v1 や v3 の UUID など)は正しく拒否されます。

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.

このコレクションの一部 パスワード・ハッシュ・セキュリティツール

間違いを見つけましたか? 報告する — すべての修正を確認します.

このツールは役に立ちましたか?

Toolivaro編集チームが当社の方法論に基づいてレビュー済み 計算方法 · 編集方針