hexedit

View and edit files in hexadecimal or ASCII format

brewmacoslinux
Try with needOr install directly
Source

About

View and edit files in hexadecimal or ASCII

Commands

hexedit

Examples

Open a file in hexedit for viewing and editing$ hexedit /path/to/file
Edit a binary file and modify specific byte values$ hexedit /usr/bin/someprogram
View and edit disk partitions or device files$ hexedit /dev/disk0