Skip to main content
Real format · MIME · Signature

File Type Checker

The real format read from a file’s first bytes, not from its name: wrong extension, no extension, disguised program, MIME type. Any number of files, nothing uploaded.

Drop files to see what they really are

or browse your files

Any file, any size: only its first bytes are read

  • Real format read in its first bytes
  • Wrong or missing extension fixed
  • Nothing is uploaded
Guide

How file type detection works

Nearly every file format begins with a few fixed bytes that identify it, called its signature or “magic number”. A JPEG starts with FF D8 FF, a PNG with 89 50 4E 47 (“‰PNG”), a PDF with 25 50 44 46 (“%PDF”), a Windows program with 4D 5A (“MZ”). Your computer picks an app from the extension; the signature tells what the file really is.

The checker reads the first 64 KB of each file and compares them with the signatures below. Some formats need one more look. DOCX, XLSX, PPTX, OpenDocument, EPUB, APK and JAR files are all ZIP archives, told apart by the names of the files they hold, read from the archive’s index at its end without unpacking anything. MP4, MOV, HEIC and AVIF share one container and are told apart by its “brand”. Text formats have no signature, so JSON, XML, HTML, SVG and CSV are recognised by reading the text.

The extension does not match? What to do

A mismatch is usually harmless: an iPhone photo saved as .jpg while it is HEIC, a WebP image downloaded under a .png name, a file renamed by hand. The file opens in tolerant apps and fails in strict ones: upload forms, older software, printers.

Fix the name when the content is what you need: the checker downloads a copy with the right extension. If you need another format, convert the file instead. Renaming never changes the bytes.

Files with no extension

Email attachments, files copied from a phone or a server and interrupted downloads often lose their extension, and the computer no longer knows which app should open them. The content is intact: once the real format is known, adding the extension is enough.

On Linux and macOS, programs and scripts usually have no extension, which is normal for them. The checker says so, and never suggests adding one to a program.

Is this file safe?

The oldest email trick is a program dressed up as a document: “invoice.pdf.exe”, with Windows hiding the last extension, or simply “invoice.pdf” holding a program. The checker reads what the file really is and marks red any program, script, Windows shortcut or macro document named like a document, picture, song or archive.

What it does not do: it is not an antivirus. A real PDF, Word file or picture can still contain an exploit, and an honestly named program can be malicious. If a file is unexpected or its sender unknown, scan it with your security software (Windows Security, for example) or an online multi-engine scanner before opening it.

The checker itself never opens, previews or runs a file: it reads its first bytes as numbers, in your browser, so checking a suspicious attachment is safe.

Common file signatures

The formats the checker recognises, with their MIME type and first bytes in hexadecimal. “+ name” means the format is a ZIP or an OLE file told apart by an entry inside it.

