File Type Checker
This file type checker reads up to 512 bytes per file to identify formats covered by 40 signatures and flag mismatched extensions. Add up to 200 files; processing stays in your browser.
How to use
- Add the files you want to check: Drop files onto the box or click to choose them. Any type is accepted and there is no size limit, because only the header of each file is read. On a computer you can drop a whole folder. The box stays on screen afterwards, so you can keep adding files to the list.
- Click Check file types: The files are read one after another and a card appears for each one. The card header is the answer: format name, standard MIME type and size. Cards whose extension disagrees with the content get an orange border and a line saying what the content really is.
- Open a card, or export the table: Expand any card for the standard MIME type, the usual extensions of that format, the browser's own MIME guess, the modified time, a byte order mark if there is one, and up to the first 64 bytes in hex. Copy summary puts one card on the clipboard; Download list as CSV saves the whole table as file-type-checker.csv.
How this file type checker reads your files
A file type checker looks at the bytes inside a file instead of the name on the outside. Most formats begin with a fixed marker — a magic number, also called a file signature — and this page compares the start of every file against a table of 40 such signatures, covering 37 format names and 36 standard MIME types. The answer sits on the card header: format name, MIME type and size. Nothing is uploaded; the code that does the identifying is downloaded with the page and then reads each file on your own computer or phone.
Only the first 512 bytes of each file are read. The browser is asked for that one slice and nothing else, so a 4 GB video is never loaded into memory — which is why the 50 MB cap the other file tools use is switched off here and there is no size limit at all. The number 512 is what it takes to reach the ustar marker a TAR archive keeps at byte 257, with room to spare. How long the reading takes still depends on your browser and on where the files live — an internal disk, an external drive, a network share, a phone's photo library — so the fixed read size is a guarantee about bytes, not about seconds.
When a header matches more than one signature, the first match in the table wins and the rest are never compared. The table is ordered for exactly that: WebP, WAV and AVI are each matched as a complete RIFF header, and the HEIC, AVIF and MOV ftyp brands are checked ahead of the general MP4 signature, which catches every other ftyp brand and carries a note saying the exact subtype follows the extension. Expanding a card also shows up to the first 64 bytes as a classic hex dump with an ASCII column, in which any byte outside the printable range 0x20–0x7E is drawn as a middle dot. A shorter file simply gets a shorter dump, and an empty file gets none. Identification still uses the whole header that was read, not only the bytes drawn.
When the file extension does not match the content
Each card tells you whether the extension matches the content, and a mismatch is flagged only when three things are true at once: a signature matched, the file name has an extension, and that extension is not one of the ones the matched format normally uses. The card then gets an orange border and a permanent line naming what the content really is, and the summary above the list counts how many files are affected. Renaming one 214,657-byte PNG four times shows the rule at work.
Office documents and app packages are the common false alarm, and they are not flagged here: .docx, .xlsx, .pptx, .epub, .jar, .apk, .odt and .ipa are all listed as usual extensions of the ZIP signature, because those files genuinely are zip containers. Extension case is ignored, so photo.PNG is lower-cased to png and agrees with its content. A file with no extension at all is never flagged either — there is nothing for the content to disagree with. And when no signature matched, nothing is flagged however wrong the name looks: a file reported as plain text or as not identified has no format to compare the extension against.
What the page gives you is a statement about bytes, not a verdict. A mismatch can be completely innocent — a screenshot saved as .jpg by a tool that actually wrote PNG, a download whose extension the server guessed — or it can be worth a second look, as with an invoice.pdf whose content is a Windows executable. Deciding which is your call.
| File name | Extension read from the name | Identified as | Mismatch flagged |
|---|---|---|---|
| photo.jpg | jpg | PNG image | Yes |
| photo.txt | txt | PNG image | Yes |
| photo.PNG | png (lower-cased) | PNG image | No |
| photo (no extension) | none | PNG image | No |
The same 214,657 bytes under four names, measured by calling the identification code on the sample photo.png. The page shows that size as 210 KB.
Once you know which names are wrong, Bulk Rename Files fixes a whole batch of them in one go — it changes names only, never the format.
Plain text, byte order marks and files that are not identified
If no signature matches, two fallbacks run in turn. First the header is checked for a byte order mark: UTF-32 LE, UTF-32 BE, UTF-8, UTF-16 LE and UTF-16 BE, compared longest sequence first, so the bytes FF FE 00 00 are reported as UTF-32 LE rather than UTF-16 LE. A byte order mark on its own is enough for the file to count as plain text, and the mark is named on the card and in the exported list.
Without a BOM, the tool checks up to 256 bytes. All three conditions must pass.
A multi-byte sequence cut off at the end of that 256-byte sample still counts as a well-formed prefix, so a long UTF-8 document is not taken for binary data on that account — it simply goes on to the NUL and control-byte checks like any other file.
A zero-byte file is a separate case: with no header bytes at all it does not count as text, and the card reports an empty file.
Because signatures are checked before the text fallback, there is one real side effect: a plain text file that happens to begin with the two characters MZ or BM is reported as a Windows executable or a BMP image, since the match is found first and the text check never runs. Not identified, meanwhile, means one of two things — the format is not among the 40 signatures (.doc and .xls in their old binary form, WMA, DWG and .mdb land here, while text-based formats such as SVG and RTF land in plain text instead), or the content is binary data the table does not know. It is not a statement that the file is broken.
| Condition | What is checked | If it fails |
|---|---|---|
| Valid UTF-8 prefix | The sample has to be well-formed UTF-8 as defined in the Unicode standard: illegal lead bytes, out-of-range continuation bytes, overlong encodings and surrogates are all rejected. | Not identified |
| No NUL bytes | A single NUL (0x00) anywhere in the sample rules the file out as text. | Not identified |
| Counted control bytes below 10% | Control bytes have to make up less than 10% of the sample. Tab, newline, carriage return, form feed, vertical tab, backspace and escape are exempt and never counted. | Not identified |
All three have to hold at once; pass them all and the card says the file looks like plain text.
What a signature match does not prove
Identifying is not validating. A match means the first bytes agree with the format; it says nothing about the rest of the file. Deliberately damaged samples make the point: a corrupted ZIP, JPEG, HEIC, 7Z, RAR or PDF is still reported as ZIP, JPEG, HEIC, 7Z, RAR or PDF. This page will not tell you whether a file is intact, and it never opens the file to find out.
A password-protected ZIP is identified as an ordinary ZIP archive, with no field anywhere saying it is encrypted. The reason is not that too little was read: identification compares the four bytes PK 03 04 and stops, so the general purpose bit flag that records encryption — which sits at offset 6, inside the bytes already in memory — is never examined. Layered archives behave the same way and are reported by their outermost layer: in a .tar.gz the ustar marker is inside the gzip stream, so the header says GZIP compressed, and because .tgz and .gz are both listed under that signature, no mismatch is flagged. MP3 files are recognised from an ID3 tag or an FF FB frame header, so an MP3 with no ID3 tag whose first frame is FF F3 or FF F2 matches neither. TAR needs at least 262 bytes, since a signature that would run past the bytes actually read counts as no match — given only the first 256 bytes of a tar archive, the result is not identified.
Several things are simply not in the table, and there is no code here to read them: no EXIF, no image dimensions, no duration, no bitrate, no checksum. So this page cannot tell you when a photo was taken or whether two files are byte-for-byte identical. Modified is whatever your operating system hands the browser, not a date stored inside the file, so after a chat app or a re-download it is often the time of the transfer. Browser MIME type is the browser's own guess from the extension, frequently empty, and takes no part in identification — the card labels it for reference only. Nothing here scans for malware. And where there is no byte order mark, plain text is as far as the answer goes: the specific encoding, be it GBK, Big5 or Shift-JIS, is not determined.
| Sample file | Size | Identified as | What the result does not say |
|---|---|---|---|
| normal.zip | 652 B | ZIP archive, application/zip | — |
| encrypted.zip (password set) | 213 B | ZIP archive, application/zip | That it needs a password |
| corrupted.zip | 300 B | ZIP archive, application/zip | That it is damaged |
| corrupted.pdf | 76 B | PDF document, application/pdf | That it will not open |
| normal.tar | 10,240 B | TAR archive, application/x-tar | Matched on ustar at byte 257 |
| normal.tar.gz | 273 B | GZIP compressed, application/gzip | That a TAR archive is inside |
| sample.heic | 162,288 B | HEIC image, image/heic | Matched on the ftyp brand |
Measured by running the identification code directly on the sample files kept for checking this tool.
When the answer comes back as a ZIP archive and you want to see the entries without unpacking anything, open it with ZIP Viewer.
Checking a batch of files and exporting the list
Up to 200 files can be checked, counted cumulatively rather than per batch: the quota is 200 minus the number already in the list, so adding in several goes cannot get past it. Drop a batch that would overshoot and only the files that fit are taken, with a message saying how many were skipped; once the list is full, a new batch is refused outright. To make room, remove a single file with the ✕ next to it or use Clear all — both of those buttons are disabled while the files are being read, so wait for the run to finish. The drop box itself is never disabled, so files can be added at any time.
Each file is read on its own, and one failure does not spoil the rest. If the browser cannot hand over a file's header — usually because the file was moved or deleted after it was chosen — that card alone shows a read error and every other file still gets its result. Two behaviours are worth knowing. Adding or removing a file clears the table that is already on screen, along with the search box and any cards you had open, so click Check file types again. And adding files during a run does not cancel it: the run finishes with the files it started with, and anything added mid-way is missing from the table until you run it again.
The search box filters the cards by file name as you type; the summary line and the CSV always cover every file in the run, not just the ones showing. Download list as CSV writes ten columns — file name, size, bytes, identified as, standard MIME type, file extension, browser MIME type, modified, byte order mark, and whether the extension disagrees with the content — with quoted fields, CRLF line endings and a UTF-8 byte order mark so that Excel reads non-ASCII file names correctly. The bytes column holds unformatted digits rather than the grouped number shown on screen, so a spreadsheet can add it up, and fields with no value are left empty rather than filled with the placeholder text the cards use. This download is an ordinary link: on a phone as on a desktop it saves the file, and no system share sheet opens.
Nothing is kept by the page. The list and the table live in the page's memory only — no cookies, no local storage — so a reload empties both and you choose the files again. The two copies you make yourself are a different matter: a downloaded CSV stays in your downloads folder and a copied summary stays on the clipboard until you copy something else, and neither is cleared by this page. The CSV holds the table, including file names, never file contents and never the hex dump. And while your files are not uploaded, the page and its code are fetched from a server like any web page, and anyone using the same device, or holding a CSV you exported, can read the file names in it.
How this tool is checked
- The logic behind this tool is covered by 39 automated test cases (hand-checked examples, edge cases and invalid input), and they run again before every release.
- Before each release, a real browser opens this page, runs it on sample files (including a damaged one) and checks the file it produces.
- Your files are processed in your browser and are never uploaded to our server.
- Formulas, figures and definitions are checked against the sources listed at the end of this page.
Frequently asked questions
- How do I find the real file type when the extension is wrong?
- Add the file and click Check file types: the card header names the format read from the file's own header bytes. If that format does not match the extension in the name, the card is outlined in orange and says what the content really is — for example a photo.jpg whose bytes are a PNG image.
- Can I identify a file that has no extension at all?
- Yes. Nothing here depends on the file name, so a file called README or export with no extension is identified from its bytes like any other. Files with no extension are never flagged as a mismatch, because there is no extension to disagree with the content.
- Are my files uploaded to a server?
- No. Each file's first 512 bytes are read by the page and identified on your device, and no file content is sent anywhere. The page itself is downloaded from a server as any web page is, and a CSV you export stays in your downloads folder until you delete it.
- Why is my .docx shown as a ZIP archive?
- Because it is one: .docx, .xlsx, .pptx, .epub, .jar and .apk are zip containers with a different extension. All of those are listed under the ZIP signature, so none of them is reported as a mismatch, and the card carries a note that the file may be a container of that kind.
- Does it work on very large files?
- Yes, there is no size limit here, because only the first 512 bytes of each file are read and the file is never loaded into memory. The file still has to be one your browser can select and read, and how quickly it reads depends on where the file is stored — an external drive or a network share can feel slower than an internal disk.
- Can it tell me if a file is corrupted or contains a virus?
- No to both. A signature match only means the opening bytes agree with the format: deliberately damaged ZIP, JPEG, PDF, RAR, 7Z and HEIC samples are all still reported as those formats. Nothing is scanned for malware, and a mismatched extension is reported as a fact, not judged.
- Can it tell whether a ZIP file has a password?
- No, a password-protected ZIP looks like an ordinary ZIP archive here. Identification compares the four bytes PK 03 04 and stops, so the flag that records encryption — six bytes into the header, inside what was already read — is never examined. Your unzip tool will ask for the password instead.
Related tools
Cite this tool
Using a result in a report, paper or assignment? Copy a ready-made reference.
Gingertool. (2026). File Type Checker [Online tool]. Retrieved November 21, 2026, from https://gingertool.com/en/file-tools/file-type-checker/
“File Type Checker.” Gingertool, November 21, 2026, https://gingertool.com/en/file-tools/file-type-checker/. Accessed November 21, 2026.
@misc{gingertool-file-info,
author = {{Gingertool}},
title = {File Type Checker},
year = {2026},
url = {https://gingertool.com/en/file-tools/file-type-checker/},
note = {Accessed: 2026-11-21}
}