Categories


Popular topics

Editing a binary file in UltraEdit's hex editor

Shortcut: Ctrl+H

The hex edit command toggles the active window from regular plain text editing into hex editing mode. Hex editing mode is typically used for binary files. These files often contain non-printable characters and are not plain text files. However, in some cases hex editing is useful or necessary for plain-text files as well.

When in hex mode, UltraEdit splits the screen area into three areas as shown:

File Offset Hexadecimal representation ASCII representation
00000000h:
00000010h:
00000020h:
31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 61
62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71
72 73 74 75 76
;123456789012345a
;bcdefghijklmnopq
;rstuv

You can configure the number of hex characters shown in a line while in hex edit mode in Settings » Editor » Hex mode.

The file offset area shows the current byte offset of the character at the beginning of the line to form the beginning of the file.

The hexadecimal representation shows the hexadecimal value of each file byte as a two character field separated from the next byte by a space (' ').

The ASCII representation provides the view of printable characters. Non-printable characters are shown with a period character ('.').

In hex mode, all typing is done in overstrike mode, i.e., typing a character overwrites the active character rather than inserting a new character. To insert or delete characters in hex mode use the insert/delete command from the Hex mode dropdown in the tab.

Editing in either the ASCII area or the hex area automatically updates the other area after typing a character.

Cut, copy and paste are supported in hex mode.

If Character info is selected in the while in hex mode, a dialog will open showing the decimal value and hexadecimal value of the active byte as well as how this will be displayed in plain text mode (this may vary based on font and script). Along with this, the offset of the active byte is displayed in both decimal and hexadecimal formats.

MediaWiki spam blocked by CleanTalk.