File type by signature

Inspect up to the first 4096 bytes locally and compare the signature with the filename and browser-reported MIME. The file is never uploaded.

A signature does not validate the entire format or prove a file is free of malware. Unknown means unsupported, incomplete or unrecognized; it does not mean safe.

Example: a PNG named photo.exe has a PNG signature but an inconsistent extension. This is a discrepancy, not a malware verdict.

PNG: 89 50 4E 47 0D 0A 1A 0A

MIME Sniffing Standard · PNG