Compare Two Files

Are these two files the same? Drop both and the tool compares them byte by byte, then shows their sizes, both SHA-256 checksums and, if they differ, the exact byte where the difference starts with the bytes around it from each file. It works for any type, whether photos, PDFs, videos, installers or backups, and runs entirely in your browser, so neither file is uploaded.

What do you want to do?

First file

Drop the first file

Any type, any size

Maximum file size: 16384MB

Second file

Drop the second file

Any type, any size

Maximum file size: 16384MB

Reading files runs in your browser. Your files never leave this device.

Features

  • Byte-for-byte comparison of any two files

  • Stops at the first difference and shows its position in decimal and hex

  • The bytes around the difference from both files, side by side

  • SHA-256 checksum of each file to note or share

  • Tells you when one file is simply a longer copy of the other

  • Reads both files in 1 MB pieces with progress, and can be cancelled

  • Free, no signup. Nothing is uploaded; both files are read by your browser.

When to compare two files

Two copies with the same name

Find out whether report-final.pdf on your laptop and on the pen drive are really the same, before deleting one.

After copying or backing up

Confirm that a file copied to a drive, cloud folder or phone arrived complete.

Checking a re-download

See whether a file you downloaded again is the same version as before.

Build and export checks

Developers can confirm two builds, exports or generated files are bit-identical, or find where they start to differ.

How the comparison works

Byte by byte

Both files are read in matching 1 MB pieces and compared byte for byte until the first difference. If none is found and the sizes match, the files are identical. Two files with the same contents are identical even if their names and dates differ.

Checksums

The SHA-256 checksum of each file is shown too. Equal checksums mean equal files, so you can note one down and compare later, or check a file against a checksum published on a download page.

What it does not do

  • It does not show a line-by-line text diff. For text, code or two versions of a document use the diff checker.
  • It cannot say that two photos look alike; only exact copies count. A resized or re-saved photo is a different file.

Related tools

Compare Two Files - FAQ