imhex

feature-rich hex editor designed for reverse engineers and programmers

TLDR

Open a file in ImHex
$ imhex [path/to/file]
Create a new empty file
$ imhex --new
Open file and select a byte range using hex offsets
$ imhex --open [path/to/file] --select [0x100] [0x200]
Display file information (type, entropy, etc.)
$ imhex --file-info [path/to/file]
Calculate SHA-256 hash of a file
$ imhex --hash sha256 [path/to/file]
Generate hex dump of a file
$ imhex --hexdump [path/to/file]
Display version information
$ imhex --version

SYNOPSIS

imhex [options] [file]

DESCRIPTION

ImHex is a feature-rich hex editor designed for reverse engineers and programmers. It provides advanced analysis tools including a custom pattern language for parsing binary formats, data inspection, hash calculation, and visualization features.The editor supports multiple data views, bookmark management, and extensibility through plugins. It can handle large files efficiently and includes built-in parsers for common file formats.

PARAMETERS

--new

Create a new empty file
--open FILE
Open specified file
--select START END
Select byte range (hexadecimal offsets)
--file-info FILE
Display file information
--hash ALGORITHM FILE
Calculate file hash (md5, sha1, sha224, sha256, sha384, sha512)
--hexdump FILE
Generate hexadecimal dump
--version
Display version information

INSTALL

sudo dnf install imhex
sudo apk add imhex
nix profile install nixpkgs#imhex

CAVEATS

GUI application, though some features available via command line. Requires significant memory for very large files. Pattern language has a learning curve.

HISTORY

ImHex was created by WerWolv and first released in 2020. It was designed as a modern replacement for older hex editors, incorporating features specifically useful for reverse engineering and binary analysis.

SEE ALSO

xxd(1), hexdump(1), hexedit(1), od(1), radare2(1)