A Hex Editor for Reverse Engineers, Programmers and people that value their eye sight when working at 3 AM.
- Featureful hex view
- Byte patching
- Patch management
- Copy bytes as feature
- Hex string
- ASCII-Art hex view
- HTML self contained div
- String and hex search
- Colorful highlighting
- Goto from start, end and current cursor position
- Custom C++-like pattern language for parsing highlighting a file’s content
- Automatic loading based on MIME type
- arrays, pointers, structs, unions, enums, bitfields, using declarations, little and big endian support, conditionals and much more!
- Useful error messages, syntax highlighting and error marking
- Data importing
- Base64 files
- IPS and IPS32 patches
- Data exporting
- IPS and IPS32 patches
- Data inspector allowing interpretation of data as many different types (little and big endian)
- Huge file support with fast and efficient loading
- String search
- Copying of strings
- Copying of demangled strings
- File hashing support
- CRC16 and CRC32 with custom initial values and polynomials
- MD4, MD5
- SHA-1, SHA-224, SHA-256, SHA-384, SHA-512
- Disassembler supporting many different architectures
- ARM32 (ARM, Thumb, Cortex-M, AArch32)
- MIPS (MIPS32, MIPS64, MIPS32R6, Micro)
- x86 (16-bit, 32-bit, 64-bit)
- PowerPC (32-bit, 64-bit)
- IBM SystemZ
- Region highlighting
- Data Analyzer
- File magic-based file parser and MIME type database
- Byte distribution graph
- Entropy graph
- Highest and avarage entropy
- Encrypted / Compressed file detection
- Helpful tools
- Itanium and MSVC demangler
- ASCII table
- Regex replacer
- Mathematical expression evaluator (Calculator)
- Hexadecimal Color picker
- Built-in cheat sheet for pattern language and Math evaluator
- Doesn’t burn out your retinas when used in late-night sessions
The custom C-like Pattern Language developed and used by ImHex is easy to read, understand and learn. A guide with all features of the langauge can be found in the wiki or a simpler version in ImHex under
Help -> Pattern Language Cheat Sheet
For format patterns, includable libraries and magic files, check out the ImHex-Patterns repository. Feel free to PR your own files there as well!
See latest nightly builds on the artifacts result of the Build action here.
NOTE: We currently only provide nightly builds for macOS (x86_64)
You need a C++20 compatible compiler such as GCC 10.2.0 to compile ImHex. Moreover, the following dependencies are needed for compiling ImHex:
- libmagic, libgnurx, libtre, libintl, libiconv
- nlohmann json
- Brew (macOS only)
Windows and Linux
Find all-in-one dependency installation scripts for Arch Linux, Fedora, Debian/Ubuntu and/or MSYS2 in dist.
After all the dependencies are installed, run the following commands to build ImHex:
cmake -DCMAKE_BUILD_TYPE=Release ..
To create a standalone zipfile on Windows, get the Python standard library (e.g. from https://github.com/python/cpython/tree/master/Lib) and place the files and folders in
lib/python3.8 next to your built executable. Don’t forget to also copy the
libwinpthread-1.dll from your mingw setup next to the executable.
On both Windows and Linux:
- Copy the files from
libfolder next to your built executable.
- Place your magic databases in the
magicfolder next to your built executable
- Place your patterns in the
patternfolder next to your built executable
- Place your include pattern files in the
includefolder next to your built executable
To build ImHex on macOS, run the following commands:
brew bundle --no-lock --file dist/Brewfile
CC=$(brew --prefix llvm)/bin/clang CXX=$(brew --prefix llvm)/bin/clang++ PKG_CONFIG_PATH="$(brew --prefix openssl)/lib/pkgconfig":"$(brew --prefix)/lib/pkgconfig" cmake -DCMAKE_BUILD_TYPE=Release ..
- Thanks a lot to ocornut for their amazing Dear ImGui which is used for building the entire interface
- Thanks to nlohmann for their json library used for project files
- Thanks to aquynh for capstone which is the base of the disassembly window
Source : KitPloit – PenTest Tools!