Is there any graphical Binary Diff tool for Mac OS X?
MacosBinaryDiffMacos 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
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.
You can find it on GitHub.
Solution 5 - Macos
http://en.wikipedia.org/wiki/Comparison_of_hex_editors
Maybe "HexEdit by Lane Roathe", wxHexEditor or UltraEdit
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.