1. Home
  2. Files & Archives
  3. File Type Checker

File Type Checker

Detect the real file type from its content, not its extension. Hex view included.

Runs in your browser · No upload

How to use

  1. Drop or choose the files to check. Several at once is fine.
  2. In the table, read the real type, MIME type, the correct extension and whether it matches the current one. A ❌ usually means the file was only renamed.
  3. If the type is right but the name is wrong, use “Save with correct extension” to download the same bytes under a correct file name.
  4. To see the bytes themselves, open the “Hex view” tab. It pages 4 KB at a time and has offset jump, byte search and value interpretation.

What the columns mean

Basis Meaning
Signature match The bytes at the start (or a fixed position) equal a known pattern
Structure check Inner structure was inspected too: ZIP entry names, OLE2 stream names, the PE header
Content guess Text without a signature, guessed from its shape (JSON, CSV, XML, HTML, SVG)
No evidence No known signature and no reason to call it text

Why the extension and the real type can differ

An extension is just part of the file name. Anyone can change it, and the contents stay the same. Rename a PNG to photo.jpg and you have PNG data with a JPG name; this tool reports “the extension is .jpg but the file is actually PNG”. Programs that trust the extension fail to open such files or behave oddly. It is common with downloads, photos sent through chat apps and files moved between devices.

Magic numbers

Many formats begin with fixed bytes that name the format. This tool reads only the first and last 64 KB of each file and compares them with its signature table, so multi-gigabyte files are checked quickly.

Format Starting bytes
JPEG FF D8 FF
PNG 89 50 4E 47 0D 0A 1A 0A
GIF GIF87a or GIF89a
PDF %PDF-
ZIP 50 4B 03 04 (PK)
GZ 1F 8B
7Z 37 7A BC AF 27 1C
SQLite SQLite format 3 + 00
EXE/DLL MZ
ELF 7F 45 4C 46

DOCX, XLSX, PPTX, HWPX, EPUB, JAR and APK all start as ZIP, so the tool also reads entry names from the central directory (word/, xl/, ppt/, the mimetype content and so on). DOC, XLS, PPT and HWP start as OLE2 and are told apart by inner stream names such as WordDocument, Workbook and FileHeader. If those names are not in the first 64 KB, the file is shown only as an OLE2 compound file.

Checking a downloaded file safely

  • Disguised executables: an EXE named .jpg or .pdf is the classic case. If the tool identifies EXE, ELF, Mach-O, JAR or APK, it warns regardless of the extension.
  • Macro documents: DOC, XLS, PPT, HWP and DOCM, XLSM, PPTM can carry macros. Do not open them if you do not know the source, and never click “Enable macros”.
  • Scripts: text files such as .bat, .ps1, .vbs, .js and .sh become code the moment they run. Read them first.
  • A matching type does not prove the content is safe; it is only a first check. You can compare checksums with the Hash Generator.

Using the hex view

Each row has an 8-digit offset, 16 bytes in hex and an ASCII column that keeps printable characters only (everything else is .). The signature bytes are highlighted. Click a byte to see it as uint8, int8, uint16, uint32 (little and big endian) and float32. Search takes hex such as FF D8 or plain text and scans the whole file. If text looks garbled, try the Text Encoding Converter. To look inside archives or build one, use ZIP Extractor and ZIP Creator.

Detection covers only the formats in the signature table. Anything else is shown as “Unknown type”, and very short text files are hard to classify precisely. Your files are processed only in your browser and are never sent to a server.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.