Is there any graphical Binary Diff tool for Mac OS X?

MacosBinaryDiff

Macos Problem Overview


Are there any Binary Diff tools for Mac OS X with a GUI? There are a gazillion text-based diff tools, but I need to compare two binary files. Essentially two Hex Editors with Dec/Hex View next to each other (the binary files are a custom file format, so not images or anything that has a more specialized diff tool)

Macos Solutions


Solution 1 - Macos

I just discoverd Hex Fiend – love at first sight! Open both binary files then do File > Compare x and y or Shift+cmd+D

Hex Fiend

Solution 2 - Macos

You could store the hex of each binary in temp files, then compare them with diff. This would give you the visual hex difference.

xxd -c 1 file1 | cut -d ' ' -f 2 > file1.hex
xxd -c 1 file2 | cut -d ' ' -f 2 > file2.hex

diff file1.hex file2.hex

xxd creates a hex dump, and we're telling it to print one byte per line, then cut splits on space and compares the correct column

you could also use od instead of xxd

Solution 3 - Macos

there is Ellié Computing Merge (http://www.elliecomputing.com) (NB: I work for ECMerge). it can compare arbitrarily large files with usual Hex+ASCII views and side by side visual diff. it works on mac and linux/windows as well

Solution 4 - Macos

You can use colorbindiff.pl it's a simple perl script that does exactly what you want, a side-by-side (and colored) binary diff. It shows byte changes and byte additions/deletions.

colorbindiff output snapshot

You can find it on GitHub.

Solution 5 - Macos

Solution 6 - Macos

My go-to is for stuff like this is 010 Editor. It has a very customizable hex bin-diff, configurable min match length, synchronized scrolling, and much more.

Beyond Compare 4 does a pretty good job, especially if you have multiple binary files to compare. However, it's matching isn't obviously configurable and can be wonky, depending on the use-case.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMichael StumView Question on Stackoverflow
Solution 1 - MacosStefan SchmidtView Answer on Stackoverflow
Solution 2 - MacosMatthewView Answer on Stackoverflow
Solution 3 - MacosarmelView Answer on Stackoverflow
Solution 4 - MacosjjazzbossView Answer on Stackoverflow
Solution 5 - MacosVladislavView Answer on Stackoverflow
Solution 6 - MacosjsearsView Answer on Stackoverflow