I use hexer for this, which is an editor too. http://blog.metaclassofnil.com/?p=757 There's also a vim mode for hex, which I use less often: https://vi.stackexchange.com/questions/2232/how-can-i-use-vi...
https://www.gnu.org/software/emacs/manual/html_node/emacs/Ed...