LocalExcelTool
はじめる

MD5 ハッシュ

文字列のMD5ハッシュを計算。32文字の16進数で出力。

MD5 ハッシュとは

MD5とは、任意のデータを128ビット(32文字の16進数)のハッシュ値に変換するハッシュ関数です。現在はセキュリティ用途には推奨されません。

🔒 処理はすべてブラウザ内で完結し、データは送信されません。

このツールの前提

処理場所
このページのブラウザ内(JavaScript / Canvas)
アップロード
なし — ファイルは端末の外に出ません
オフライン
ページを開いた後は通信不要

128 bits, computed locally, no longer a security primitive

MD5 produces a 128-bit digest written as 32 hex characters. This page implements the compression function directly in JavaScript, so the input never leaves the browser and the result matches the reference implementation byte for byte — including for empty input, which is d41d8cd98f00b204e9800998ecf8427e.

The algorithm has been broken for collision resistance since 2004, and the 2017 SHAttered work produced two different PDF files with the same MD5 in public. That means an attacker can craft a second file matching a known digest, so MD5 cannot establish that a file is the one you expect when the attacker controls the file.

Where it is still perfectly fine

Content addressing where nobody is attacking you: cache keys, deduplication fingerprints, ETag-style change detection, and checking that a large download arrived intact against a digest the sender published. All of those ask 'did the bytes change', not 'did someone forge this'.

The failure mode to avoid is password storage. MD5 is fast by design — billions of guesses per second on a GPU — and unsalted MD5 databases are cracked wholesale. Password hashing needs a deliberately slow algorithm (bcrypt, scrypt, Argon2), not a fast one.

Why the same text gives a different hash

Hashing operates on bytes, and identical-looking text can be different bytes. A trailing newline, a Windows CRLF versus a Unix LF, a UTF-8 file with a byte-order mark, or full-width versus half-width punctuation all change the digest completely. When a checksum mismatches, compare file sizes and line endings before assuming corruption.

Very large inputs are also a practical limit here: the computation is single-threaded in the page, so a multi-gigabyte file will make the tab unresponsive long before it finishes. Command-line tools stream the input; a browser cannot.

使い方

  1. 1.文字列を入力
  2. 2.ハッシュを計算
  3. 3.コピー

他の方法との比較

同じ変換をする方法は 3 つあります。ブラウザ内(このページ)、サーバー側の変換サービス、デスクトップアプリ。差がつくのは速度ではなく、ファイルがどこへ行くかと、無料でどこまでできるかです。

観点このツールサーバー側の変換サービス
ファイルの処理場所このページのブラウザ内ベンダーのサーバー(アップロード後)
アカウント不要多くの場合必要(無料枠の制限解除に登録を求める)
無料で扱えるサイズサイズ制限なし(回数制限もなし)数ファイル/時間、または 5〜10MB 程度で課金 wall
料金無料。Pro は月 $9(大きいファイルと AI 機能のみ)サブスクが一般的。おおむね月 $7〜15(2026 年 11 月時点)
オフライン一度開けば通信不要不可
20MB を処理し始めるまで待ち時間なし(アップロードが無い)アップロードが支配的(10Mbps 上りで約 16 秒)
保証できないこと出力は決定的です。他の実装と突き合わせて検証できます同じ(変換の原理は変わらない)

サーバー側のサービスが優れている点は明確にあります。巨大なファイル、チームでの共有、変換履歴の管理、スクリプトからの自動化。逆に「1 回だけ、手元のファイルを別形式にしたい」という今回の用途では、アップロードの待ち時間と登録の手間だけが増えます。

よくある質問

MD5とは?

データを固定長のハッシュ値に変換する関数です。チェックサムなどに使われます。

パスワード保存に使えますか?

いいえ。MD5は衝突攻撃に弱く、パスワード保存には適しません。

データは送信されますか?

いいえ、ブラウザ内で計算します。

この変換で失われるもの

エンコードとハッシュは Web Crypto API または純 JavaScript 実装で行います。出力は決定的で、同じ入力からは常に同じ結果になります。他のツールと突き合わせて検証できます。

その他のエンコード / デコード