DHEX is a hex editor.
It can be used to alter individual bytes in large files. Since it is a text-mode program based on ncurses, it can run in numerous scenarios.
Its distinguishing feature is the diff mode: With this mode, the user has a visual tool for file comparison. This mode is invoked when DHEX is called with two instead of one file as parameters.
The main screen is broken down into three columns: The first column contains the offset within the file for the current line. The second column contains the bytes in the file in hex format. Finally, the third column contains the same bytes, but this time in ascii format. If a byte is not printable, it is being substituted with a ‘.’.
How many bytes are are being shown in a line depends on the width of the terminal. For example, if the terminal is 80 characters wide, 16 bytes are being shown in each line.
Key Features
- Goto screen – jump to a specific address directly without scrolling.
- Bookmarks – up to 10 are available.
- Searching.
- Search logs lets you track changes in different iterations of files.
- HexCal – a small 64 bit calculator. This calculator is capable of not only performing arithmetic operations (+, -, *, /, modulo), but also logic ones (and, or, xor, shift).
- File correlation is available in diff mode. This will try to find the optimal offset between the two files. There are three algorithms available for finding this offset: Searching for the best match (as many bytes as possible are the same), the longest match (as many consecutive bytes match as possible), or the minimum difference (as little differences between the bytes as possible).
- Themeable.
Website: www.dettus.net/dhex
Support:
Developer: Thomas Dettbarn
License: GNU General Public License either version 2 of the License, or (at your option) any later version

DHEX is written in C. Learn C with our recommended free books and free tutorials.
Related Software
| Console-Based Hex Editors | |
|---|---|
| hexyl | Colored command-line hex viewer |
| DHEX | ncurses-based hex editor with diff mode |
| hexedit | View and edit hexadecimal files |
| hyx | Minimalistic hex editor |
| hexer | Multi-buffer editor for binary files |
| hx | Hex editor using plain C and POSIX libs |
| Hextazy | Colorful hexadecimal editor |
| hexhog | Configurable hex viewer and editor |
| fileobj | ncurses based hex editor |
| HexMe | Written in C++ that uses the Curses library |
| hexcurse-ng | Written in C |
| ddhx | Simple multi-platform modal text UI hex editor |
| bvi | Based on the vi text editor |
| XVI | Hex editor using ncurses |
| Hexit | Minimalistic hex editor |
Read our verdict in the software roundup.
| Alternatives to hexdump | |
|---|---|
| hexyl | Colored command-line hex viewer |
| DHEX | ncurses-based hex editor with diff mode |
| hexedit | View and edit hexadecimal files |
| hyx | Minimalistic but powerful hex editor |
| hexer | Multi-buffer editor for binary files |
| xxd | Make a hexdump or do the reverse |
| hx | Hex editor using plain C and POSIX libs |
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

