Your hex editor should color-code bytes
by tobr on 4/21/2026, 9:52:09 AM
https://simonomi.dev/blog/color-code-your-bytes/
Comments
by: xyx0826
If you analyze binary files often, I highly recommend binvis - <a href="http://binvis.io/" rel="nofollow">http://binvis.io/</a>. It creates a colored minimap for files it loads and has two available arrangements. Pixel color is based on range of bytes, eg ASCII/null bytes/FF bytes. Besides, it’s a pretty basic hex viewer that runs in your browser. The minimap is extremely powerful for identifying interesting areas and patterns in unknown data.
4/23/2026, 9:30:45 AM
by: Archelaos
This article made me think how I could use similar techinques to colour code the data in database tables. Has anyone here tried that and has some recommendations where to start, etc.?
4/23/2026, 9:24:58 AM
by: psychoslave
That said, even colored these dumps still feels unappealing to me — so yes this is admittedly subjective gut jumping in the conversation. I get that occult form can also be an attractive force.<p>The post put on the table an interesting point about how to improve the presentation layer to fit what’s human cognition is good at spotting (in general, or at least for the expected audience with some training). And it does start proposing something with these color schemes. But isn’t it kind of missing the forest for the tree? Actually why do we even have rendering with [012345678ABCDEF], when a specific set of (colored/imaged?) glyphs would be able to make more obvious what’s on the table? Or even beyond the hexadecimal grouping, wouldn’t be more relevant to render something "intuitively" far more easy to grap without several layer of internalized interpretation through acculturation?
4/23/2026, 9:01:09 AM
by: azalemeth
I really like hexyl [1], which does this by default.<p><a href="https://github.com/sharkdp/hexyl" rel="nofollow">https://github.com/sharkdp/hexyl</a>
4/23/2026, 9:01:24 AM
by: asibahi
When I read this article a few days ago it inspired me to create my own hex viewer : <a href="https://ar-ms.me/thoughts/3sl-a-sweet-hex-utility/" rel="nofollow">https://ar-ms.me/thoughts/3sl-a-sweet-hex-utility/</a><p>The cool thing about it imo (outside of colors) is a `--windows` flag. Which separates the hex view into partitions: so `-w 2:-3:5` shows the first two bytes on a line, then skips three bytes, then shows the next 5 bytes on a line, then the rest of the file. Easy to use combined with a terminal's up arrow.
4/23/2026, 8:52:53 AM
by: js8
I think semantic coloring (based on structure) is more useful. Also (can't help as someone working with z/OS), if you really want to make hex output readable, I recommend using big-endian machine.
4/23/2026, 8:32:14 AM
by: bandrami
Emacs's hexl-mode does this, incidentally, though annoyingly by default it makes all faces the same color. I never understood why it defines the faces but then doesn't customize them.
4/23/2026, 8:31:43 AM
by: a_t48
I've started doing this with hashes in a CLI I'm working on. For slow prints, it's somewhat helpful <a href="https://asciinema.org/a/aD38Pk88CZgSZqtq" rel="nofollow">https://asciinema.org/a/aD38Pk88CZgSZqtq</a> but for debug dumps with many many hashes it really helps readability and tracking hashes across lines.
4/23/2026, 8:32:53 AM
by: samzong_
[dead]
4/23/2026, 8:55:09 AM