Skip to main content
Preparing workspace

File Signature Verifier

Check a file's real type from its magic bytes (PNG 89 50 4E 47, PDF %PDF-, ZIP PK) and spot extension mismatches. Reads 64 bytes in-browser, no upload.

Still loading. If the tool doesn’t appear, reload this page.

About this tool

File Signature Verifier

Compare a local file's leading magic bytes with its extension and browser-reported MIME type without uploading the file.

A file's real type is set by its signature (magic bytes), not its extension: a genuine PDF begins %PDF-, a PNG begins 89 50 4E 47 0D 0A 1A 0A and a Windows executable begins MZ. This checker reads a file's first 64 bytes in your browser, matches 22 signature families and flags any extension mismatch.

How to use File Signature Verifier

  1. Press Choose file under Local file and pick any file on your machine; the complete file is never uploaded or opened.

  2. Press Run local inspection — only the leading 64 bytes are read and matched against the signature table.

  3. Read the verdict with the Extension check, MIME check and Bytes read rows plus the Leading signature bytes in hex, then press Download report to save file-signature-review.json.

Why use File Signature Verifier

  • Checks three sources against each other

    Signature, filename extension and browser MIME are compared pairwise, so it can flag a known extension whose expected header is missing, not just a header it recognises.

  • Reads a bounded slice, never the whole file

    Only the leading 64 bytes are examined, so a multi-gigabyte file is inspected as fast as a small one and the body is never opened.

  • Shows the raw evidence

    You get the first 16 bytes printed as uppercase hex alongside the verdict, so you can confirm the call yourself or paste it into a ticket.

Common file signatures (magic bytes)

Leading bytes this checker looks for, in hex unless shown as text.
FormatSignatureExtensions
PNG image89 50 4E 47 0D 0A 1A 0Apng
JPEG imageFF D8 FFjpg, jpeg
GIF imageGIF87a / GIF89agif
PDF document%PDF- (25 50 44 46 2D)pdf
ZIP container50 4B 03 04 (PK)zip, docx, xlsx, pptx, jar, apk, epub
GZIP archive1F 8B 08gz, tgz
7-Zip archive37 7A BC AF 27 1C7z
RAR archive52 61 72 21 1A 07 (Rar!)rar
OLE compound fileD0 CF 11 E0 A1 B1 1A E1doc, xls, ppt, msi
Windows executable4D 5A (MZ)exe, dll
ELF executable7F 45 4C 46so, o, elf
SQLite databaseSQLite format 3sqlite, db
WebAssembly00 61 73 6Dwasm
MP4 / MOV / HEICftyp at byte 4mp4, mov, m4a, heic, avif

Common use cases

  • Someone emailed you an invoice.pdf and you want to check the header actually starts with %PDF- rather than MZ or PK before you double-click it
  • A download saved as .jpg will not open in your image editor, and you want to see whether the bytes say GIF, WebP or something else entirely
  • You are sorting a folder of files with no extensions or a generic .bin suffix and need to know which are SQLite databases, which are ZIP containers and which are executables

Frequently asked questions

How can I check a file's real type without opening it?

Look at its first few bytes. Choose the file here and press Run local inspection: the tool reads 64 bytes, names the format the signature belongs to and tells you whether the extension agrees. The file is not uploaded, opened or run.

Link to answer
What is a file signature or magic number?

It is a fixed byte pattern, usually at the very start of a file, that a format uses to identify itself — for example FF D8 FF for JPEG or 7F 45 4C 46 (a 0x7F byte, then ELF) for Linux executables. Programs read it to recognise a file regardless of its name.

Link to answer
How many bytes does it actually read from my file?

The first 64 bytes, and no more. Every signature in the table lives inside that window — the furthest marker checked is the WEBP or WAVE tag at byte 8 of a RIFF header, ending at byte 12 — so a bounded read is enough to identify the type without touching the rest of the file.

Link to answer
Does a matching signature mean the file is safe?

No. A matching header only tells you the leading bytes are what the extension implies; it says nothing about whether the rest of the file is valid, unmodified or free of malware. This is an informational triage check, not an antivirus scan — run a proper security tool before opening anything you did not expect.

Link to answer
Why does my .docx report as a ZIP container?

Because it is one. DOCX, XLSX, PPTX, JAR, APK and EPUB are all ZIP archives and all begin with the same PK signature (50 4B 03 04), so the tool groups them under one entry and treats any of those extensions as a match. To tell them apart you have to read the archive's internal directory, which this bounded check does not do.

Link to answer
What does it mean when the browser MIME check says mismatch?

It means the MIME string the browser attached to the file belongs to a different signature family than the bytes suggest. Browser MIME is derived largely from the extension and is often absent or wrong, so treat it as a weaker signal than the magic bytes; generic values such as application/octet-stream are ignored rather than counted as a conflict.

Link to answer