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)
WinMerge is not available for Mac but there are plenty of alternatives that runs on macOS with similar functionality. The best Mac alternative is Meld, which is both free and Open Source.
It's accessed through the Terminal, so first you'll open that program from your Applications> Utilities folder. When you've got it ready to go, type diff in at the prompt followed by a space, and then drag the two folders you want to compare and drop them on the Terminal window.
Display the differences between two files, or each corresponding file in two directories. Each set of differences is called a "diff" or "patch". For files that are identical, 'diff' normally produces no output; for binary (non-text) files, 'diff' normally reports only that they are different.
I just discoverd Hex Fiend – love at first sight! Open both binary files then do File > Compare x and y
or Shift+cmd+D
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With