Skip to content
Jellykit

File Compare

Check whether two files are byte-for-byte identical and find the exact offset where they first differ.

  • Runs on your device
  • Works in the background
Loading tool

About File Compare

Is the download the same as the original? Did the backup copy come through intact? Drop one file on each side and this tool reads both, byte by byte, and tells you whether they match. If they do not, it gives the position of the first difference, the bytes around it from each file, and how many bytes differ in all.

It works on any kind of file, including ones far too large to open in an editor, and nothing leaves your device.

How it works

  1. Both files are read in 4 MB chunks at the same positions, so even very large files never sit in memory whole.
  2. Every byte of one file is compared with the byte at the same position in the other. The result rests on that comparison, not on a hash.
  3. If the files differ, the offset of the first mismatch is reported in decimal and hexadecimal, with eight bytes either side from each file.
  4. Optionally, a SHA-256 digest of each file is computed on the same pass, ready to copy or check against a published checksum.

Questions

Does it compare hashes or the actual bytes?

The actual bytes. SHA-256 digests are shown as well, because they are handy for checking against a published checksum, but the verdict comes from comparing every byte directly.

What does "differing bytes" count?

The number of positions, within the length both files share, where the bytes are not equal. If one file is longer, its extra bytes are reported as the size difference instead.

Can it show every difference, like a text diff?

No. It reports whether the files match, where they first part and how many bytes differ. To see line-by-line changes in text files, use a text diff tool.

How large can the files be?

Each file can be up to 2 GB. They are read in chunks, so memory use stays small, but very large files take as long as it takes your device to read them.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.