PDFのミカタ

2つのファイルが同じか確かめる方法

公開日:2026年10月19日|最終更新:2026年10月19日|運営者情報

この記事のポイント
  • 1つ目
  • 2つ目
  • 見くらべる

名前の違う2つのファイルが、同じ内容かどうか。見た目や容量では、確実なことは分かりません。ファイルのハッシュ値を調べる(SHA-256) でハッシュ値を調べて比べれば、確かめられます。

手順

  1. 「ファイルを1つ選ぶ」で、1つ目のファイルを選びます。
  2. 表示されたハッシュ値(SHA-256)を、「SHA-256をコピー」でコピーして、メモしておきます。
  3. 「別のファイルを選ぶ」を押し、2つ目のファイルを選びます。
  4. 2つ目のハッシュ値が、表示されます。
  5. 2つの値を比べます。一致していれば、同じ内容です。
「照合したい値」の欄に、1つ目の値を貼り付けて「照合する」を押すと、自動で比べられます。

照合機能を使う方法

  1. 1つ目のファイルを選び、ハッシュ値をコピーする。
  2. 「別のファイルを選ぶ」で、2つ目を選ぶ。
  3. 「照合したい値」に、1つ目の値を貼り付ける。
  4. 「照合する」を押す。一致しなければ「一致しません」と出る。

同じと判断できる場合

違うと判断できる場合

注意:見た目は同じでも違う

写真を再保存したり、PDFを開いて保存し直したりすると、見た目は同じでも、中身(データ)が変わる場合があります。その場合は、ハッシュ値が異なります。

向いている場面

例

「報告書_最終.pdf」と「報告書_最終2.pdf」が、同じかどうか分からなかった。ハッシュ値を調べると、一致。どちらか一方を削除してよいと分かった。

つまずきやすい点

よくある質問

ファイル名が違っても、ハッシュ値は同じになりますか?

中身が同じなら、同じです。

まとめ

2つのハッシュ値を比べて、一致すれば同じ内容。見た目だけで判断しないのがコツです。

ファイルのハッシュ値を調べる(SHA-256)を使う(無料)

あわせて使えるツール

この解説が役に立ったら、応援してもらえるとうれしいです。

応援する(300円)ほしい物リストで応援

同じツールの、ほかの解説

解説の一覧を見る

How to Tell Whether Two Files Are Identical

Published: Oct 19, 2026 | Updated: Oct 19, 2026 | About (Japanese)

Key points
  • First
  • Second
  • Compare

Whether two files with different names have the same contents cannot be known for certain from appearance or size. Checking and comparing their hash values with Check a File's Hash (SHA-256) settles it.

Steps

  1. With "Choose one file", choose the first file.
  2. Copy the displayed hash (SHA-256) with "Copy SHA-256" and note it down.
  3. Press "Choose another file" and choose the second file.
  4. The second hash is displayed.
  5. Compare the two values. If they match, the contents are the same.
Pasting the first value into "Value to compare" and pressing "Compare" compares them automatically.

Using the compare feature

  1. Choose the first file and copy its hash.
  2. Choose the second with "Choose another file".
  3. Paste the first value into "Value to compare".
  4. Press "Compare". If they do not match, "No match" appears.

When you can judge them the same

When you can judge them different

Caution: looks the same but differs

Re-saving a photo or opening and re-saving a PDF may change the contents (data) even though it looks the same. In that case the hashes differ.

Good for

Example

Could not tell whether "report_final.pdf" and "report_final2.pdf" were the same. Checking the hashes, they matched. It was clear that one of them could be deleted.

Common stumbling blocks

Frequently asked questions

Even if the file names differ, is the hash the same?

If the contents are the same, yes.

Summary

Compare two hashes; if they match, the contents are the same. The tip is not to judge by appearance alone.

Use "Check a File's Hash (SHA-256)" (free)

Tools that go well with this

If this guide helped, a small tip would mean a lot.

Send a tip (¥300)Send a gift (Amazon wishlist)

More guides for this tool

See all guides