hevi
Hex viewer with syntax highlighting
TLDR
SYNOPSIS
hevi file [flags]
DESCRIPTION
hevi (pronounced like "heavy") is a hex viewer similar to xxd or hexdump, with the added ability to parse structured file formats like ELF and PE executables and provide syntax highlighting for recognized sections. This makes it easier to visually identify headers, sections, and data regions in binary files.Custom color palettes can be specified using standard ANSI colors or truecolor. The viewer displays offset addresses, hexadecimal values, and ASCII representation in a clean, colored layout. Behavior can be controlled via flags, a config file, or environment variables (including NO_COLOR), with flags taking precedence.
PARAMETERS
-h, --help
Show help-v, --version
Print version--color, --no-color
Enable or disable colored output--lowercase, --uppercase
Choose the case of hex digits--size, --no-size
Show or hide the size column--offset, --no-offset
Show or hide the offset column--ascii, --no-ascii
Show or hide the ASCII representation--skip-lines, --no-skip-lines
Collapse or keep repeated identical lines--raw
Raw output, disabling most decorations--parser NAME
Force the specified file-format parser (e.g. elf, pe)--show-palette
Print the active color palette and exit
CAVEATS
Read-only viewer; cannot edit files. Format parsing is limited to supported file types (ELF, PE). Custom color palettes require a terminal with truecolor support for full fidelity.
HISTORY
hevi was created by Arnau478 and is written in Zig. It was designed to improve upon traditional hex viewers by adding structural awareness of common binary formats.
