File Signature Checker

Check the file signature to determine the true file type.

Data & File Tools

Inspect File Signatures & Magic Bytes: Detect Spoofed Extensions & Verify True File Types

You receive an email attachment named Quarterly_Invoice_Receipt.pdf or download an image named wallpaper.jpg from an unfamiliar website. When you attempt to open it, your document viewer throws an error claiming the file is corrupted, or your computer freezes momentarily.

In modern operating systems, file extensions (like .pdf, .jpg, .docx) are nothing more than cosmetic text labels. Anyone can rename an executable malware program (payload.exe) to look like an innocent PDF document (document.pdf) in an attempt to trick users into opening it or bypass rudimentary email security filters.

How do cybersecurity professionals know what a file actually is? They inspect its magic bytes (file signature).

Our free File Signature Checker reads the binary header bytes at the beginning of any file to reveal its authentic MIME type, original file format, and internal architecture. Everything runs locally in your browser memory without uploading unverified or potentially malicious files to an external server.

Common File Signatures (Magic Bytes) Reference

File FormatHexadecimal Signature (Magic Bytes)ASCII Translation
PDF Document25 50 44 46%PDF
PNG Image89 50 4E 47 0D 0A 1A 0A.PNG....
JPEG / JPG PhotoFF D8 FFÿØÿ
ZIP Archive (DOCX, XLSX, APK)50 4B 03 04PK..
Windows Executable (EXE, DLL)4D 5AMZ (Mark Zbikowski)
GIF Animation47 49 46 38 39 61GIF89a

How Hackers Spoof Extensions: The Double Extension Trick

⚠️ The Hidden Extension Trap in Windows

By default, Microsoft Windows hides file extensions for known file types. Attackers exploit this behavior by naming a malicious program report.pdf.exe.

Because Windows hides the trailing .exe, the file appears on the user's desktop as report.pdf with a PDF-style icon. Double-clicking the file executes the binary payload rather than opening a PDF reader.

Checking the magic bytes reveals the true identity instantly: if a file claiming to be a PDF starts with hex "4D 5A", it is an executable program, not a document!

Frequently Asked Questions

Is it safe to check a potentially malicious file with this tool?

Yes. The tool does not execute, run, or open the file. It uses browser-native FileReader.readAsArrayBuffer() to safely read only the first 64 raw bytes in an isolated sandbox environment. The file is never transmitted to our servers or executed on your operating system.

Why do modern Microsoft Word (.docx) files show a ZIP file signature?

Modern Office Open XML formats (such as .docx, .xlsx, and .pptx) are actually compressed ZIP archives containing XML markup, styles, and embedded media. Seeing the "PK" (50 4B 03 04) signature on a Word document is completely normal and expected.

Can file signature analysis identify corrupted or truncated files?

Yes. If a file claims to be a PNG or JPEG, but lacks the proper opening magic bytes or terminating trailer bytes, it has been corrupted, damaged during download, or incompletely written to disk.