File type checker

Drop a file to see what it really is, based on the first bytes inside it rather than its name, and whether the extension matches. The file is read in your browser and never uploaded.

  • Free
  • No sign-up
  • Runs in your browser
or drop files here

Processed in your browser — your files never leave your device.

How to use File Type Checker

  1. Click Choose files, or drop one or more files onto the box (up to 100).
  2. Read the table. Detected type and MIME type come from the file's content.
  3. The Check column tells you if the extension matches, does not match, or is missing.
  4. If a program is hiding behind another extension, for example invoice.pdf that is really an EXE, the row carries a warning.

Features

  • Identifies more than 60 common formats by their magic bytes, including PDF, ZIP, Office, PNG, JPEG, GIF, WebP, AVIF, HEIC, MP4, MP3, WAV, FLAC, 7Z, RAR, GZIP, TAR, EXE, ELF and SQLite
  • Tells ZIP-based files apart, such as DOCX, XLSX, PPTX, ODT, EPUB and JAR
  • Reads ftyp brands to separate HEIC, AVIF, MP4, MOV and M4A
  • Recognises plain text, JSON, XML, HTML and SVG by content
  • Flags a mismatch between the extension and the content, with extra care for executables

Supported formats and limits

  • Up to 100 files at once

Examples

InputResult
photo.jpg whose first bytes are 89 50 4E 47 0D 0A 1A 0APNG image, image/png. Extension .jpg does not match; expected .png
report.docxWord document (DOCX), application/vnd.openxmlformats-officedocument.wordprocessingml.document. Extension matches
notes with no extension that contains plain UTF-8 textPlain text, text/plain. No extension; usually .txt

Limitations

  • Only the first 64 KB of each file is read, and only the well-known formats in the table are recognised. Unknown binary data is shown as not recognised.
  • A match is not a safety guarantee. A file can have a correct header and still contain harmful content, and this tool is not an antivirus.
  • Plain text formats such as CSV, source code and Markdown cannot be told apart by content, so they are reported as plain text.
  • Some formats share a container, for example DOCX and a generic ZIP. The tool reports the most specific type it can see.

Learn more

A file extension is only a label, and anyone can change it. The real format is usually recorded inside the file, in its first few bytes. These fixed sequences are called magic numbers or file signatures: %PDF- for PDF, the bytes 89 50 4E 47 0D 0A 1A 0A for PNG, FF D8 FF for JPEG, and PK followed by 03 04 for ZIP. Programs such as the Unix file command use the same idea.

Some formats are containers. A DOCX, XLSX, PPTX, EPUB or JAR file is a ZIP archive with a particular set of files inside, so the checker looks at the names in the archive to tell them apart. Modern image and video formats such as HEIC, AVIF, MP4 and MOV share one container layout and are separated by a short brand code after the word ftyp.

Checking the type is a useful first step with downloads and email attachments. If the content is an executable but the name ends in .pdf or .jpg, treat the file as suspicious. A correct signature does not prove a file is safe, so keep antivirus software running.

Frequently asked questions

How can you tell what a file is without its extension?

Many formats start with a fixed sequence of bytes called a magic number or signature. For example, PDF files start with %PDF- and PNG files with a specific 8-byte header.

Is my file uploaded?

No. Only the first 64 KB is read, in your browser, and nothing is sent anywhere.

What does extension mismatch mean?

The name says one thing and the content says another, for example a .jpg that is really a PNG. It is often harmless, but it can also be used to disguise a program, so be careful with files you did not create.

Why is my text or CSV file just called plain text?

Text files have no signature. The tool can only see that the content looks like readable text, except for JSON, XML, HTML and SVG, which have recognisable starts.

Sources

Last reviewed: September 30, 2026