Skip to content

MIME Type Detector

Check a local file’s real type from its signature. See the file name, extension, browser-reported MIME type, size and detected type, and whether they agree — with warnings for mismatched or damaged files. Detects PNG, JPEG, GIF, WebP, PDF, ZIP, GZIP, MP3, WAV, MP4, WebM, OGG, SVG, text and more.

Developer Runs client-side Free to use
Jump to the tool
Share: X WhatsApp
Loading MIME Type Detector…

About the MIME Type Detector

MIME Type Detector identifies what a file really is by reading its signature — the “magic number” bytes at the start — instead of trusting its name. It shows the file name, extension, the MIME type your browser reports (usually guessed from the extension), the file size, the detected type with its standard MIME type and the first bytes in hex, and whether the extension, browser MIME type and signature agree.

It recognises PNG, JPEG, GIF, WebP, BMP, ICO, TIFF, HEIC, AVIF, PDF, ZIP (including DOCX, XLSX, PPTX, EPUB, OpenDocument, JAR and APK), GZIP, 7-Zip, RAR, MP3, AAC, WAV, FLAC, MP4, MOV, WebM, Matroska, OGG, executables, SVG, HTML, XML, JSON and plain text, and reports unknown binary data honestly. Basic structure checks flag files that look truncated or damaged. Only the first 64 KB and last 1 KB are read, nothing is displayed or run, and this is not malware scanning.

How to use

  1. Click Choose a file and pick one file (up to 4 GB).
  2. Read the overall result and any warnings.
  3. Check the details: extension, browser MIME type, detected type and first bytes.
  4. Copy or download the summary if you need to share it.
  5. Click Reset to check another file.

Key features

  • Signature-based detection of 40+ formats including all common images, documents, archives, audio and video.
  • Comparison of extension, browser MIME type and detected type.
  • Mismatch warnings, including executables disguised with another extension.
  • Basic damage checks for PNG, JPEG, GIF, WebP, WAV, PDF, GZIP and OGG.
  • Safe text and SVG detection from a limited byte range.
  • Copy Summary, Download Summary and Reset.

Best practices

  • Be cautious when a file’s extension does not match its content.
  • Never open executables from untrusted sources, whatever their name.
  • Use antivirus software for malware checks — this tool does not scan for malware.
  • Remember that text formats (CSV, JS, Markdown) have no signature.
  • Re-download files reported as truncated or damaged.

Benefits

  • Find out what an unknown file really is.
  • Spot renamed or mislabelled files before uploading or opening them.
  • Fast even for very large files.
  • Private: files never leave your device.

Frequently asked questions

Is this a virus scanner?

No. It only compares the file’s signature with its name and reported type. A file can have a correct signature and still be harmful, so use antivirus software for malware checks.

How does detection work?

Most formats begin with fixed “magic” bytes — for example PNG files start with 89 50 4E 47. The tool reads the start of the file (and the end for some checks) and matches these patterns.

Why does it say the browser MIME type does not match?

Browsers usually guess the MIME type from the file extension. If a file was renamed, the guess is wrong, while the signature shows the real type.

Why is my CSV or JavaScript file shown as plain text?

Text formats have no signature, so they can only be identified as text. Common text extensions are treated as consistent with plain text.

How much of the file is read?

Only the first 64 KB and the last 1 KB, whatever the file size (up to 4 GB). The content is never displayed, run or uploaded.

What does “appears damaged” mean?

The file starts with a valid signature but its header is incomplete or an expected end marker is missing, which often means a truncated download or a corrupted file.