File Anatomy Viewer - Binary Inspector

Explore any file's binary structure with annotated hex dumps and plain-English explanations. Parses 60+ formats: images, media, archives, executables, code.

Runs in your browser. No data leaves your device.

About this tool

Shows the binary structure of a file as an annotated region map and a color-coded hex dump. It identifies the format, then labels headers, chunks, markers, metadata fields and padding with decoded values and plain-English descriptions. Aimed at developers, students and forensics hobbyists who want to see how a file is laid out byte by byte.

Features
  • Format detection from magic-byte signatures (including offset signatures such as the "ustar" marker at byte 257 of TAR archives), with a file-extension fallback for formats without reliable signatures
  • Format-specific parsers detected by signature: PNG, JPEG, GIF, WebP, BMP, TIFF, ICO/CUR, PSD/PSB, AVIF, HEIF/HEIC, JPEG XL, OpenEXR, WAV, AIFF, MP3, FLAC, OGG, MIDI, AAC (ADTS), MP4/M4A/MOV, WebM/Matroska, FLV, AVI, ASF/WMV/WMA, SWF, PDF, ZIP, Office Open XML (DOCX/XLSX/PPTX), GZIP, 7Z, RAR (4 and 5), TAR, LZ4, Zstandard, XZ, ELF, Mach-O, PE/EXE/DLL, WebAssembly, Java class, OTF/TTF/WOFF/WOFF2, Parquet, ICC profiles, PCAP/PCAPNG, SQLite
  • Extension-detected parsers (no reliable signature): TGA, dBASE (.dbf), Brotli (.br), SVG, HTML, CSS, CSV/TSV, plain text (txt, log, ini, cfg, conf, env), JSON (json, jsonl, geojson), XML (xml, xsl, xsd, xhtml, plist), YAML, Markdown (md, mdx), JavaScript/TypeScript (js, jsx, mjs, cjs, ts, tsx), Python, Java source. Binary formats also fall back to their extension when the signature is damaged
  • Generic fallback for anything else: signature match, printable ASCII runs (4+ chars), null padding runs (8+ bytes), and unclaimed binary data
  • Stats: file size, format name, region count, signature match, and Shannon entropy of the first 4 KB with a label from Very Low (repetitive) to Very High (compressed/encrypted)
  • Structure tab: nested, expandable region tree with type badges (Signature, Header, Metadata, Data, Checksum, Marker, Padding, Unknown), byte ranges, hex preview of the first 16 bytes, and decoded values; clicking a byte range (or a region without children) opens it in the Hex Dump tab
  • Hex Dump tab: 4 KB pages, 16 bytes per row with ASCII column on desktop (8 bytes, no ASCII on mobile), bytes tinted by region type, hover tooltip with offset, decimal value and region
  • Page navigation plus a jump-to-offset box accepting 0x-prefixed hex or decimal
  • Accepts files handed over from File Viewer's "Open in" menu
How to use it
  1. Drop a file on the upload area or click to choose one
  2. Read the stats row and entropy line
  3. Expand regions in the Structure tab to see fields and decoded values
  4. Click the byte range of a region to see those bytes in the Hex Dump tab, or page through bytes and jump to an offset there
Inputs
  • Any single file, of any size
Outputs
  • On-screen region map and hex dump only; no export
Limits and notes
  • Structure analysis reads only the first 1 MB, plus the last 64 KB for files over 1 MB; regions beyond that are summarized as Remaining Data
  • RTF files and Mach-O universal (fat) binaries have no dedicated parser and get the generic analysis
  • Detection is signature-first: a text file that happens to start with bytes like "BM" is treated as BMP (weak signatures such as a bare DOS "MZ" header only apply when the extension is unknown)
  • In the jump box, a bare hex string is read as hex only if it is longer than 6 characters; otherwise use the 0x prefix
  • Nothing is saved to localStorage
  • Files are read locally with File.slice(); nothing is uploaded

Frequently Asked Questions

How does the File Anatomy Viewer work?

The tool reads the first 1 MB of the file with File.slice() (plus the last 64 KB for larger files) and identifies the format from magic-byte signatures, falling back to the file extension for text and other formats without a reliable signature. A matching format parser walks the bytes and produces an annotated region map of headers, chunks, markers and metadata fields with offsets, lengths, decoded values and explanations; unrecognized files get a generic analysis that marks the signature, ASCII strings, null padding and raw binary data. The hex view loads 4 KB pages on demand, so large files open quickly.

What file formats are supported?

Any file can be inspected. Detailed, format-specific annotation is applied to PNG, JPEG, GIF, WebP, BMP, TIFF, ICO, PSD, AVIF, HEIF/HEIC, JPEG XL, SVG, TGA and OpenEXR images; WAV, AIFF, MP3, FLAC, OGG, MIDI and AAC audio; MP4/M4A/MOV, WebM/MKV, FLV, AVI, ASF/WMV and SWF; PDF; ZIP and Office files (DOCX, XLSX, PPTX); GZIP, 7Z, RAR, TAR, LZ4, Zstandard, XZ and Brotli; ELF, Mach-O, PE/EXE, WebAssembly and Java class files; OTF, TTF, WOFF and WOFF2 fonts; Parquet, dBASE (DBF), SQLite, PCAP and ICC profiles; and text formats including JSON, XML, YAML, CSV, HTML, CSS, Markdown, JavaScript/TypeScript, Python, Java and plain text. Other files get a generic analysis showing the signature, ASCII strings, padding and entropy.

Can it handle large files?

Yes. Files are never loaded fully into memory. Structure analysis reads the first 1 MB (and the last 64 KB of larger files), and the hex view reads 4 KB pages on demand with File.slice(), so very large files still open quickly.

Is my file uploaded to a server?

No. All analysis runs entirely in your browser. Your files never leave your device.