File Format Detector (Magic Bytes & Manifests)
Inspect real file signatures, magic bytes, and ZIP internal manifests to identify true formats and catch renamed extensions.
Privacy Notice: Runs locally in your browser without uploading files to external servers or requiring an account.
Interactive Browser Workspace
Loading the interactive File Format Detector (Magic Bytes & Manifests) workspace. Enable JavaScript in your browser to run calculations and conversions locally.
How to Use File Format Detector (Magic Bytes & Manifests)
- Drop or upload any file (no data leaves your device).
- Inspect the detected true format, MIME type, hex magic-byte header, detection method, and extension mismatch warning.
- Follow the suggested compatible KitBench converters or clear unsupported-format guidance.
Methodology & Accuracy
Reads the leading bytes for binary signatures (%PDF-, PNG, JPEG, GIF, WebP, OLE2 Compound Binary, ZIP PK header), inspects ZIP entries for Office/OpenDocument manifests (word/document.xml, xl/workbook.xml, ppt/presentation.xml, ODT mimetype), and applies UTF-8 structural heuristics for JSON, XML, HTML, RTF, CSV, TSV, YAML, and Markdown.
Examples
- Verify whether a suspicious file named report.txt is actually a disguised PDF or ZIP archive.
- Check if an older Office file is a modern OpenXML .docx or a legacy binary OLE2 .doc file.
Scope & Limitations
- Files lacking magic headers (such as plain text variants) rely on content heuristics and may show medium confidence for short snippets.
Frequently Asked Questions
How does it tell the difference between .docx, .xlsx, .pptx, and .odt if they are all ZIP files?
It inspects the internal ZIP manifest entries locally, such as word/document.xml for DOCX, xl/workbook.xml for XLSX, ppt/presentation.xml for PPTX, and the mimetype entry for ODT.
Is it safe to inspect unknown files here?
Yes. The tool only reads raw bytes and manifest names as data; it never executes scripts, macros, or binaries.
Why can a file extension be misleading compared to magic-byte inspection?
Renaming `.png` to `.jpg` or `.exe` to `.pdf` only changes the filename; inspecting binary magic signatures reveals the actual underlying container format.
Related Tools
- File Content Previewer (Local Safe Viewer) - Inspect the contents of Markdown, HTML, TXT, RTF, JSON, CSV, TSV, XML, YAML, DOCX, XLSX, PPTX, ODT, and images locally.
- Universal File Converter - Convert Markdown, HTML, TXT, RTF, JSON, CSV, TSV, XML, YAML, DOCX, XLSX, PPTX, and ODT files directly in your browser.
- Batch File Converter (Multi-File + ZIP) - Convert up to 25 files sequentially in your browser with per-file status reporting and one-click ZIP download.
- Image Metadata Viewer - Inspect file headers, camera EXIF tags, lens settings, capture timestamps, orientation, and GPS coordinates.