Skip to content
hateitall

File Compare

Find out for certain whether two files are identical and, if not, exactly where they differ.

Processed locallyIn: Any fileOut: Report

Loading tool…

How to use file compare

  1. Drop the first file in File A and the second in File B.

  2. Select Compare files.

  3. Read the verdict, the SHA-256 of each file and how many bytes differ.

  4. Look at the hex view around the first difference and the list of changed ranges, then download the report if needed.

What this tool does

  • Compares every byte in 4 MB steps, so large files work without freezing the page.
  • Reports the first differing offset, the number of differing bytes and up to 500 changed ranges.
  • Shows both files in hex side by side around the first difference, with changed bytes highlighted.
  • Computes SHA-256 of both files for files up to 1 GB and cross-checks it with the byte scan.

How the result is verified

The byte by byte result and the SHA-256 hashes must agree; if they ever do not, the tool reports an error instead of a verdict.

Frequently asked questions

Is comparing hashes enough to prove two files are the same?

For practical purposes, yes: no two different files with the same SHA-256 are known. This tool also compares every byte, so the verdict does not rest on the hash alone.

Can I compare files of different types?

Yes. Any two files can be compared, though the result is only meaningful when they are meant to be the same thing, such as two copies of a download.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Find identical files by SHA-256 hash, whatever they are called

Folders · Any files→ ReportModerate on device

Raw bytes of any file in hex and ASCII, with search and a data inspector

Any file→ Hex viewLight on device

Real type, SHA-256, entropy, text and media details for any file

Any file→ ReportModerate on device

Side-by-side pages, magenta pixel differences, text word changes, and a local JSON report.

PDF→ JSONHeavy on device

Compare two images with a slider or difference view

PNG · JPEG · WebP +→ PNGLight on device