Hex Dump Generator
Generate formatted side-by-side hex dump views with ASCII sidebar representations.
Hex Dump & Binary Viewer
100% Client-Side. Files never upload to any remote server.
About Hex Dump Generator
The Formatted Hex Dump Generator creates canonical `hexdump -C` and `xxd` command-line style formatted text dumps from any file or raw text string with configurable bytes-per-line (8, 16, 24, 32) and C-Array export.
How to Use Hex Dump Generator
Step 1
Upload a file or type text into the input box.
Step 2
Select output format (`hexdump -C`, `xxd`, or C Array).
Step 3
Adjust bytes-per-row formatting.
Step 4
Click "Copy Hex Dump".
Practical Use Cases for Hex Dump Generator
Exporting Binary Files to C/C++ Header Arrays
Convert firmware binaries, certificates, and images into `const unsigned char data[] = { 0x89, 0x50, ... };` arrays for embedded systems.
Generating Canonical Hex Dumps for Bug Reports
Create standard `hexdump -C` text blocks to document protocol bugs or payload formats in GitHub issues and documentation.
Input & Output Examples
Generating C Array from Text "RenderXD"
Text: "RenderXD", Format: C-Style Array
const unsigned char data[8] = {\n 0x52, 0x65, 0x6E, 0x64, 0x65, 0x72, 0x58, 0x44\n};Key Features & Performance
- ✓Formats: Canonical `hexdump -C`, `xxd` style, C/C++ unsigned char Array, and Python `bytes` literal.
- ✓Configurable bytes per line: 8, 16, 24, or 32 bytes.
- ✓Supports input from uploaded files or direct text typing.
- ✓100% Client-Side memory execution.
- ✓1-Click Copy and 1-Click `.txt` / `.h` export.
Key Terminology & Definitions
Canonical Hex Dump (`hexdump -C`)
A standard Unix hexadecimal output format displaying 16 bytes per line separated by two spaces, flanked by offset addresses and ASCII characters.
C Byte Array Embedding
A technique in C/C++ programming where binary assets are compiled directly into executable memory as constant byte arrays.
