File Signature Check
Read up to 16 header bytes in your browser and check whether a common file signature agrees with the filename extension.
What the header tells you
This check looks for PNG, JPEG, PDF, GIF, ZIP container, and Gzip signatures at the beginning of the file. A PNG header with a .jpg filename shows an extension mismatch. Changing the extension alone does not convert the file.
A ZIP signature is compatible with extensions such as .docx or .epub. Identifying the subtype would require reading the archive contents. A recognized prefix does not establish that the file is intact or safe. Unrecognized files may use another signature, place it at a different offset, or have too few bytes to match.
Your browser reads the header locally. For more on the archive structure, see the ZIP format reference.