Hex Viewer & Binary Viewer, Hex Editor (Large Files)

Hex Viewer & Binary Viewer, Hex Editor (Large Files), a VS Code extension by Zovo

Hex viewer, binary viewer and hex editor for VS Code that opens files of any size (4 GB and more) in under a second. Insert and delete bytes, compare two files byte by byte, go to offset, find hex or text, a data inspector, copy as C array or base64. Free, works offline.

Install in VS CodeOpen the Marketplace page

Free, MIT license. Needs VS Code 1.90.0 or newer. Extension ID zovo.zovo-hex-viewer, version 0.3.7.

Free, no sign-in, works offline. See and edit the bytes of any file in VS Code, from a 0-byte file to a 4 GB disk image. Insert and delete bytes, compare two files byte by byte, go to an offset, search, read values in the data inspector and copy as hex, C array, Python bytes or base64.

A PNG file open in Hex Viewer inside VS Code. Bytes 0x10 to 0x13 of the IHDR chunk are selected, and the data inspector on the right reads them as big-endian uint32 1400, the image width. The toolbar has Go to offset, Find with Hex, Text and UTF-16 modes, bytes per row, the text encoding and Copy as. The status line shows the offset, the selection, PNG image, 134.5 KB and Overwrite.

Real output from VS Code 1.142 on macOS. The file is robot-arm.png. scripts/e2e-vscode.mjs installed the packaged extension in a clean VS Code profile, opened the file and saved the window through the debug port.

Quick start

  1. Install Hex Viewer.
  2. Right-click any file in the Explorer and pick "Open in Hex Viewer". Files that end in .bin, .dat, .img, .rom, .dmp or .dump open in Hex Viewer when you click them.

For a file that is already open, use "Open in Hex Viewer" in the editor title menu (...) or the tab's right-click menu, or "Reopen Editor With...". Text files such as .txt, .ts and Intel .hex files still open in the text editor. "Hex Viewer: Get Started" in the Command Palette opens a short tour.

Questions people ask

Is Hex Viewer & Binary Viewer, Hex Editor (Large Files) free?

Yes. Hex Viewer & Binary Viewer, Hex Editor (Large Files) is free and MIT licensed.

How do I install Hex Viewer & Binary Viewer, Hex Editor (Large Files)?

Click "Install in VS Code" above, or search for zovo.zovo-hex-viewer in the Extensions view.

Large files

A 4 GB sparse file at its last row, offset 0x100000030, with LASTBYTE in the text column. The row above shows NEAR-THE-4GB-EDGE at offset 0xFFFFFFF0.

Find, go to and copy

firmware.bin with the 6 bytes DE AD BE EF 13 37 found at offset 0x2FFFD, across a 64 KB edge. The match is highlighted in the hex and text columns and the toolbar says Match at 0x2FFFD.
ActionKeysNotes
Go to offsetCtrl+G (Cmd+G)0x1F40, 1F40h, 8000, +0x100, -16, end, end-15. Also the box at the left of the toolbar, and a click on the status bar.
FindCtrl+F (Cmd+F)Hex 50 4B 03 04 with ?? for any byte, text (with Aa to ignore case) or UTF-16. Unsaved edits are found too.
Next, previous matchEnter, Shift+Enter, F3, Shift+F3The search goes on from the start after the end. Esc stops a long search.
CopyCtrl+C (Cmd+C)Hex with spaces from the hex column (setting hexViewer.copyFormat), text from the text column
Copy as...toolbarHex, hex with spaces, C array, Python bytes, base64, UTF-8 text, Latin-1 text. Up to 32 MB.
SelectShift + arrows, Page Up, Page Down, Home, End; drag; Ctrl+A
Switch columnTabBetween the hex and the text column

Data inspector

The panel on the right reads the bytes at the cursor, or at the start of the selection, as:

Click "Little-endian" to switch to big-endian. In the release check, the values at 5 offsets were the same as Python's struct and uuid modules.

Edit bytes

edit-me.bin after typing AB CD 12 at offset 0x10. The three edited bytes are colored and the tab shows unsaved changes.

Compare two files

Display

The same PNG in the light theme at 16 bytes per row, with the cursor on offset 0x10.

Settings

SettingDefaultWhat it does
hexViewer.bytesPerRow16Bytes in each row when a file opens
hexViewer.encodingasciiText column encoding when a file opens
hexViewer.controlCharsdotShow control bytes as a dot or as symbols
hexViewer.uppercasetrue4A or 4a
hexViewer.fontSize0Font size of the byte grid; 0 uses the editor font size
hexViewer.copyFormathexSpacedWhat Ctrl+C copies from the hex column
hexViewer.littleEndiantrueByte order of the data inspector
hexViewer.showInspectortrueShow the data inspector when a file opens
hexViewer.readOnlyfalseTurn off byte editing
hexViewer.maxRemoteMB256Largest file from a remote or virtual file system
hexViewer.askForRatingtrueAsk one time for a Marketplace rating after a few days of use. Nothing is sent anywhere.
hexViewer.showSupportLinkstrueShow the small Sponsor and More free viewers links in the status line

Privacy and safety

The extension makes no network calls and has no telemetry. It writes to a file only when you save. The webview runs under a strict Content Security Policy (default-src 'none', scripts by nonce, no remote sources) and gets bytes only from the extension host.

Limits

License

MIT

Guides

Install Hex Viewer & Binary Viewer, Hex Editor (Large Files)

Click the button to open VS Code and install it, or press Ctrl+P (Cmd+P on macOS) in VS Code and run ext install zovo.zovo-hex-viewer.

Free, MIT license. Needs VS Code 1.90.0 or newer. Extension ID zovo.zovo-hex-viewer, version 0.3.7.

Source code and issues are on GitHub.

All our VS Code extensions

Zovo Pro and support

Zovo Pro: USD 19 once, every Zovo viewer. It turns on the Pro tools in this extension and in the other Zovo extensions you use. The free features stay free.

After a card payment your license key shows on the next page. Paste it with the command "Zovo Pro: Enter a key".

You can also support the work with no Pro:

Need your format supported?

Open a format request with a sample file, and I reply there whether it can be done. For USD 299 once, through this GitHub Sponsors tier, I add your file format or a missing feature to this extension, with tests, within 7 days.