File MIME Type Checker
Drop any file to see its true MIME type โ as declared and as sniffed from magic bytes โ plus size and details.
About This Tool & Technical Logic
File extensions lie: rename malware.exe to invoice.pdf and the extension says PDF. The MIME type a browser actually trusts comes from magic bytes โ the signature header at the start of the file (e.g., %PDF for PDFs, โฐPNG for PNG).
This checker reads the first bytes locally and identifies the real format, comparing it against the extension's declared type. A mismatch is exactly how disguised files are caught โ and how misconfigured upload servers get abused.
FileReader โ first 16 bytes โ magic-byte signature table (PDF, PNG, JPG, GIF, ZIP, RAR, 7z, EXE, MP4, MP3, WEBP, SVG, WOFFโฆ).
How to Use โ Step by Step
- 1
Drop the file
The file never leaves your machine โ bytes are read in-browser for signature matching.
- 2
Compare declared vs detected
Green = extension and content agree. A red mismatch means the file isn't what it claims โ scan it before opening.
- 3
Use the details
Exact MIME string, signature hex, and size โ handy for upload validators configuring their accept lists.
Frequently Asked Questions
Fixed byte sequences at a file's start that identify its true format โ %PDF (25 50 44 46), โฐPNG (89 50 4E 47), MZ for Windows executables.