https://github.com/corkami/pics
@Ange You would probably enjoy ImHex - https://github.com/WerWolv/ImHex#screenshots
JPEG and commons formats are defined, but it's pretty easy to define any of your own. Mostly copypaste and a slight modification of C/C++ structures will do unless you want some extra magic with functions and so on.