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)
| Format | Extensions | What the tool looks for | Documented in |
|---|---|---|---|
| PNG image | png, apng | 89 50 4E 47 0D 0A 1A 0A at byte 0 | loc.gov; w3.org |
| JPEG image | jpg, jpeg, jpe, jfif | FF D8 FF at byte 0 (start-of-image marker followed by the next marker) | loc.gov; loc.gov; loc.gov |
| GIF image | gif | "GIF87a" or "GIF89a" at byte 0 | loc.gov; w3.org |
| WebP image | webp | RIFF at byte 0 and the form type at byte 8 is "WEBP" | loc.gov; rfc-editor.org |
| AVIF image | avif | "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 image | heif, heic | "ftyp" box at byte 4 with the generic brand "mif1" or "msf1" | iana.org; loc.gov |
| JPEG XL image | jxl | FF 0A at byte 0 (bare codestream), or the box 00 00 00 0C 4A 58 4C 20 0D 0A 87 0A | nationalarchives.gov.uk; nationalarchives.gov.uk |
| JPEG 2000 image | jp2, jpx, j2k | 00 00 00 0C 6A 50 20 20 0D 0A 87 0A at byte 0 (signature box) | loc.gov |
| BMP image | bmp, dib | "BM" at byte 0, with a plausible header size at byte 14 | loc.gov |
| TIFF image (also used by many camera RAW files) | tif, tiff, dng, nef | 49 49 2A 00 (little-endian) or 4D 4D 00 2A (big-endian) at byte 0 | loc.gov |
| BigTIFF image | tif, tiff, btf | 49 49 2B 00 or 4D 4D 00 2B at byte 0 | loc.gov |
| Windows icon | ico | 00 00 01 00 at byte 0, a small image count and sensible directory entries | nationalarchives.gov.uk; learn.microsoft.com |
| Adobe Photoshop document | psd, psb | "8BPS" at byte 0 followed by version 1 (PSD) or 2 (PSB) | loc.gov; nationalarchives.gov.uk |
| SVG vector image | svg | Text whose first element is <svg> (SVG has no binary signature) | loc.gov; w3.org |
| PDF document | "%PDF-" within the first 1,024 bytes | loc.gov | |
| Rich Text Format document | rtf | "{\rtf" at byte 0 | loc.gov |
| PostScript or EPS file | ps, eps | "%!PS" at byte 0 | loc.gov; loc.gov |
| Microsoft compound file (older Office, Outlook .msg, Windows Installer .msi) | doc, xls, ppt, msg | D0 CF 11 E0 A1 B1 1A E1 at byte 0 | loc.gov |
| Word 97-2003 document | doc, dot | Compound file (D0 CF 11 E0 ...) holding a "WordDocument" stream | loc.gov; nationalarchives.gov.uk |
| Excel 97-2003 workbook | xls, xlt | Compound file (D0 CF 11 E0 ...) holding a "Workbook" (or older "Book") stream | loc.gov; loc.gov |
| PowerPoint 97-2003 presentation | ppt, pps, pot | Compound file (D0 CF 11 E0 ...) holding a "PowerPoint Document" stream | loc.gov; loc.gov |
| Word document (DOCX) | docx, docm, dotx | ZIP archive containing [Content_Types].xml and a word/ folder | loc.gov; loc.gov; pkwaredownloads.blob.core.windows.net |
| Excel workbook (XLSX) | xlsx, xlsm, xltx | ZIP archive containing [Content_Types].xml and an xl/ folder | loc.gov; loc.gov; pkwaredownloads.blob.core.windows.net |
| PowerPoint presentation (PPTX) | pptx, pptm, ppsx, potx | ZIP archive containing [Content_Types].xml and a ppt/ folder | loc.gov; loc.gov; pkwaredownloads.blob.core.windows.net |
| Office Open XML package (other type) | vsdx, xps, nupkg, 3mf | ZIP archive containing [Content_Types].xml | loc.gov; pkwaredownloads.blob.core.windows.net |
| OpenDocument file | odt, ods, odp, odg | ZIP archive whose first entry is "mimetype", holding application/vnd.oasis.opendocument.* | loc.gov; pkwaredownloads.blob.core.windows.net |
| EPUB e-book | epub | ZIP archive whose first entry is "mimetype", holding application/epub+zip | loc.gov; pkwaredownloads.blob.core.windows.net |
| Java archive (JAR) | jar, war, ear | ZIP archive containing META-INF/MANIFEST.MF | docs.oracle.com; pkwaredownloads.blob.core.windows.net |
| Android app package (APK) | apk | ZIP archive containing AndroidManifest.xml and classes.dex | developer.android.com; pkwaredownloads.blob.core.windows.net |
| ZIP archive | zip | 50 4B 03 04 at byte 0 (local file header), or 50 4B 05 06 for an empty archive | loc.gov; pkwaredownloads.blob.core.windows.net |
| GZIP compressed file | gz, tgz | 1F 8B at byte 0, compression method 08 (deflate) | loc.gov; rfc-editor.org |
| bzip2 compressed file | bz2, tbz2 | "BZh" at byte 0 followed by a block size digit 1-9 | loc.gov |
| XZ compressed file | xz, txz | FD 37 7A 58 5A 00 at byte 0 | tukaani.org |
| Zstandard compressed file | zst | 28 B5 2F FD at byte 0 (magic number 0xFD2FB528, little-endian) | rfc-editor.org |
| 7-Zip archive | 7z | 37 7A BC AF 27 1C at byte 0 | loc.gov |
| RAR archive | rar | 52 61 72 21 1A 07 00 (RAR 4) or 52 61 72 21 1A 07 01 00 (RAR 5) at byte 0 | loc.gov; loc.gov |
| TAR archive | tar | "ustar" at byte 257 | loc.gov |
| Windows cabinet archive | cab | "MSCF" at byte 0, format version 1.3 at byte 24 | nationalarchives.gov.uk |
| ISO 9660 disc image | iso | "CD001" at byte 32,769 (or 34,817 / 36,865) | loc.gov |
| MP3 audio | mp3 | "ID3" tag at byte 0, or an MPEG audio frame header (FF Ex or FF Fx) with valid fields | loc.gov |
| WAV audio | wav, wave | RIFF at byte 0 and the form type at byte 8 is "WAVE" | loc.gov |
| FLAC audio | flac | "fLaC" at byte 0 | loc.gov; rfc-editor.org |
| Ogg audio or video | ogg, 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 audio | aif, aiff, aifc | "FORM" at byte 0 and "AIFF" or "AIFC" at byte 8 | loc.gov |
| Apple Core Audio file | caf | "caff" at byte 0 | loc.gov |
| MIDI music file | mid, midi | "MThd" at byte 0 | loc.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 video | mp4, m4v | "ftyp" box at byte 4 with an MP4 brand such as "isom", "mp41", "mp42" or "avc1" | loc.gov; mp4ra.org |
| QuickTime movie | mov, qt | "ftyp" box with the brand "qt ", or a "moov", "mdat", "wide" or "free" box at byte 4 | loc.gov; mp4ra.org |
| 3GPP video | 3gp, 3g2 | "ftyp" box at byte 4 with a "3gp" or "3g2" brand | loc.gov; mp4ra.org |
| WebM video | webm | EBML header 1A 45 DF A3 at byte 0 with the DocType "webm" | loc.gov; webmproject.org; rfc-editor.org |
| Matroska video (MKV) | mkv, mka, mk3d | EBML header 1A 45 DF A3 at byte 0 with the DocType "matroska" | loc.gov; rfc-editor.org |
| AVI video | avi | RIFF at byte 0 and the form type at byte 8 is "AVI " | loc.gov |
| TrueType or OpenType font | ttf, otf | 00 01 00 00 or "true" at byte 0 with a consistent table directory | learn.microsoft.com |
| OpenType font (CFF outlines) | otf | "OTTO" at byte 0 with a consistent table directory | learn.microsoft.com |
| Font collection | ttc, otc | "ttcf" at byte 0, version 1 or 2 | learn.microsoft.com |
| WOFF web font | woff | "wOFF" at byte 0 | w3.org |
| WOFF2 web font | woff2 | "wOF2" at byte 0 | w3.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 program | exe, com | "MZ" at byte 0 without a PE header | learn.microsoft.com |
| Linux/Unix program or library (ELF) | so, o, elf, bin | 7F 45 4C 46 ("\x7FELF") at byte 0 | nationalarchives.gov.uk; nationalarchives.gov.uk |
| WebAssembly module | wasm | 00 61 73 6D ("\0asm") at byte 0 | webassembly.github.io |
| Java class file | class | CA FE BA BE at byte 0 with a class-file major version of 45 or more | docs.oracle.com; nationalarchives.gov.uk |
| SQLite database | sqlite, sqlite3, db, db3 | "SQLite format 3" followed by a zero byte at byte 0 | loc.gov; sqlite.org |
| Apache Parquet data file | parquet | "PAR1" at byte 0 (and at the end of the file) | loc.gov; parquet.apache.org |
| XML document | xml | Text starting with an "<?xml" declaration (text formats have no binary signature) | w3.org; loc.gov |
| HTML web page | html, htm | Text starting with <!DOCTYPE html> or an <html> tag | html.spec.whatwg.org; loc.gov |
| JSON data | json | Text that parses as JSON (JSON has no signature) | rfc-editor.org; loc.gov |
| vCard contact file | vcf, vcard | Text starting with BEGIN:VCARD | rfc-editor.org |
| iCalendar file | ics, ical | Text starting with BEGIN:VCALENDAR | rfc-editor.org |
| Plain text | txt, csv, log, md | No binary bytes; a byte order mark (EF BB BF, FF FE or FE FF) if present names the encoding | unicode.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.pdfwill 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
- Choose one or more files of any type, or drop them on the box.
- Read the detected format, MIME type and whether the extension matches, with the first bytes shown in hex.
- 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.