Binary Hex Editor
Professional-grade forensic file analyzer and hex editor. Features instant large-file virtualization, deep-packet inspection, bitwise manipulation, and automatic file signature detection.
About
This is not just a viewer; it is a forensic instrument designed for low-level analysis, data recovery, and reverse engineering. While standard text editors fail to render binary control characters and corrupt file structures, this tool visualizes the raw byte stream. It decouples the visual representation from the underlying data, allowing for the manipulation of executable headers, correction of corrupted archive bits, and inspection of compiled code.
The architecture relies on a Virtual DOM implementation. Browsers typically crash when rendering more than a few thousand DOM elements. Our engine calculates the viewport capability and only renders the exact slice of data visible to the user, effectively allowing the inspection of files sized in Gigabytes with zero performance penalty. The integrated Type Decoder eliminates manual calculation by simultaneously interpreting the selected memory address as 8, 16, 32, and 64-bit integers (signed/unsigned) and IEEE 754 floating-point numbers in both Little-Endian and Big-Endian formats.
Formulas
When analyzing binary structures, the interpreter relies on the concept of Endianness - the order of bytes within a multi-byte word. For a 32-bit integer I composed of bytes b0b1b2b3:
To locate a specific byte address A given a row index r and column index c in a 16-byte width grid:
Reference Data
| File Format | Extension | Magic Bytes (Hex Signature) | Offset | Description |
|---|---|---|---|---|
| JPEG Image | .jpg | FF D8 FF E0 | 0 | Joint Photographic Experts Group start marker. |
| PNG Image | .png | 89 50 4E 47 0D 0A 1A 0A | 0 | Portable Network Graphics with DOS/Unix line ending checks. |
| GIF Image | .gif | 47 49 46 38 39 61 | 0 | Graphics Interchange Format 89a. |
| PDF Document | 25 50 44 46 2D | 0 | Adobe Portable Document Format. | |
| ZIP Archive | .zip | 50 4B 03 04 | 0 | PKZip Local File Header. |
| RAR Archive v5 | .rar | 52 61 72 21 1A 07 01 00 | 0 | Roshal Archive version 5.0+. |
| 7-Zip Archive | .7z | 37 7A BC AF 27 1C | 0 | 7-Zip compressed file. |
| GZIP | .gz | 1F 8B | 0 | GNU Gzip compression. |
| Windows PE | .exe | 4D 5A | 0 | "MZ" Header (Mark Zbikowski), common in DOS/Windows binaries. |
| ELF Binary | .elf | 7F 45 4C 46 | 0 | Executable and Linkable Format (Linux/Unix). |
| Java Class | .class | CA FE BA BE | 0 | Java Bytecode (Cafe Babe). |
| Mach-O (64-bit) | .macho | CF FA ED FE | 0 | macOS 64-bit executable. |
| MP3 ID3v2 | .mp3 | 49 44 33 | 0 | ID3v2 metadata container for audio. |
| FLAC Audio | .flac | 66 4C 61 43 | 0 | Free Lossless Audio Codec. |
| WAV Audio | .wav | 52 49 46 46 ... 57 41 56 45 | 0 | Resource Interchange File Format (RIFF) WAVE. |
| MP4 Video | .mp4 | 00 00 00 18 66 74 79 70 | 0 | ISO Base Media File Header. |
| Matroska Video | .mkv | 1A 45 DF A3 | 0 | EBML Header for Matroska. |
| WebP Image | .webp | 52 49 46 46 ... 57 45 42 50 | 0 | Google WebP image format. |
| Photoshop | .psd | 38 42 50 53 | 0 | Adobe Photoshop Document (8BPS). |
| SQLite DB | .sqlite | 53 51 4C 69 74 65 20 66 6F 72 6D 61 74 20 33 00 | 0 | SQLite Format 3. |
| Bitcoin Block | .dat | F9 BE B4 D9 | 0 | Bitcoin Mainnet Block Magic. |
| LUKS Volume | .bin | 4C 55 4B 53 BA BE | 0 | Linux Unified Key Setup (Encrypted Partition). |