Account

What new tool do you want?

Security & Privacy

File Type Identifier (What Is This File?)

Find out what a file really is from its content, not its name: over 150 formats including Office, e-books, archives, photos, camera RAW, video, fonts, databases and programs. Spots wrong or missing extensions, macros and programs disguised as documents.

How to use

  1. 1Drop one or more files of any type. Nothing is uploaded.
  2. 2Each file shows what it really is, the extension it should have, its MIME type and details such as image size or PDF version.
  3. 3If the extension is wrong, save a correctly named copy; if a warning appears, don't open the file until you know where it came from.

Frequently asked questions

How can it tell without the extension?

Most formats start with a fixed 'magic number': PDFs begin with %PDF, PNGs with the bytes 89 50 4E 47, Windows programs with MZ. Containers are opened to look further: a ZIP holding word/document.xml is a Word file, one holding classes.dex is an Android app, and an Office compound file with an EncryptedPackage stream is a password-protected document.

My file has no extension. What should I rename it to?

Use the first extension under 'Usual extension'. The Save as button downloads a copy with that name. This often fixes attachments that arrive as 'file' or 'attachment.bin', downloads saved as .tmp, and photos that come off an iPhone as .heic.

Can it detect viruses?

No, it isn't an antivirus scanner. It warns about files that can run code (programs, installers, scripts, shortcuts, documents with macros), and loudly about a program named like a document, such as invoice.pdf that is really an .exe. For a real scan, use your antivirus or VirusTotal.

Are my files uploaded?

No. Files are read in your browser and never leave your device, which matters for exactly the kind of unknown file you'd check here.

Sources

Example: a suspicious invoice

An email from an unknown supplier has 'Invoice_0931.pdf.exe' attached, and Windows shows it as 'Invoice_0931.pdf' because known extensions are hidden. Dropping it here shows 'Windows program (EXE), 32-bit (x86)', a warning that the name has two extensions, and, if it had been renamed to plain .pdf, a red Danger notice. A real PDF shows 'PDF document, PDF version 1.7' and any JavaScript it contains.

Why extensions lie

An extension is only part of the name, and anyone can change it. Files get wrong extensions when a download is interrupted (.crdownload, .part), when a phone exports HEIC photos as .jpg, when mail servers rename attachments, or on purpose to get past email filters that block .exe. Programs that trust the extension then refuse to open the file, or worse, a dangerous file is opened as if it were harmless.

Formats that share a container

Many modern formats are ZIP files: .docx, .xlsx, .pptx, .epub, .odt, .apk, .jar, .kmz, .3mf and .cbz. Older Office files, Outlook .msg, .msi installers and Thumbs.db are all Microsoft compound files. MP4, MOV, HEIC, AVIF and M4A share the ISO media format and differ only by a 'brand' code near the start. The tool opens each container far enough to tell them apart, so a .docx renamed .zip is still called a Word document.

Related tools

More: Security & Privacy