Skip to content
DoItJag

File Type Checker

Find out what kind of file you really have. The checker reads the first bytes of the file (its signature or "magic number") and the structure inside ZIP and Office containers, names the format and its MIME type, and tells you when the extension in the name does not match, for example a program disguised as a PDF.

or drop files here · Any file type · up to 100 GB · max 100 files

Processed on your device. Your files are not uploaded.

All 72 formats this tool recognises (signatures checked 2026-11-20)
FormatExtensionsWhat the tool looks forDocumented in
PNG imagepng, apng89 50 4E 47 0D 0A 1A 0A at byte 0loc.gov; w3.org
JPEG imagejpg, jpeg, jpe, jfifFF D8 FF at byte 0 (start-of-image marker followed by the next marker)loc.gov; loc.gov; loc.gov
GIF imagegif"GIF87a" or "GIF89a" at byte 0loc.gov; w3.org
WebP imagewebpRIFF at byte 0 and the form type at byte 8 is "WEBP"loc.gov; rfc-editor.org
AVIF imageavif"ftyp" box at byte 4 with the brand "avif" or "avis"aomediacodec.github.io; loc.gov
HEIC image (HEIF with HEVC)heic, heif"ftyp" box at byte 4 with the brand "heic", "heix", "heim", "heis", "hevc" or "hevx"iana.org; loc.gov
HEIF imageheif, heic"ftyp" box at byte 4 with the generic brand "mif1" or "msf1"iana.org; loc.gov
JPEG XL imagejxlFF 0A at byte 0 (bare codestream), or the box 00 00 00 0C 4A 58 4C 20 0D 0A 87 0Anationalarchives.gov.uk; nationalarchives.gov.uk
JPEG 2000 imagejp2, jpx, j2k00 00 00 0C 6A 50 20 20 0D 0A 87 0A at byte 0 (signature box)loc.gov
BMP imagebmp, dib"BM" at byte 0, with a plausible header size at byte 14loc.gov
TIFF image (also used by many camera RAW files)tif, tiff, dng, nef49 49 2A 00 (little-endian) or 4D 4D 00 2A (big-endian) at byte 0loc.gov
BigTIFF imagetif, tiff, btf49 49 2B 00 or 4D 4D 00 2B at byte 0loc.gov
Windows iconico00 00 01 00 at byte 0, a small image count and sensible directory entriesnationalarchives.gov.uk; learn.microsoft.com
Adobe Photoshop documentpsd, psb"8BPS" at byte 0 followed by version 1 (PSD) or 2 (PSB)loc.gov; nationalarchives.gov.uk
SVG vector imagesvgText whose first element is <svg> (SVG has no binary signature)loc.gov; w3.org
PDF documentpdf"%PDF-" within the first 1,024 bytesloc.gov
Rich Text Format documentrtf"{\rtf" at byte 0loc.gov
PostScript or EPS fileps, eps"%!PS" at byte 0loc.gov; loc.gov
Microsoft compound file (older Office, Outlook .msg, Windows Installer .msi)doc, xls, ppt, msgD0 CF 11 E0 A1 B1 1A E1 at byte 0loc.gov
Word 97-2003 documentdoc, dotCompound file (D0 CF 11 E0 ...) holding a "WordDocument" streamloc.gov; nationalarchives.gov.uk
Excel 97-2003 workbookxls, xltCompound file (D0 CF 11 E0 ...) holding a "Workbook" (or older "Book") streamloc.gov; loc.gov
PowerPoint 97-2003 presentationppt, pps, potCompound file (D0 CF 11 E0 ...) holding a "PowerPoint Document" streamloc.gov; loc.gov
Word document (DOCX)docx, docm, dotxZIP archive containing [Content_Types].xml and a word/ folderloc.gov; loc.gov; pkwaredownloads.blob.core.windows.net
Excel workbook (XLSX)xlsx, xlsm, xltxZIP archive containing [Content_Types].xml and an xl/ folderloc.gov; loc.gov; pkwaredownloads.blob.core.windows.net
PowerPoint presentation (PPTX)pptx, pptm, ppsx, potxZIP archive containing [Content_Types].xml and a ppt/ folderloc.gov; loc.gov; pkwaredownloads.blob.core.windows.net
Office Open XML package (other type)vsdx, xps, nupkg, 3mfZIP archive containing [Content_Types].xmlloc.gov; pkwaredownloads.blob.core.windows.net
OpenDocument fileodt, ods, odp, odgZIP archive whose first entry is "mimetype", holding application/vnd.oasis.opendocument.*loc.gov; pkwaredownloads.blob.core.windows.net
EPUB e-bookepubZIP archive whose first entry is "mimetype", holding application/epub+ziploc.gov; pkwaredownloads.blob.core.windows.net
Java archive (JAR)jar, war, earZIP archive containing META-INF/MANIFEST.MFdocs.oracle.com; pkwaredownloads.blob.core.windows.net
Android app package (APK)apkZIP archive containing AndroidManifest.xml and classes.dexdeveloper.android.com; pkwaredownloads.blob.core.windows.net
ZIP archivezip50 4B 03 04 at byte 0 (local file header), or 50 4B 05 06 for an empty archiveloc.gov; pkwaredownloads.blob.core.windows.net
GZIP compressed filegz, tgz1F 8B at byte 0, compression method 08 (deflate)loc.gov; rfc-editor.org
bzip2 compressed filebz2, tbz2"BZh" at byte 0 followed by a block size digit 1-9loc.gov
XZ compressed filexz, txzFD 37 7A 58 5A 00 at byte 0tukaani.org
Zstandard compressed filezst28 B5 2F FD at byte 0 (magic number 0xFD2FB528, little-endian)rfc-editor.org
7-Zip archive7z37 7A BC AF 27 1C at byte 0loc.gov
RAR archiverar52 61 72 21 1A 07 00 (RAR 4) or 52 61 72 21 1A 07 01 00 (RAR 5) at byte 0loc.gov; loc.gov
TAR archivetar"ustar" at byte 257loc.gov
Windows cabinet archivecab"MSCF" at byte 0, format version 1.3 at byte 24nationalarchives.gov.uk
ISO 9660 disc imageiso"CD001" at byte 32,769 (or 34,817 / 36,865)loc.gov
MP3 audiomp3"ID3" tag at byte 0, or an MPEG audio frame header (FF Ex or FF Fx) with valid fieldsloc.gov
WAV audiowav, waveRIFF at byte 0 and the form type at byte 8 is "WAVE"loc.gov
FLAC audioflac"fLaC" at byte 0loc.gov; rfc-editor.org
Ogg audio or videoogg, oga, ogv, opus"OggS" at byte 0 (the codec, such as Opus or Vorbis, is named in the first packet)loc.gov; rfc-editor.org
AIFF audioaif, aiff, aifc"FORM" at byte 0 and "AIFF" or "AIFC" at byte 8loc.gov
Apple Core Audio filecaf"caff" at byte 0loc.gov
MIDI music filemid, midi"MThd" at byte 0loc.gov
MPEG-4 audio (M4A)m4a, m4b, m4p"ftyp" box at byte 4 with the brand "M4A ", "M4B " or "M4P "loc.gov; mp4ra.org
MP4 videomp4, m4v"ftyp" box at byte 4 with an MP4 brand such as "isom", "mp41", "mp42" or "avc1"loc.gov; mp4ra.org
QuickTime moviemov, qt"ftyp" box with the brand "qt ", or a "moov", "mdat", "wide" or "free" box at byte 4loc.gov; mp4ra.org
3GPP video3gp, 3g2"ftyp" box at byte 4 with a "3gp" or "3g2" brandloc.gov; mp4ra.org
WebM videowebmEBML header 1A 45 DF A3 at byte 0 with the DocType "webm"loc.gov; webmproject.org; rfc-editor.org
Matroska video (MKV)mkv, mka, mk3dEBML header 1A 45 DF A3 at byte 0 with the DocType "matroska"loc.gov; rfc-editor.org
AVI videoaviRIFF at byte 0 and the form type at byte 8 is "AVI "loc.gov
TrueType or OpenType fontttf, otf00 01 00 00 or "true" at byte 0 with a consistent table directorylearn.microsoft.com
OpenType font (CFF outlines)otf"OTTO" at byte 0 with a consistent table directorylearn.microsoft.com
Font collectionttc, otc"ttcf" at byte 0, version 1 or 2learn.microsoft.com
WOFF web fontwoff"wOFF" at byte 0w3.org
WOFF2 web fontwoff2"wOF2" at byte 0w3.org
Windows program or library (EXE, DLL)exe, dll, sys, scr"MZ" at byte 0 and "PE" 00 00 at the offset stored at byte 60 (0x3C)nationalarchives.gov.uk; learn.microsoft.com
MS-DOS programexe, com"MZ" at byte 0 without a PE headerlearn.microsoft.com
Linux/Unix program or library (ELF)so, o, elf, bin7F 45 4C 46 ("\x7FELF") at byte 0nationalarchives.gov.uk; nationalarchives.gov.uk
WebAssembly modulewasm00 61 73 6D ("\0asm") at byte 0webassembly.github.io
Java class fileclassCA FE BA BE at byte 0 with a class-file major version of 45 or moredocs.oracle.com; nationalarchives.gov.uk
SQLite databasesqlite, sqlite3, db, db3"SQLite format 3" followed by a zero byte at byte 0loc.gov; sqlite.org
Apache Parquet data fileparquet"PAR1" at byte 0 (and at the end of the file)loc.gov; parquet.apache.org
XML documentxmlText starting with an "<?xml" declaration (text formats have no binary signature)w3.org; loc.gov
HTML web pagehtml, htmText starting with <!DOCTYPE html> or an <html> taghtml.spec.whatwg.org; loc.gov
JSON datajsonText that parses as JSON (JSON has no signature)rfc-editor.org; loc.gov
vCard contact filevcf, vcardText starting with BEGIN:VCARDrfc-editor.org
iCalendar fileics, icalText starting with BEGIN:VCALENDARrfc-editor.org
Plain texttxt, csv, log, mdNo binary bytes; a byte order mark (EF BB BF, FF FE or FE FF) if present names the encodingunicode.org

