KHexEdit - Hex editor for the KDE desktop environment

2015-10-26: The information below is describing a hex editor I wrote mostly in 1999. It was integrated in the KDE desktop environment using KDE specific libraries. It will not compile or link with the current KDE libraries. But, if I find the time, I may port it to a pure Qt or GTK application. The page design is kept unchanged as a little glimpse into ancient web page design. End of 2015 comment.

KHexEdit is a versatile and customizable hex editor. It displays data in hexadecimal, octal, binary and text mode. New input can be inserted into the file or it can replace current data just like in a common text editor. Undo/Redo functionality is included as well as formatted printing and HTML export. KHexEdit is designed to integrate into the KDE environment but can be used as a standalone program as long as the KDE and Qt libraries are installed on your computer. It works for both KDE-1x and KDE-2x.

KHexEdit supports the common KDE drag and drop protocol as well as the newer XDND protocol for drag and drop of files onto the editor. The file manager kruiser (formerly known as kexplorer) uses the XDND protocol so you can drag a file from kruiser and drop it on KHexEdit.


This page has some screenshots from the KDE-1.x / Qt-1.4.x version.

Here is some from the KDE-2-alpha / Qt-2.x version.

Example of HTML exported data. The result is with a few exceptions WYSIWYG of your editor layout. Note: For best result you should resize your browser to match the table width.

This is a work in progress. Most functionality is complete, but some important missing pieces for a 1.0 release are:
  1. User documentation. In progress (updated 1999-09-20)
  2. The exported Html code it not 100% compliant with the spec. This will be improved.
Elements I would like to add sooner or later (in no particular order).
  1. Export in RTF format and as C arrays
  2. CRC generation/verification.
  3. Import text produced by hexdump etc.
  4. Show the size of a selected/marked area.
  5. Display column number (horizontal offset field).
  6. Allow printing of text (postscript works) directly to printer.
  7. Saving and restoring favorite layouts.
  8. Improved support for non-ASCII encodings (eg. EBCDIC).
  9. A record viewer. (for debugging data files etc.)
  10. etc... (Your wishes here.)

Latest source code:
The Qt-2 version works with the KDE KRASH release.

khexedit-0.8.5.tar.gz (1999-12-14) Using Qt-1.4.x OR Qt-2.x
khexedit-kde1x-0.8.5.tar.gz (1999-12-14) Using Qt-1.4.x only
khexedit-kde2x-0.8.5.tar.gz (1999-12-14) Using Qt-2.x only

ChangeLog: Have a look here

Installation: Please follow the instructions in the INSTALL file

Older source code
khexedit-0.8.4.tar.gz (1999-09-20)
khexedit-0.8.3.tar.gz (1999-08-20)
khexedit-0.8.2.tar.gz (1999-08-03)
khexedit-0.8.1.tar.gz (1999-07-13)
khexedit-0.8.0.tar.gz (1999-07-02)

Espen Sand
espensa at online dot no

Last update: 1999-12-14