Kharabeesh
On-device ع

Compare Two Files

Check whether two files are truly identical: every byte is compared and each gets a SHA-256, with the first difference, the count of differing bytes and their regions in a side-by-side hex view. Any type or size.

Free, no sign-up Your data stays on your device Works offline after first open

The tool

Loading the tool…

How to use

  1. Choose the first file (A) and the second file (B).
  2. Wait while every byte is compared and each file is hashed.
  3. See the result: identical or not, the first difference and the similarity.
  4. Step through the differing regions in the hex view.

Privacy & how it works

Processes your data in the browser and stores nothing.

  • Engine: lightweight in-page code, no external libraries.
  • Works offline after you open it once.

Frequently asked questions

How is this different from text diff?

This compares bytes at the same positions, so it suits images, PDFs, programs and backups. To see added and removed lines in two text files, use the Text Diff tool.

Why is similarity low when the files look close?

The comparison is positional: inserting one byte near the start shifts every later byte, so they all differ. That is normal for binary comparison.

What is SHA-256 for?

It is a fingerprint of the content: equal hashes mean identical files. You can also compare it with the hash a download site publishes to make sure the file was not changed.

Can it handle large files?

Yes. Both files are read in 4 MB chunks, so they are never fully loaded into memory. Time depends on their size and your device.

Related tools