Introduction
When participating in a workshop at iPRES (International Conference on Digital Preservation), the hex editor “HxD” was used for hands-on exercises in digital preservation. It is an essential tool in digital archive practice for tasks such as analyzing binary file structures and verifying file formats.
However, HxD is Windows-only and cannot be used on Mac. After the workshop, I searched for alternative tools to perform similar work in a Mac environment and found a web-based hex editor.
In this article, I introduce how to use the web-based hex editor “HexEd.it” in detail for Mac users. This guide enables you to practice what you learned with HxD at the iPRES workshop using HexEd.it.
What Is HxD? Why Can’t It Be Used on Mac?
HxD Hex Editor is a feature-rich hex editor for Windows. It is free and lightweight, making it popular among many developers and security researchers.
Key Features of HxD
- Fast performance
- Large file support
- RAM editing capability
- Disk editor functionality
- Checksum calculation
However, HxD was developed as a Windows-only application and does not support macOS. While it is possible to run it using a virtual environment or Wine, this requires extra effort.
HexEd.it - A Browser-Based Alternative
As an alternative tool that works on Mac, there is HexEd.it (https://hexed.it/).
Features of HexEd.it
Cross-platform support
- Works on any OS – Windows, Mac, Linux – as long as you have a browser
- No installation required, ready to use immediately
Privacy-focused
- Files are processed in the browser and are not uploaded to a server
- Can also work offline
Rich features
- Simultaneous Hex/ASCII display
- Byte editing
- Search and replace
- File comparison
- Data type conversion (int, float, etc.)
- Export functionality
Free to use
- Basic features are completely free
How to Use HexEd.it
1. Opening a File
- Access https://hexed.it/ in your browser
- Click the “Open file” button
- Select the file you want to edit
Alternatively, you can drag and drop a file onto the screen.
2. Understanding the Interface
The HexEd.it screen is divided into three main areas:
Offset (left)
- Displays position within the file in hexadecimal
- Starts from 00000000
Hex Display Area (center)
- Displays byte data in hexadecimal
- Shows 16 bytes per line (default setting)
ASCII Display Area (right)
- Displays bytes as characters
- Printable characters are shown as-is; others are shown as “.”
3. Editing Data
Editing Bytes
- Click on the byte you want to edit
- Enter the new value in hexadecimal (e.g.,
FF,00,5A) - Press Enter to confirm
Editing Multiple Bytes
- Drag to select the range you want to edit
- Select “Edit” from the right-click menu
- Enter the new values
4. Search Function
You can search for specific byte patterns or text.
Hex Search
- Select “Search” then “Find” from the top menu
- Select the “Hex” tab
- Enter the byte sequence to search for (e.g.,
FF D8 FF) - Click “Find”
Text Search
- Select “Search” then “Find”
- Select the “Text” tab
- Enter the string to search for
- Select the encoding (UTF-8, ASCII, etc.)
- Click “Find”
5. Data Type Conversion
You can interpret selected bytes as various data types.
- Select bytes (e.g., 4 bytes)
- Check the “Inspector” panel at the bottom
- It displays in the following formats:
- Int8 / Uint8 (1-byte integer)
- Int16 / Uint16 (2-byte integer)
- Int32 / Uint32 (4-byte integer)
- Float (floating point)
- Double (double precision floating point)
This is useful when analyzing the data structure of binary files.
6. File Comparison
You can check the differences between two files.
- Open the first file
- Select “Tools” then “Compare files”
- Select the second file to compare
- Differences are highlighted in red
7. Saving Files
Save the file after editing.
Overwrite Save
- Select “File” then “Save”
- The edited file is downloaded
Save As
- Select “File” then “Export”
- Specify a filename and save
Save Selection Only
- Select the range you want to save
- Right-click then “Export selection”
- Only the selected portion is saved as a file
Practical Use Cases
Example 1: Checking Image File Headers
When opening a JPEG file, the first bytes always start with FF D8 FF.
This allows you to confirm whether a file is actually a JPEG.
Example 2: Checking Text File Encoding
You can determine the encoding from the leading bytes of a text file.
UTF-8 with BOM
UTF-16 LE with BOM
Example 3: Binary File Corruption Check
You can check for unnatural patterns in the middle of a file. For example, a ZIP file should start with:
Example 4: Simple File Modifications
This can be used when you want to change specific values in game save data or configuration files.
- Open the file
- Search for the position of the value you want to change
- Rewrite with the new value
- Save
Limitations of HexEd.it
HexEd.it has some limitations:
File Size Limitation
- Depends on browser memory
- Very large files (several GB) may not open
- Less capable with large files compared to HxD
Offline Use
- Internet connection required (for initial access)
- Can be used offline if saved as a PWA (Progressive Web App)
Advanced Features
- No RAM editor or disk editor functionality
- Some advanced HxD features are not supported
Other Mac-Compatible Hex Editors
Besides HexEd.it, there are other hex editors available for Mac:
Desktop Applications
Hex Fiend (Free)
- Mac native application
- Large file support
- https://hexfiend.com/
Synalyze It! (Paid/Free version available)
- Feature-rich binary file analysis tool
- Template functionality makes structural analysis easy
- https://www.synalysis.com/
0xED (Free)
- Open source
- Basic hex editing features
Editor Extensions
Visual Studio Code + Hex Editor Extension
- Easy to set up if you already use VS Code
- Install the “Hex Editor” extension
Summary
HxD is Windows-only, but HexEd.it allows you to perform equivalent work on Mac.
Use cases for HexEd.it:
- Mac users
- When you want to use it without installation
- When working across multiple OS environments
- When privacy is important
- When handling small to medium-sized files
Use cases for desktop applications:
- When handling very large files
- When working in an offline environment
- When more advanced features are needed
Choose between HexEd.it, Hex Fiend, and other tools depending on your use case.
Reference links:
- HexEd.it: https://hexed.it/
- Hex Fiend: https://hexfiend.com/
- HxD official site: https://mh-nexus.de/en/hxd/