Hex Editor

DHEX – ncurses-based hex editor with diff mode

DHEX is a terminal-based hex editor built around ncurses. It is designed for examining and modifying binary files while retaining a compact keyboard-driven interface that works well in local terminals and remote shell sessions.

The normal editing view presents file offsets, hexadecimal byte values and their ASCII representation side by side. The amount of data shown on each line adapts to the width of the terminal.

A notable part of DHEX is its integrated binary comparison mode. Opening two files together presents them for visual comparison, with correlation tools available to help align related data when corresponding regions do not start at the same offsets. This makes DHEX useful not only for ordinary byte editing but also for examining successive versions of binaries, memory dumps and other low-level data.

This is free and open source software.

Key Features

  • View and edit individual bytes in binary files from an ncurses interface.
  • Display file offsets, hexadecimal values and ASCII representations alongside each other.
  • Adapt the number of displayed bytes to the available terminal width.
  • Open two files simultaneously in a dedicated visual diff mode.
  • Highlight differences between corresponding regions of the compared files.
  • Correlate two files to determine a useful relative offset before comparison.
  • Offer best-match, longest-match and minimum-difference correlation methods.
  • Jump directly to a specified file address without scrolling through intervening data.
  • Assign base addresses to files, which is useful when working with partial memory dumps.
  • Use separate base addresses and offsets for each file while operating in diff mode.
  • Provide bookmarks for returning quickly to significant locations.
  • Search for hexadecimal byte sequences and ASCII strings.
  • Accept searches from the command line for automated or repeatable inspection.
  • Read and write search logs, allowing search results to be reused when examining different iterations of a file.
  • Include HexCal, a 64-bit calculator supporting arithmetic, modulo, logical and bit-shift operations.
  • Use configurable themes for adapting colours to different terminals and preferences.
  • Load configuration settings from a user-specified configuration file.

Website: www.dettus.net/dhex
Support:
Developer: Thomas Dettbarn
License: GNU General Public License v2.0

DHEX
Click for full size image

DHEX is written in C. Learn C with our recommended free books and free tutorials.


Related Software

Console-Based Hex Editors
hexylColored command-line hex viewer
hyxMinimalistic hex editor
hexeditView and edit hexadecimal files
hexerMulti-buffer editor for binary files
dz6Terminal hex editor with Vim-inspired key bindings
hxHex editor using plain C and POSIX libs
pokeExtensible editor for inspecting and modifying structured binary data
HextazyColorful hexadecimal editor
HexPatchInteractive TUI for viewing, editing and patching binary files
hexhogConfigurable hex viewer and editor
DHEXncurses-based hex editor with diff mode
fileobjncurses based hex editor
vblTerminal-based hexadecimal viewer and editor for binary files
HexMeWritten in C++ that uses the Curses library
hexcurse-ngWritten in C
ddhxSimple multi-platform modal text UI hex editor
bviBased on the vi text editor
XVIHex editor using ncurses
HexitMinimalistic hex editor

Read our verdict in the software roundup.

Alternatives to hexdump
hexylColored command-line hex viewer
DHEXncurses-based hex editor with diff mode
hexeditView and edit hexadecimal files
hyxMinimalistic but powerful hex editor
hexerMulti-buffer editor for binary files
xxdMake a hexdump or do the reverse
hxHex editor using plain C and POSIX libs

Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted