If you need to look inside a binary file on a Windows PC, two of the easiest free options to get hold of are ImHex, a standalone open-source hex editor, and Microsoft's Hex Editor extension for Visual Studio Code. Both let you view and edit raw bytes, both have a data inspector, and both can find and copy data. They're aimed at quite different jobs, though.
This comparison is based on the ImHex GitHub repository, releases page and documentation, and on the Hex Editor extension's Visual Studio Marketplace page and GitHub repository, all checked on 4 December 2026.
The short version
| ImHex | VS Code Hex Editor |
|---|
What it is | Standalone hex editor | Extension for Visual Studio Code |
Developer | WerWolv and contributors | Microsoft |
Licence | GPL-2.0 | MIT (extension) |
Windows downloads | x86-64 and ARM64 MSI installers, portable ZIPs, NoGPU build | Installed from inside VS Code |
Data inspector | Yes | Yes |
Find | Strings, sequences, regex, binary patterns, numeric values | Find and replace |
Extras | Pattern language, diffing, hashing, bookmarks, disassembler, entropy graphs | Copy As formats, byte colouring, keyboard and screen reader support |
Other data sources | Raw disks, process memory, GDB, SSH/SFTP and more | Files |
ImHex describes itself as "A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM", and its feature list reflects that. Alongside the hex view and data inspector, its README lists searches for strings, byte sequences, regular expressions, binary patterns with wildcards and numeric values; bookmarks; hashing with many algorithms; a diffing view for comparing two data sources; an integrated disassembler; entropy graphs and file-type detection; and YARA rule support.
Its biggest party trick is a custom, C-like pattern language that lets you describe a file format and have ImHex parse and highlight a file's contents. The README says patterns can load automatically based on MIME types and magic values, and there's a separate database of community patterns.
ImHex can also open more than ordinary files. Its README lists raw disks and partitions, the memory of a running process, GDB servers, Intel Hex and Motorola SREC data, Base64-encoded data, UDP packets and remote files over SSH and SFTP.
On Windows, the latest stable release listed on GitHub as of 4 December 2026 is v1.38.1, dated 21 December 2025, with x86-64 and ARM64 MSI installers, portable ZIPs, and a software-rendered NoGPU portable build. The README says ImHex needs a GPU with OpenGL 3.0 support for the normal builds, and recommends Windows 10 or 11.
If all of that sounds like too much, ImHex has a simplified mode that its documentation says turns it "into a pure hex viewer editor without any extra analysis tools".
VS Code Hex Editor: quick edits inside your editor
Microsoft's Hex Editor is a free extension that adds a hex view to Visual Studio Code. Its Marketplace page lists four headline features: opening files as hex, a data inspector, editing with undo, redo, copy and paste, and find and replace. Microsoft's FAQ says VS Code itself "is free for private or commercial use", and the extension's repository is MIT-licensed.
You open a file by right-clicking it and choosing Open With → Hex Editor, or from the command palette. You can also make the hex editor the default for particular file types using the workbench.editorAssociations setting.
One thing to watch: the Marketplace page says that by default, typing in the hex editor inserts new bytes before the focused byte. To overwrite bytes instead, press Insert, click the edit mode in the status bar, or run the Switch Edit Mode command. Inserting bytes by accident can break a binary file, so it's worth checking the mode before you type.
The extension's GitHub README adds more detail, including Copy As for formats such as C arrays and Base64, options to colour bytes by value, a choice of text encodings for the decoded text, and keyboard and screen reader support.
Which one has more features?
ImHex, by a long way. VS Code Hex Editor is a capable byte viewer and editor, but ImHex adds structured file parsing, comparison of two files, hashing, disassembly, data visualisation and access to disks and process memory. If you need any of those, the extension isn't a substitute.
Which is easier to get started with?
If you already use VS Code, the extension is the quicker route: install the extension from the Visual Studio Marketplace and right-click a file. There's no separate app to learn, and it uses VS Code's familiar settings and themes.
If you don't use VS Code, installing a whole code editor just to get a hex view makes less sense than installing ImHex and switching on its simplified mode. For a wider look at editors, see our best free text editors for Windows.
Which is better for accessibility?
The VS Code extension's README documents keyboard-only use and screen reader support in detail, including how bytes are announced. ImHex's README doesn't make similar accessibility claims, so if you rely on a screen reader, the VS Code extension is the safer bet.