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

Open a binary file in VS Code

VS Code says a binary file "is not displayed in the text editor" and offers "Open Anyway", which shows the bytes as broken text. To read the bytes, open the file in a hex view. Install the free Hex Viewer by Zovo, right-click the file and pick "Open in Hex Viewer". You see every byte in hex and as text, with offsets, search and a data inspector.

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.

firmware.bin open in Hex Viewer with the bytes DE AD BE EF 13 37 found at offset 0x2FFFD and highlighted in the hex and text columns
firmware.bin open in Hex Viewer with the bytes DE AD BE EF 13 37 found at offset 0x2FFFD and highlighted in the hex and text columns.

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 the file in the Explorer and pick "Open in Hex Viewer".
  3. If the file is already open in a tab, pick "Open in Hex Viewer" from the editor title menu (...), or run "Reopen Editor With...".
  4. To open a file type in hex every time, run "Reopen Editor With..." and pick "Configure default editor" for that file type. .bin, .dat, .img, .rom, .dmp and .dump files already open in hex.
  5. Move the cursor to a byte and read the data inspector on the right: the same bytes as integers, floats, times and characters.

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

Why does VS Code say the file is binary?

VS Code found bytes in the file that do not look like text. "Open Anyway" shows them as garbled characters. Editing and saving there can change bytes you did not touch, so use a hex view to change bytes.

Is it safe to open an unknown binary this way?

Yes. Hex Viewer only reads the bytes. It never runs the file, makes no network calls and writes to the file only when you save.

Does it work in Cursor?

Yes. Cursor, Windsurf and VSCodium install it from Open VSX as zovo/zovo-hex-viewer.

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.