FormatExtensionMIME typeFirst bytes
JPEG image.jpg, .jpegimage/jpegFF D8 FF
PNG image.pngimage/png89 50 4E 47 0D 0A 1A 0A
GIF image.gifimage/gif47 49 46 38 39 61GIF89a / GIF87a
WebP image.webpimage/webp52 49 46 46 … 57 45 42 50RIFF … WEBP
AVIF image.avifimage/avif66 74 79 70 61 76 69 66ftyp avif · at byte 4
HEIC photo (iPhone).heicimage/heic66 74 79 70 68 65 69 63ftyp heic · at byte 4
HEIF image.heifimage/heif66 74 79 70 6D 69 66 31ftyp mif1 · at byte 4
BMP image (bitmap).bmpimage/bmp42 4DBM
TIFF image.tif, .tiffimage/tiff49 49 2A 00II*. / MM.*
Windows icon (ICO).icoimage/vnd.microsoft.icon00 00 01 00
Windows cursor (CUR).curimage/vnd.microsoft.icon00 00 02 00
Photoshop image (PSD).psdimage/vnd.adobe.photoshop38 42 50 538BPS
PDF document.pdfapplication/pdf25 50 44 46 2D%PDF-
Word document (DOCX).docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document50 4B 03 04+ word/document.xml
Word document with macros (DOCM).docmapplication/vnd.ms-word.document.macroEnabled.1250 4B 03 04+ word/vbaProject.bin
Excel spreadsheet (XLSX).xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet50 4B 03 04+ xl/workbook.xml
Excel spreadsheet with macros (XLSM).xlsmapplication/vnd.ms-excel.sheet.macroEnabled.1250 4B 03 04+ xl/vbaProject.bin
PowerPoint presentation (PPTX).pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentation50 4B 03 04+ ppt/presentation.xml
PowerPoint presentation with macros (PPTM).pptmapplication/vnd.ms-powerpoint.presentation.macroEnabled.1250 4B 03 04+ ppt/vbaProject.bin
OpenDocument text (ODT).odtapplication/vnd.oasis.opendocument.text50 4B 03 04+ mimetype
OpenDocument spreadsheet (ODS).odsapplication/vnd.oasis.opendocument.spreadsheet50 4B 03 04+ mimetype
OpenDocument presentation (ODP).odpapplication/vnd.oasis.opendocument.presentation50 4B 03 04+ mimetype
EPUB e-book.epubapplication/epub+zip50 4B 03 04+ mimetype application/epub+zip
Rich Text document (RTF).rtfapplication/rtf7B 5C 72 74 66{\rtf
Word 97–2003 document (DOC).docapplication/mswordD0 CF 11 E0 A1 B1 1A E1+ WordDocument
Excel 97–2003 spreadsheet (XLS).xlsapplication/vnd.ms-excelD0 CF 11 E0 A1 B1 1A E1+ Workbook
PowerPoint 97–2003 presentation (PPT).pptapplication/vnd.ms-powerpointD0 CF 11 E0 A1 B1 1A E1+ PowerPoint Document
Outlook email (MSG).msgapplication/vnd.ms-outlookD0 CF 11 E0 A1 B1 1A E1+ __substg1.0_
ZIP archive.zipapplication/zip50 4B 03 04PK..
RAR archive.rarapplication/vnd.rar52 61 72 21 1A 07Rar!
7-Zip archive (7Z).7zapplication/x-7z-compressed37 7A BC AF 27 1C
GZIP compressed file.gzapplication/gzip1F 8B 08
BZIP2 compressed file.bz2application/x-bzip242 5A 68BZh
XZ compressed file.xzapplication/x-xzFD 37 7A 58 5A 00
Zstandard compressed file (ZST).zstapplication/zstd28 B5 2F FD
TAR archive.tarapplication/x-tar75 73 74 61 72ustar · at byte 257
Disc image (ISO).isoapplication/x-iso9660-image43 44 30 30 31CD001 · at byte 32769
MP3 audio.mp3audio/mpeg49 44 33ID3 / FF FB
AAC audio.aacaudio/aacFF F1ADTS
WAV audio.wavaudio/wav52 49 46 46 … 57 41 56 45RIFF … WAVE
FLAC audio (lossless).flacaudio/flac66 4C 61 43fLaC
Ogg audio.oggaudio/ogg4F 67 67 53OggS
Opus audio (Ogg).opusaudio/ogg; codecs=opus4F 67 67 53OggS … OpusHead
M4A audio (MPEG-4).m4aaudio/mp466 74 79 70 4D 34 41 20ftyp M4A · at byte 4
MIDI music.midaudio/midi4D 54 68 64MThd
MP4 video.mp4video/mp466 74 79 70ftyp isom / mp42 · at byte 4
QuickTime video (MOV).movvideo/quicktime66 74 79 70 71 74 20 20ftyp qt · at byte 4
3GP video (phone).3gpvideo/3gpp66 74 79 70 33 67 70ftyp 3gp · at byte 4
WebM video.webmvideo/webm1A 45 DF A3+ webm
Matroska video (MKV).mkvvideo/x-matroska1A 45 DF A3+ matroska
AVI video.avivideo/x-msvideo52 49 46 46 … 41 56 49 20RIFF … AVI
Windows program (EXE).exeapplication/vnd.microsoft.portable-executable4D 5AMZ
Windows library (DLL).dllapplication/vnd.microsoft.portable-executable4D 5A … 50 45 00 00MZ … PE
Windows installer (MSI).msiapplication/x-msiD0 CF 11 E0 A1 B1 1A E1+ MSI
Linux program (ELF)noneapplication/x-executable7F 45 4C 46.ELF
macOS program (Mach-O)noneapplication/x-mach-binaryCF FA ED FEFE ED FA CE / CA FE BA BE
Script (#!).shtext/x-shellscript23 21#!
Windows shortcut (LNK).lnkapplication/x-ms-shortcut4C 00 00 00 01 14 02 00
Android app (APK).apkapplication/vnd.android.package-archive50 4B 03 04+ AndroidManifest.xml
Java program (JAR).jarapplication/java-archive50 4B 03 04+ META-INF/MANIFEST.MF
Java class (CLASS).classapplication/java-vmCA FE BA BE
WebAssembly module.wasmapplication/wasm00 61 73 6D.asm
TrueType font (TTF).ttffont/ttf00 01 00 00
OpenType font (OTF).otffont/otf4F 54 54 4FOTTO
TrueType font collection (TTC).ttcfont/collection74 74 63 66ttcf
Web font (WOFF).wofffont/woff77 4F 46 46wOFF
Web font (WOFF2).woff2font/woff277 4F 46 32wOF2
SQLite database.sqliteapplication/vnd.sqlite353 51 4C 69 74 65 20 66SQLite format 3

JSON, XML, HTML, SVG, CSV and plain text have no signature: they are recognised by reading their text.

How to see a file’s type on Windows and Mac

Windows

In File Explorer, choose View › Show › File name extensions (Windows 11), or tick “File name extensions” in the View tab (Windows 10), so that “invoice.pdf.exe” shows in full. Right-click › Properties gives the “Type of file”, still taken from the extension, not from the content.

Mac

In Finder, choose Settings › Advanced › Show all filename extensions. Get Info (⌘ I) shows the “Kind”. In Terminal, “file name” and “file --mime-type name” read the signature, like this checker.

How it works

Check a file’s real type in 3 steps

  1. Drop your files

    Any file, any size, as many as you like. Only the first bytes are read, so a 4 GB video is checked as fast as a photo.

  2. Read the verdict

    Green: the name is right. Amber: no extension or the wrong one, and the right one is given. Red: a program dressed up as a document.

  3. Fix it in one click

    Download a copy with the right extension, or open the file in the matching converter. The signature bytes are shown for the curious.

Practical guides

Renamed files and privacy

Wrong extension?

Renaming photo.png to photo.jpg doesn’t convert it: the bytes inside are still PNG. Most apps cope, but upload forms that check the content may refuse it.

To really change the format, convert the file: the checker links to the right converter.

Good to know

Private

Files are read by your browser, on your device. Nothing is uploaded, so you can check confidential documents and suspicious attachments safely.

The checker never opens or runs a file: it only reads its first bytes as numbers.

Nothing is uploaded
Frequently asked questions

File types — frequently asked questions

Extensions, MIME types, signatures and disguised files