macOS / binaries /

xxd

/usr/bin/xxd
Make a hexdump or do the reverse

xxd creates a hex dump of a given file or standard input. It can also convert a hex dump back to its original binary form.

source: man