LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

hevi

Hex viewer with syntax highlighting

TLDR

View a file in hex
$ hevi [path/to/file]
copy
Read from stdin
$ cat [path/to/file] | hevi
copy
Disable colored output
$ hevi --no-color [path/to/file]
copy
Use uppercase hex digits
$ hevi --uppercase [path/to/file]
copy
Force a specific parser (e.g. elf, pe)
$ hevi --parser [elf] [path/to/file]
copy
Raw mode (disable size, offset, ASCII columns)
$ hevi --raw [path/to/file]
copy
Show the active color palette
$ hevi --show-palette
copy

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

INSTALL

brew install hevi
copy
nix profile install nixpkgs#hevi
copy

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.

SEE ALSO

hexyl(1), xxd(1), hexdump(1), readelf(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid