Open files in VS Code and Cursor / Binary, network and hardware

Use a hex editor in VS Code

VS Code has no hex editor built in. Install the free Hex Viewer by Zovo, right-click any file and pick "Open in Hex Viewer". You get the bytes in hex and text, go to offset, find with ?? wildcards, a data inspector, byte editing with insert, delete and undo, and a byte-by-byte compare of two files. Only the rows on screen are read, so a 4 GB file opens in under a second.

Install in VS CodeMarketplace pageOpen VSX (Cursor, Windsurf, VSCodium)JetBrains IDEs

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

This guide is also in Deutsch, Español, Français, Bahasa Indonesia, Italiano, 日本語, 한국어, Nederlands, Polski, Português (Brasil), Русский, Türkçe, Tiếng Việt, 简体中文.

A PNG file open in Hex Viewer in VS Code, with 4 bytes of the IHDR chunk selected and the data inspector reading them as the image width, 1400
A PNG file open in Hex Viewer in VS Code, with 4 bytes of the IHDR chunk selected and the data inspector reading them as the image width, 1400.

Steps in VS Code

  1. Install Hex Viewer from the Marketplace, or press Ctrl+P (Cmd+P on macOS) and run ext install zovo.zovo-hex-viewer.
  2. Right-click any file in the Explorer and pick "Open in Hex Viewer". Files ending in .bin, .dat, .img, .rom, .dmp or .dump open in it when you click them.
  3. Press Ctrl+G (Cmd+G on macOS) to go to an offset such as 0x1F40, +0x100 or end.
  4. Press Ctrl+F (Cmd+F) to find hex bytes like 50 4B ?? 04, text, or UTF-16 text.
  5. Type two hex digits to overwrite a byte, or press Insert to add bytes. Delete removes the selected bytes. Ctrl+Z undoes, and Ctrl+S saves.

Steps in Cursor, Windsurf or VSCodium

  1. Open the Extensions view with Ctrl+Shift+X (Cmd+Shift+X on macOS).
  2. Search for zovo.zovo-hex-viewer and click Install. Cursor, Windsurf and VSCodium install from Open VSX, where it is published as zovo/zovo-hex-viewer.
  3. If your editor has no gallery, download the .vsix from the Open VSX page and run "Extensions: Install from VSIX...".
  4. Then use it the same way as in VS Code.

What Hex Viewer handles

What it does not do

In JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm, CLion and others)

Other options

Install counts and Open VSX status were checked on 9 November 2026. Descriptions in quotes are the extensions' own.

Questions

Is there a built-in hex editor in VS Code?

No. You need an extension. Hex Viewer by Zovo and the Hex Editor from Microsoft are both free.

Can it open a file larger than 4 GB?

Yes. It never reads the whole file. It reads the rows you look at, and Find reads the file in 1 MB pieces.

Can I insert or delete bytes?

Yes, since version 0.2.0. Press Insert to switch between overwrite and insert mode. Delete, Backspace, cut and paste work on any selection, and the change is instant even in a 4 GB file, because only a list of changes is kept until you save.

More about Hex Viewer

Read the Hex Viewer page for every feature and setting, or the source code on GitHub.

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.