Binary File Diff
Compare two binary files in your browser: differing byte ranges in hex with offsets, a match summary, SHA-256 of each file, and no upload or size cap.
🔒 This tool runs entirely in your browser. Your files are never uploaded to a server.
Developer
Binary File Diff
File A
File B
Choose two files to compare them byte by byte.
Both files are read in this page and compared in memory. Nothing is uploaded, so the only limit is your device's available memory.
How the Binary File Diff works
- Drop the two files into the A and B slots, or click to choose them. The comparison runs as soon as both are loaded.
- Read the verdict first: whether the files are byte-for-byte identical, how many bytes differ, and the SHA-256 of each file.
- Check the offsets. A small difference at the very start is usually a header or version field, not corrupted data.
- Switch between differences only and the full file, and between 16 and 32 bytes per row, to suit what you are looking at.
- Jump straight to any offset in hex, step through differences one at a time, or click a region in the list to land on it.
- Copy or download the report when you need the offsets in a ticket or a commit message.
FAQ
How do I compare two binary files to check if they are the same?
Drop both files in. The tool compares every byte and tells you outright whether they are byte-for-byte identical, and it shows the SHA-256 of each file — if the two hashes match, the files are identical, which is the check most people are really after.
How can I compare two binary files without the command line?
That is what this page is for. It gives you the same answers cmp and fc /b give — whether the files match, the offset of the first difference, and how many bytes differ — as a hex view you can scroll, with no install and no terminal.
How do I compare binary files in Linux or Windows?
On Linux, cmp -l a.bin b.bin lists every differing byte and cmp -s is a silent same/different check; diff reports only that binary files differ. On Windows, fc /b a.bin b.bin prints differing offsets in hex. This tool covers the same ground in the browser and adds the region summary those commands do not give you.
What does the identical percentage mean?
Matching bytes divided by the size of the larger file. Using the larger file as the denominator means a file with an extra tail cannot score 100% just because everything it shares with the shorter file matches.
Why do two "identical" exports differ?
Timestamps and embedded build metadata. Many formats stamp the creation time into a header, so byte-identical output requires a deterministic writer. A handful of differing bytes near offset 0 is the classic signature of that.
Does file size difference mean corruption?
Not by itself. Padding, alignment, and trailing metadata all change size without changing meaning. Where the difference sits matters more than how big it is, which is why the summary reports the first differing offset and the individual regions.
How large a file can I compare?
There is no fixed cap — both files are read into memory in the page, so the limit is your device. The hex view stays fast on large files because it renders a window of rows around the offset you are looking at rather than the whole file.
Are my files uploaded?
No. Both files are read in the page and compared in memory, which also means very large files are limited by your device's memory rather than an upload cap.
How we compare
| Feature | Online Tool Store | AutoDevSuite Hex Master | DiffNow | Decompiler.com Diff |
|---|---|---|---|---|
| Byte-level diff with hex offsets | ✓ | ✓ | Not shown | Decompiles to source instead |
| Files never leave the browser | ✓ | ✓ | ✗ | ✗ |
| No file-size cap | ✓ | Not stated | 2 MB free / 8 MB premium | Not stated |
| 16 or 32 bytes per row, jump to any offset | ✓ | ✓ | Not shown | ✗ |
| SHA-256 of both files beside the diff | ✓ | Separate tool | Not shown | Not shown |
| Works without an account or premium tier | ✓ | ✓ | Premium tier | ✓ |
These three answer different questions. Decompiler.com diffs decompiled source, which is the right tool when you care about what a JAR or APK changed rather than which bytes moved. DiffNow uploads your files and compares the first 2 MB unless you pay. AutoDevSuite is the closest in kind — a browser-based hex viewer with a compare mode. Binary File Diff answers the practical question first — how much differs, and where — before dropping you into a hex view, and it never sends the files anywhere.