Drop a file to find out what it actually is. The checker reads the file's signature bytes, not its name, and reports the real format, its MIME type, and whether the extension matches the content. It also catches files that were cut short, and looks inside ZIP and legacy Office containers to tell a Word document from a spreadsheet from a plain archive. Files are read in your browser and never uploaded. For the background, see our guide to magic bytes and file signatures; to confirm a download is byte-for-byte what the publisher shipped, use the File Checksum Verifier.
File Type Checker
Find out what a file really is from its bytes, and whether its extension is lying
No file? Paste the first bytes as hex
What the checker reads
For each file the tool reads the first 64 KB and the last 64 KB, and nothing in between. That is
enough to identify more than 100 formats, because a signature is almost always in the first few
bytes and the things worth checking at the other end (a ZIP index, a PDF's %%EOF, a
PNG's closing chunk) are in the last few. Two container formats need one more small read: for a
ZIP the tool reads the central directory (up to 2 MB of it) to list the entries, and for a legacy
Office file it follows the directory chain for up to 16 sectors to find the stream names. A 40 GB
disk image is identified as quickly as a 4 KB icon.
Each result states how it was reached:
- Signature: fixed bytes at a fixed position matched, such as
89 50 4E 47for PNG. - Signature and structure: the signature matched and the tool then parsed something inside the file to narrow the answer, such as a ZIP's entry list or the PE header of a Windows program.
- Best guess: the format has no signature. Plain text, bare MP3 frames and AAC streams fall here. For MP3 and AAC the tool requires a second valid frame exactly where the first frame's header says it should start, so two matching bytes at the start of a random file are not enough.
The mismatches people actually run into
The extension check compares the file name with the content. These are the common causes of a red banner, and none of them involve an attacker:
- A WebP saved as .jpg or .png. Some sites and image CDNs send WebP data from a URL that ends in .jpg, so the saved file keeps the old name. Browsers open it; older editors and upload forms that check the bytes reject it.
- A HEIC photo renamed to .jpg. Renaming does not convert anything. The HEIC to JPG converter does.
- A web page where a document should be. If a download needed a login or had expired, the browser may save the HTML of the sign-in or error page under the document's name. The result reads "HTML document" and the PDF reader's "file is damaged" message finally makes sense.
- A Git LFS pointer. A 130-byte text file that starts with
version https://git-lfs.github.com/spec/v1standing in for an image or model. The repository was cloned without Git LFS, so the real file was never fetched. - A password-protected Office file. An encrypted .docx or .xlsx is not a ZIP. Office
stores it as an encrypted package inside the older compound-file container, so it starts with
D0 CF 11 E0. The checker recognises this and treats the extension as correct.
Signatures that mean more than one thing
A signature often identifies a family, not a format. Stopping at the first four bytes is why a spreadsheet so often gets reported as "ZIP archive" and a voice memo as "MP4 video". This is how the checker resolves the shared signatures:
| First bytes | Could be | How it is decided |
|---|---|---|
50 4B 03 04 (PK) | ZIP, DOCX, XLSX, PPTX, EPUB, ODT, JAR, APK, IPA | Entry names in the central directory, and the stored mimetype entry for EPUB and OpenDocument |
D0 CF 11 E0 A1 B1 1A E1 | DOC, XLS, PPT, MSG, MSI, encrypted OOXML | Stream names in the compound file's directory |
52 49 46 46 (RIFF) | WebP, WAV, AVI | The form type at bytes 8 to 11 |
66 74 79 70 (ftyp) at byte 4 | MP4, MOV, M4A, HEIC, AVIF, 3GP, CR3 | The major brand, then the compatible-brands list |
CA FE BA BE | Java class file, Mach-O universal binary | The next four bytes: a small architecture count, or a class file version of 45 or more |
4D 5A (MZ) | Windows EXE, DLL, DOS program | The PE header the MZ stub points to, and its DLL flag |
49 49 2A 00 / 4D 4D 00 2A | TIFF, and camera raw formats built on it | Canon CR2 has its own marker at byte 8; NEF, ARW and DNG are reported as TIFF-based |
1A 45 DF A3 | Matroska (MKV), WebM | The DocType string in the EBML header |
Not every signature sits at the start. A tar archive is marked by ustar at byte 257, an
ISO disc image by CD001 at byte 32,769, and an Apple disk image by a koly
block in its final 512 bytes. A PDF header may legally be preceded by junk; the checker accepts it
within the first 1,024 bytes, as Acrobat does, and tells you the offset.
Is the file complete?
A correct signature only proves how the file starts. Where a format defines an ending, the tool checks for it and warns if it is missing, which is the usual sign of an interrupted download:
| Format | Must end with |
|---|---|
| PNG | An IEND chunk (49 45 4E 44 AE 42 60 82) |
| JPEG | The end-of-image marker FF D9 |
| GIF | The trailer byte 3B |
%%EOF within the last 1,024 bytes | |
| ZIP and everything built on it | An end-of-central-directory record (50 4B 05 06) |
| Parquet | The marker PAR1 again |
If the ending is present but followed by extra bytes, the result says how many. Some cameras append data after a JPEG's end marker, so this is reported as a detail, not a fault.
What it does not do
- It does not validate the whole file. A PNG with a correct header, a correct ending and corrupt pixel data in the middle passes. Opening the file is the real test.
- It does not scan for malware or decide whether a file is safe to open.
- It does not decompress. A .tar.gz is reported as gzip, and a file inside an archive is not inspected.
- It does not detect the character encoding of legacy text. Text that is not valid UTF-8 is reported as "a legacy 8-bit encoding" without naming the code page. If such text shows up garbled, the mojibake guide explains how to work out which one it is.
- It does not recognise DER-encoded certificates and keys, which begin with a generic ASN.1 byte pattern too short to trust. PEM files are recognised, and the X.509 decoder shows what a PEM certificate contains.
- For JSON larger than 64 KB it reports "looks like JSON" from the first 64 KB and says the whole file was not parsed. The JSON validator checks all of it.
The MIME type shown is the one browsers and servers commonly use for the format. If you need the reverse lookup, from an extension to the MIME type a server should send, use the MIME type reference. To see what else is stored inside an image, the image metadata viewer reads its EXIF data, and the text to hex converter shows the bytes of anything you type.
Frequently asked questions
Is my file uploaded?
No. The browser reads the first 64 KB and the last 64 KB of the file on your own machine and compares them with a table of known signatures. For ZIP-based files it also reads the archive index, and for old Office files a few directory sectors. Nothing is sent to a server, including the file name, and there is no signup. You can confirm it in the Network tab of your browser's developer tools: dropping a file makes no request.
What are magic bytes?
Most binary formats begin with a fixed sequence of bytes that identifies them, called a signature or magic number. A PNG always starts with 89 50 4E 47 0D 0A 1A 0A, a PDF with the characters %PDF-, a ZIP with PK followed by 03 04. Programs check these bytes, not the file name, to decide what a file is. That is why renaming notes.txt to notes.pdf does not produce a PDF.
The tool says extension mismatch. Is the file dangerous?
Not necessarily. Most mismatches are harmless: a WebP image saved under a .jpg name, an iPhone HEIC photo renamed to .jpg, or a login page saved in place of a PDF download. It is a warning sign when an executable hides behind a document or image extension. Either way the mismatch tells you which program will actually be able to open the file. This tool identifies formats; it is not a malware scanner and a matching extension does not prove a file is safe.
Why does it say Plain text for my CSV, Markdown or source code?
Text formats have no signature. A CSV file, a Markdown file and a Python file are all just characters, so the content alone cannot tell them apart. The tool reports the text encoding (ASCII, UTF-8, UTF-16, or a legacy 8-bit code page), the line endings, and whether a byte order mark is present. It does recognise text formats that announce themselves: JSON that parses, XML and SVG, HTML, PEM certificates and keys, scripts with a #! line, vCard, iCalendar and Git LFS pointers.
Why is my .tar.gz reported as gzip, not tar?
Because that is what the outer bytes are. A .tar.gz is a tar archive compressed with gzip, and the tar signature only appears after decompression, which this tool does not do. When the gzip header stores the original file name and it ends in .tar, the result says so. The same applies to .tar.bz2, .tar.xz and .tar.zst.
Can it tell a .docx from a .xlsx if both are ZIP files?
Yes. Word, Excel and PowerPoint files, EPUB books, OpenDocument files, Java JARs, Android APKs and iOS IPAs all start with the same ZIP signature. The tool reads the list of files inside the archive from the index at its end and names the format from what it finds: a word/ folder means DOCX, xl/ means XLSX, ppt/ means PPTX, and so on. It also warns when an Office file contains a VBA macro project.
What does the truncated warning mean?
Several formats must end in a specific way: a PNG with an IEND chunk, a JPEG with the bytes FF D9, a GIF with 3B, a PDF with %%EOF, a ZIP with its end-of-central-directory record. If the start of the file is right but the ending is missing, the download or copy was probably cut short. The warning explains why an image shows only its top half or why an archive refuses to open even though its type is correct.
Get an email when new tools ship
Occasional and short: only when something new is added. Just your email, no account.