File compare: find out if two files are identical, byte by byte
Pick File A and File B. The tool tells you at once whether every byte matches and, if not, where the first difference is.
- Free, no sign-up
- Your files and data stay on your device
- No watermarks or limits
0 bytes uploaded. Everything happens in this tab.
How to use it
- Choose File A and File B. The comparison starts as soon as both are selected.
- Read the result: “The files are identical” or “The files are different”, with both sizes and both SHA-256 hashes.
- If they differ, look at the First difference at offset, the number of Different bytes, and the hex view of A and B around that point.
Example
A holds “Hello, World!” and B holds “Hello, Wurld!”, each with one line break:
The files are different. Same size, different content. Size A: 14 B Size B: 14 B First difference at offset: 8 (0x8) Different bytes (in the shared length): 1 (about 7.14%)
About this tool
Sometimes you only need to know whether two files are exactly the same: a backup against the original, a download against a copy, an exported file before and after a change. This tool reads both files and compares them byte by byte, then confirms with a SHA-256 hash for each. If the sizes or any byte differ, it tells you so and points to the first position that does not match, shown in decimal and in hexadecimal, together with a short hex view of both files around that spot.
When the sizes are different, the tool compares the part both files share. If one file is simply a longer version of the other, the shared part is identical, the number of different bytes is 0, and the first difference is reported at the end of the shorter file. Also note that the figure for different bytes is counted position by position. If a single byte is inserted near the start, everything after it shifts and a large share of the following bytes will count as different, even though the change is tiny.
This is a binary comparison, not a semantic one. Two documents that look the same can still differ in their bytes because of a different saving date, metadata, compression or line endings, and two images with the same pixels can be encoded differently. For text where you want to see what changed line by line, the text diff tool is a better fit. Each file can be up to 200 MB, and nothing is uploaded: both are read in your browser.
Frequently asked questions
Does “identical” mean they look the same?
It means every byte is the same, which also means they look and behave the same. The reverse is not true: files that look the same can differ in bytes because of metadata or encoding.
What if the files have different sizes?
They are different by definition. The tool still compares the shared length and shows the first differing offset, which is the length of the shorter file when everything before it matches.
Can it show me what changed in a text file?
It shows the bytes around the first difference only. To see added and removed lines, use the text diff tool.
Why do two copies of the same document differ?
Common reasons are different saving times, embedded metadata, a different program that re-saved it, or Windows and Unix line endings.
Is there a size limit?
Yes, 200 MB per file, because both files are read into memory in your browser. Nothing is sent to a server.