Compare Files
Compare two files byte by byte to see if they are identical. Shows SHA-256 of each, size difference, how many bytes differ and a hex view of each change.
Runs in your browser. Nothing is uploaded.
About Compare Files
Compare Files checks whether two files are exactly the same and, if they aren't, shows where they differ. You get both SHA-256 hashes, the size difference, the number and percentage of differing bytes and a list of every changed region.
Pick a region to see the two files side by side in hex with the changed bytes highlighted. That makes it easy to spot a flipped bit in a backup, a changed header, or the one setting that differs between two saved configs.
It works on any file type, including images, executables and archives. For comparing text line by line, a text diff tool is a better fit.
How to use Compare Files
- Open the tool above and add your file or text.
- Adjust the options to suit.
- Download or copy the result. Nothing is uploaded at any point.
Frequently asked questions
Can two different files have the same hash?
For SHA-256 this has never been observed. If the hashes match, the files are identical for every practical purpose.
Why does almost everything differ after one inserted byte?
A byte comparison lines files up by position. An inserted or deleted byte shifts everything after it, so every later byte looks different.
Is Compare Files free and private?
Yes. Compare Files is completely free, with no sign-up and no watermark. Your files are processed inside your browser and never uploaded to a server, so they stay on your device.