File Extension Detector & Forensic Analyzer
Identify unknown or spoofed files using deep binary signature analysis (Magic Numbers). Detects true file types, exposes hidden executables, and fixes broken extensions instantly.
Drop any file to reveal its true identity via Magic Number inspection.
About
This tool utilizes Binary Signature Analysis (often called Magic Numbers) to identify the authentic format of a file, regardless of its filename or extension. In the digital forensics and cybersecurity domains, trusting a file extension (e.g., document.pdf) is a critical vulnerability; an attacker can easily rename a malicious executable (malware.exe) to bypass basic filters.
Unlike simple detectors that rely on MIME types reported by the operating system, this utility performs a Deep Header Inspection. It reads the raw hexadecimal data from the file's start sector (Offset 0) and compares it against a comprehensive database of industry-standard signatures. This process ensures 100% identification accuracy for standard formats and provides a crucial layer of safety by flagging disguised executables.
Formulas
The core identification logic functions by extracting a byte sequence B from the file header and performing a match operation against a dictionary of known signatures S.
Where B is the array of bytes read from the file blob, and Sk represents the k-th signature in the database. The comparison is strictly strict-type, parsing the raw ArrayBuffer into Hexadecimal strings for pattern matching.
Reference Data
| Format | Extension | Magic Number (Hex Signature) | Offset |
|---|---|---|---|
| Portable Network Graphics | .png | 89 50 4E 47 0D 0A 1A 0A | 0 |
| JPEG Image | .jpg | FF D8 FF E0 | 0 |
| ZIP Archive / Office Open XML | .zip, .docx | 50 4B 03 04 | 0 |
| PDF Document | 25 50 44 46 2D | 0 | |
| Windows Executable (PE) | .exe, .dll | 4D 5A | 0 |
| RAR Archive v5 | .rar | 52 61 72 21 1A 07 01 00 | 0 |
| GZIP Compressed | .gz | 1F 8B | 0 |
| 7-Zip Archive | .7z | 37 7A BC AF 27 1C | 0 |
| MP4 Video (ISO Base) | .mp4 | 00 00 00 18 66 74 79 70 | 0 |
| Photoshop Document | .psd | 38 42 50 53 | 0 |