Hexyl is a simple hex viewer for the terminal that uses color to distinguish different types of bytes. The color scheme is taken from the Ubuntu terminal color scheme, so it may look different in your terminal. Hexyl can be installed on Ubuntu, Debian, Fedora, Arch Linux, Void Linux, Gentoo Linux, macOS, FreeBSD, Termux, Nix, and other Linux distributions by using various methods such as official packages, Homebrew, MacPorts, or binary builds. It can also be installed from source via cargo, snap, or scoop. Hexyl is licensed under either the Apache License or the MIT license.
https://github.com/sharkdp/hexyl