About the file type checker

Most formats begin with a fixed run of bytes that the program writing them always puts first. A PNG starts with the bytes 89 50 4E 47, a PDF with the text %PDF-, a ZIP with PK. These are called signatures or magic numbers. The checker reads that opening part of your file, compares it with a table of documented signatures and tells you which format it really is, whatever the name says.

When to use it

  • An email attachment called invoice.pdf will not open and you want to know what it actually is.
  • A file arrived with no extension at all, so your computer does not know which app to use.
  • You run a website or form that accepts uploads and want to see why a “JPG” was rejected.
  • You suspect a download is a program dressed up as a document.

Worked example

You drop in scan.pdf, which your PDF reader refuses. The result says “JPEG image”, the badge reads “Extension does not match”, and the hex line begins FF D8 FF E0. The tool suggests renaming it to .jpg, after which any photo viewer opens it. A second file, report.pdf, is a Windows program and gets a warning: that one should be deleted, not opened.

What it can and cannot tell you

ZIP-based files share one signature, so the checker also reads the list of files inside the archive to separate Word, Excel and PowerPoint documents, OpenDocument files, EPUB books, Java archives and Android apps. Older Office files are told apart by the stream names in their internal directory. Text formats such as CSV, JSON or HTML have no signature at all, so for those the result is a reasoned guess from the first characters and is labelled that way.

Knowing the format is not the same as knowing the file is harmless. A real PDF can still contain a malicious link. Every format in the table links to the specification or archive record its signature comes from, with the date it was checked.

How to use File Type Checker

  1. Choose one or more files of any type, or drop them on the box.
  2. Read the detected format, MIME type and whether the extension matches, with the first bytes shown in hex.
  3. Open "How this was identified" to see the signature and where it is documented, or download a CSV report.

Privacy: how it works

Your files are processed on your own device by your browser. Only the first few kilobytes are read, and nothing is uploaded to any server.

Frequently asked questions

Why not just trust the extension?

Anyone can rename a file. The extension is only part of the name, while the signature is written into the content by the program that made the file, so it is much harder to fake by accident and a better guide to what will open it.

Does it read the whole file?

No. It reads the first few kilobytes and, for ZIP-based and older Office files, the file directory inside. That is why it works on files of many gigabytes, and nothing is uploaded.

Can it prove a file is safe?

No. It tells you the format, not whether the content is harmful. A genuine PDF or Office file can still carry malicious content, so only open files from people you trust and keep antivirus up to date.