vddhx

A hex editor that works for you.

Structure overlays, ddhx's find syntax, splits, compare, hashes, and a minimap of the whole file. Native and GPU-drawn.

v0.2.0MITWindows, macOS, Linux

tour

Command-oriented.

Frames from vddhx's own screenshot build.

The omnibar in command mode, listing commands with their keys

omnibar

One prefix per job.

Ctrl+E, then type. No prefix switches tabs and reopens recent files.

This page has one too.

  1. >commandsCtrl+Shift+P
  2. :go to an offsetCtrl+G
  3. /findCtrl+F
  4. =inspect or write a valueAlt+I
  5. @bookmarksCtrl+B marks
  6. #structure fields 
  7. ?shortcuts 

structure

It understands structures.

Fields colored by role, named in a tooltip and in the breadcrumbs: PNG / IHDR / width. Every byte is covered, broken files included.

formatopening bytestext
PNG89504e470d0a1a0a.PNG....
ZIP504b0304PK..
JPEGffd8ff...
GIF474946383961GIF89a
BMP424d????????00000000BM ....
RIFFWAV, AVI, WebP52494646????????57415645RIFF WAVE
A PNG in vddhx, with a tooltip naming the field under the pointer: IHDR / width
IHDR / width
The omnibar in field mode, listing the fields of a PNG with their offsets and sizes
# every field

find syntax

Pattern Expressions.

Used for searching, inserting, and replacing data.

patternlittle-endianbig-endianwhy
utf8:hi6869sametext, as typed
utf16:hi6800690000680069follows byte order
utf16bom:hifffe68006900feff00680069the mark, then the text
utf8:"a\nb"610a62samedouble quotes take escapes
utf8:'a\nb'615c6e62samesingle quotes do not
ebcdic037:HELLOc8c5d3d3d6samea single-byte set
x:de ad be efdeadbeefsameprefix carries over
x16:112222111122hex value, follows byte order
u32:1234d2040000000004d2unsigned, four bytes
i16:-2fefffffetwo's complement
i8:min80sameedges have names
f32:pidb0f494040490fdbnamed constants
x:89 ? ? 4789????47sameany one byte
u16:1..91..9samea range of values

workspace

Documents, views, panes.

  1. 1

    Document

    Bytes, edits, bookmarks. One per file.

  2. 2

    View

    Caret, selection, scroll. Many per document.

  3. 3

    Pane

    Tabs over a hex panel. Drag to split.

One pane on the left, two stacked on the right, the same file in three views at different offsets
mid.bin x3

Compare

Two views scroll together, differences tinted. } and { jump between them.

Big files

Only visible rows are read. The minimap fills in the background.

Two files compared, the original on top, the changed bytes in red below, the caret on the first difference
difference at 0x8

toolbox

And the rest.

File

  • Disks and partitions, opens as read-only first

Edit

  • Undo digitCtrl+Z
  • Copy hexCtrl+C
  • Copy textCtrl+Shift+C

Search

  • Find and replaceCtrl+R
  • Bookmark every match
  • Skip a run of identical bytesCtrl+LeftCtrl+Right

Bookmarks

  • Named bookmarks, ddhx's bookmark fileCtrl+B

View

  • Inspect the caret as every common typeAlt+I
  • Write a value: =u32 0x11223344=
  • Little or big endian
  • Any row width up to 256, or auto
  • ASCII, CP437, EBCDIC, Mac OS Roman
  • Hex, decimal or octal offsets

Tools

  • CRC, MD5, RIPEMD-160, SHA-1, SHA-2

Commands

  • Insert or replace with a file>

Screen readers work through AccessKit.

settings

Make it yours.

Settings is a tab. Everything lands in .vddhxrc, in ddhx's syntax.

Themes carry every color. Dark, light, auto, or your own.

# ~/.config/vddhx/.vddhxrc
theme auto
theme-dark midnight
columns auto
address hex
charset ascii

bind ctrl+k find-next
bind h left
unbind ctrl+b

color zero gray
color bookmark black:#d0a020
color selection :#304060
vddhx with the light theme
vddhx with the dark theme
theme darktheme light
Settings, Keys: every command with its keys, Add and Reset buttons
Settings > Keys
Settings, Colors: a swatch and a value per color scheme
Settings > Colors

lineage

ddhx with windows.

ddhx is the terminal hex editor. vddhx shares its core: syntax, commands, colors, bookmark files.

One native binary, no runtime.

language
D, builds with DMD, GDC or LDC
windows
SDL3
interface
dentrite
drawing
OpenGL 3.3, software fallback
text
FreeType and HarfBuzz
access
AccessKit screen readers
core
ddhx's documents, patterns and charsets
license
MIT

download

Get vddhx.

The .deb and .rpm use your distribution's SDL3, FreeType and HarfBuzz. Other builds bundle them.

Every release and the changelog.

Or build it

DMD 2.108, GDC 14 or LDC 1.38 and up, DUB, SDL3, FreeType, HarfBuzz:

git clone https://github.com/dd86k/vddhx
cd vddhx
dub build

Static, nothing to install:

dmd -run tools/build-libs.d
dub build -c static