ediHex

ediHex 0.2b

CI

GitHub

ediHex hex editor

Native macOS hex editor for inspecting, editing, and analyzing binary files.

Features

Hex editor:

Workspace:

Analysis:

Built-in terminal

Scriptable command line in the panel below the editor (active document pane). Disabled in comparison panes. Type help for the full reference.

Command Description
goto Jump to a byte offset
hex, bin, ascii Dump bytes in different formats
sum, xor, avg, min, max Byte math over ranges
len, count Length and byte frequency
read Read typed values at an offset (--le / --be)
find Search hex or ASCII patterns
cmp Compare two byte ranges
crc, hash Checksums and digests
help ranges, help filters, help crc Detailed syntax docs

Ranges support decimal and hex offsets, multiple segments, and sampling filters (--every, --skip, etc.).

Requirements

CI runs on macos-15 with Xcode 26.

Build & run

git clone https://github.com/tunerok/edihex.git
cd edihex
open ediHex.xcodeproj

In Xcode: select the ediHex scheme → Run (⌘R).

Don’t want to develop an app? Please check out the Releases section.

Run tests

xcodebuild test \
  -project ediHex.xcodeproj \
  -scheme ediHex \
  -destination 'platform=macOS'

Test coverage includes byte-array I/O, virtual scroll window, row loading and caches, pattern search, hashing, CRC, comparison diff mapping, highlight spans, histogram building, and the terminal command parser/tokenizer.

Keyboard shortcuts

Action Shortcut
New file ⌘N
Open file ⌘O
Save / Save As ⌘S / ⇧⌘S
Undo / Redo ⌘Z / ⇧⌘Z
Copy selection as hex ⇧⌘C
Find ⌘F
Next / previous difference (compare) F3 / ⇧F3
Split right / down ⌘\ / ⇧⌘\
Next / previous tab ⇧⌘] / ⇧⌘[
Close tab / group ⌘W / ⇧⌘W
Help ⌘?

Project structure

ediHex/
├── ediHexApp.swift          # App entry point, menus, settings
├── ContentView.swift        # Root layout
├── Core/ByteArray/          # B+ tree, file/memory slices, chunked I/O, writer
├── Models/                  # Document, selection, CRC, find, highlight models
├── ViewModels/              # Workspace and pane state
├── Views/                   # SwiftUI views (grid, compare, tools, terminal)
└── Services/                # I/O, search, hash, CRC, scroll, compare, terminal

ediHexTests/                 # Unit tests (18 files, 22 suites, 224 tests)

Contributing

Issues and pull requests are welcome. Please keep changes focused and match the existing code style.

  1. Fork the repository
  2. Create a feature branch
  3. Add tests when changing behavior in Services/ or Core/
  4. Open a pull request with a clear description

License

GNU General Public License v3.0 — Copyright © 2026 tunerok.

ediHex is free software: you may redistribute and/or modify it under the terms of the GPL v3 or (at your option) any later version.

Screenshots

Screenshot 1

Screenshot 2

Screenshot 3

Screenshot 4

Screenshot 5

Screenshot 6

Screenshot 7

Screenshot 8