A plain-language guide

What is a hex editor?

Open a photo and you see a picture. Open a letter and you see words. Those programs are reading the same kind of thing a hex editor reads — a file — and then drawing their own idea of it. A hex editor skips that drawing. It shows the file as the computer actually stores it: a long row of bytes.

A byte is a number from 0 to 255. Hex editors write each number as two hexadecimal digits, from 00 to FF, because two digits is exactly one byte and the columns stay straight. People also call this kind of program a byte editor or a binary editor. It is the same tool.

OffsetHex bytesText column
00000000  48 65 6C 6C 6F  Hello
The word Hello, stored as five bytes. 48 is the code for a capital H.

Three things worth knowing first

The file is just bytes

Nothing inside a file is a letter, a pixel, or a date until some program decides to read it that way.

Hex is the notation

The file is not “stored in hex.” Hex is a compact way to write the numbers so you can see every byte.

Text is a second view

The column on the right is the same bytes, interpreted as characters. A dot usually means “not a printable character,” not a period.

What you can and cannot do with one

You can look at any file, change any byte, and jump to an exact position. That is enough to answer questions the original application will not: is this file empty, is there a name buried in it, did two copies diverge at byte 4,096?

You cannot, just by opening the editor, know which bytes are a width, a date, or a checksum. That knowledge is the file format. A hex editor will change a byte whether or not you understand it, so keep a copy of anything you care about before you type.

Two editors from the same line

This guide is published by the makers of Synalyze It! and Hexinator. Both are hex editors that can also color a file from a grammar, so a format you have described once is labeled the next time. The difference is the operating system.

macOS

Synalyze It!

A hex editor for the Mac. Read and change the bytes, then describe a file format once so the next file of that type is already labeled.

Visit Synalyze It!

Windows and Linux

Hexinator

The same kind of editor for Windows and Linux: the raw bytes, grammars for formats you see often, and scripts when a format needs a calculation.

Visit Hexinator