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

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


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

Tags:

Macos

Binary

Diff