2ClickKit

File to Hex Dump

Files Never Leave Your Device

Inspect arbitrary binary files, analyze magic numbers, and export hex dumps or C arrays directly in your browser with complete privacy.

Drag & drop any file to inspect binary hex dump
Processes 100% locally in your browser • Executables, images, firmware, PDFs, audio
HEX
sample-png-header.bin64 bytes
Showing bytes 0 to 64 of 64
OffsetHex View (16 bytes/line)
Decoded ASCII
00000000
|
.PNG........IHDR
00000010
|
................
00000020
|
....pHYs........
00000030
|
..+.....IEND.B`.
Page 1 of 1

How to Inspect Binary Files as Hex Dumps in 3 Simple Steps

1

Select or drag any binary file

Choose any file from your workstation (images, executables, PDFs, archives, ROMs, firmware). Files are read locally into browser RAM.

2

Configure columns & inspect bytes

Adjust bytes per line (8, 16, 32), byte grouping, and case. Click any individual byte to reveal decimal, octal, binary, and ASCII values.

3

Export hex dump or C array

Download the complete textual hex dump (.hex.txt), copy raw contiguous hex strings, or export C/C++ byte arrays for embedded development.

The Architecture of Hexadecimal Dumps & Binary Analysis

At the fundamental hardware layer of all digital computers, information is stored as sequences of electrical charges, magnetic orientations, or optical pits representing binary bits (zeros and ones). Because reading raw base-2 binary strings (e.g., 01001000 01100101 01101100) is visually unwieldy and mentally exhausting for human engineers, computer scientists adopted hexadecimal (base-16) notation as the canonical shorthand for binary data. Every four binary bits (a nibble) maps precisely to a single hexadecimal digit (0 through F), allowing an entire 8-bit byte (ranging from 0 to 255) to be represented cleanly in exactly two alphanumeric characters (00 through FF).

A hexadecimal dump (hexdump) is a standardized three-column textual visualization of binary memory or file streams, popularized by Unix command-line utilities such as xxd, hexdump, and od. The 2ClickKit File to Hex Dump utility brings this powerful diagnostic capability directly into the modern web browser, offering interactive byte inspection, responsive virtual pagination, and zero-trust local execution.

Anatomy of the Classical Hexdump Layout

A canonical hex dump consists of three distinct visual columns designed to facilitate rapid spatial orientation:

00000000  89 50 4E 47 0D 0A 1A 0A | 00 00 00 0D 49 48 44 52  |.PNG....|....IHDR|
00000010  00 00 04 00 00 00 03 00 | 08 06 00 00 00 E2 98 8A  |........|.....{..|
  └──┬──┘ └──────────────┬──────────────┘ └───────────┬──────────┘  └───┬───┘
   Offset          Hex Bytes (8-16/line)   Divider  Decoded ASCII

Common Binary File Signatures (Magic Numbers)

File extensions (such as .png, .pdf, or .exe) can be easily spoofed or misnamed by users or malicious software. Software operating systems and security sandboxes rely on magic numbers—fixed constant byte sequences located at the very start of a file (offset 00000000)—to determine true file types. Inspecting a file with this hex dump allows engineers to verify file integrity immediately:

Format Type Leading Hex Signature Decoded ASCII Description
PNG Image 89 50 4E 47 0D 0A 1A 0A .PNG.... Standard 8-byte PNG file header including DOS/Unix EOF bytes.
JPEG / JFIF FF D8 FF E0 .... Start of Image (SOI) marker followed by APP0 application marker.
PDF Document 25 50 44 46 2D %PDF- Followed by version string (e.g., %PDF-1.7).
ZIP / DOCX / APK 50 4B 03 04 PK.. Phil Katz ZIP local file header signature.
Windows PE (.exe) 4D 5A MZ Mark Zbikowski DOS MZ header signature.
Linux ELF Executable 7F 45 4C 46 .ELF Executable and Linkable Format magic identifier.
WebAssembly (.wasm) 00 61 73 6D .asm WASM binary module magic number.

Embedded Engineering: Generating C/C++ Byte Arrays

In firmware development, IoT engineering, and embedded systems programming (such as STM32, ESP32, and Arduino), developers frequently need to include static binary assets—such as icons, audio chime samples, TLS certificates, or machine learning model weights—directly inside micro-controller Flash memory.

Our hex dump tool includes a 1-click Copy C Array feature that automatically formats the loaded file as a valid C/C++ static byte array:

// Ready-to-compile C/C++ binary asset declaration
const unsigned char logo_png_data[64] = {
  0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, 0x00, 0x00, 0x00, 0x0D,
  0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x03, 0x00,
  0x08, 0x06, 0x00, 0x00, 0x00, 0xE2, 0x98, 0x8A, 0x00, 0x00, 0x00, 0x09
};

This completely eliminates the need to install external command-line tools like xxd -i, providing embedded engineers with a browser-based workflow on any operating system without administrative privileges.

Zero-Trust Privacy & Security Architecture

Binary files scrutinized by engineers often contain highly confidential intellectual property: proprietary firmware firmware images, encrypted cryptographic keys, sensitive database backups, and confidential enterprise PDF documents. Uploading raw binary streams to cloud conversion services creates unacceptable exposure to data leakage, unauthorized archiving, and compliance breaches.

2ClickKit adheres strictly to a 100% Client-Side Architecture. All file reading is performed through the browser W3C FileReader API directly into local V8 engine memory. No data packets are ever dispatched across the network. You can inspect sensitive files in air-gapped environments or while entirely disconnected from the internet.

Frequently Asked Questions

How does client-side file hex dumping work without uploading files to a server?

The tool uses the modern HTML5 File API and JavaScript FileReader to load your selected file directly into an ArrayBuffer inside your local browser tab memory. Typed arrays (Uint8Array) parse the raw binary data byte-by-byte into hexadecimal strings and printable ASCII characters. Because execution is 100% client-side, your files are never transmitted across the network or stored on any remote cloud server.

What types of files can be inspected with this hex dump utility?

Any file type on your operating system can be inspected: compiled binaries (ELF, Mach-O, Windows PE .exe, DLL), image formats (PNG, JPEG, GIF, WebP), documents (PDF, DOCX, XLSX), media files (MP3, MP4, WAV), firmware ROMs, encrypted payloads, and custom binary protocol packets.

Why are non-printable bytes displayed as dots (.) in the ASCII pane?

In standard ASCII character encoding, byte values between 0x00 and 0x1F (control codes such as null, line feed, bell, and escape) as well as values above 0x7E (extended ASCII and multi-byte UTF-8 sequences) do not possess standard printable glyphs. Following standard hexdump and xxd conventions, non-printable bytes are rendered as periods (.) to prevent breaking terminal line layouts.

Can I export the hex dump as a C/C++ source code array?

Yes! Click the "Copy C Array" button to generate a ready-to-compile C/C++ unsigned char array declaration (e.g., const unsigned char file_data[] = { 0x89, 0x50, ... };) ideal for embedding binary assets directly into microcontrollers, Arduino sketches, or firmware images.

How does the tool handle large files without freezing the web browser?

To prevent UI lag when opening large files, the viewer implements virtual pagination chunks (256 to 2,048 bytes per page). The browser only renders the active slice in the DOM while retaining the ArrayBuffer in memory, maintaining snappy 60fps scrolling and instant byte inspection.

How do I identify file signatures (magic bytes) using this hex dump?

Every major file format begins with unique magic numbers in its leading bytes. For example, PNG files always begin with 89 50 4E 47 (ASCII: .PNG), JPEG files begin with FF D8 FF, ZIP archives begin with 50 4B 03 04 (PK..), and PDF documents begin with 25 50 44 46 (%PDF). Inspecting offset 00000000 allows you to immediately verify authentic file types.

Is there a file size limit for in-browser hex dumping?

Because processing occurs within your browser tab memory, files up to 500MB can easily be inspected on modern desktop computers with 8GB+ of RAM. For optimal speed and responsiveness, files under 100MB load virtually instantaneously.