File Type Checker

Free online file type checker that identifies actual file formats, MIME types and common extensions using Magic Bytes signatures. Automatically checks whether file extensions match the detected formats. Supports drag-and-drop and batch file selection for up to 200 files. View HEX and ASCII file header information, identify common image, document, archive, audio, video and text formats, copy results and export TXT or CSV reports. Each file is primarily analyzed by reading its first 4 KB. All processing takes place locally in your browser without uploading files to a server.

File Type Checker Processed locally in your browser
Drop files here or click to choose
Reads file headers to identify the real format and compare it with the extension
Up to 200 files; only the first 4 KB of each file is read, nothing is uploaded
Detection settings
The HEX view shows the first 64 bytes as hex values and printable characters.
This tool identifies file formats; it is not a virus scanner or security checker. Only known signatures are recognised; an unknown result does not mean the file is safe.
Waiting for files
Files 0
Detected files
Summary
Files checked0
Extension matches0
Extension mismatch0
Unknown0
Failed0
Inconclusive0
Privacy:Only a few leading bytes are read, all locally; this site never receives or stores file contents.

Identify Real File Formats, MIME Types and Extensions with Magic Bytes

Online File Type Checker

NZTool File Type Checker identifies actual file formats, MIME types and common extensions by analyzing file header signatures (Magic Bytes), file signatures and selected content characteristics. It also checks whether a filename extension matches the detected format. Unlike methods that rely solely on file extensions, this tool primarily analyzes the actual bytes of a file to help identify incorrectly named files or mismatches between extensions and real formats.

The tool supports batch file detection, HEX file header inspection, copying detection results and exporting TXT or CSV reports. It primarily analyzes the first 4 KB of each file. Files are read and processed locally in your browser without being uploaded to a server.

What Features Does the File Type Checker Support?

  • Magic Bytes file header detection: Identifies common file formats using known file signatures instead of relying on filename extensions or browser-provided MIME types.
  • Actual formats and MIME types: Displays the detected file format, corresponding MIME type and common file extensions.
  • Extension matching: Automatically compares the filename extension with the detected format and displays statuses such as matched, mismatched, unknown format or unable to determine.
  • HEX file header viewer: Displays the beginning bytes of a file in hexadecimal and ASCII formats, including byte offsets, to help analyze file signatures.
  • Batch file detection: Supports drag-and-drop and multiple file selection, with up to 200 files per batch.
  • Common format identification: Supports common image, document, archive, audio, video, font, executable and selected text formats.
  • Container format analysis: Performs limited internal ZIP structure scanning to help identify ZIP-based formats such as DOCX, XLSX, PPTX, APK, JAR and EPUB.
  • Detection statistics: Summarizes the number of files with matching extensions, mismatched extensions, unknown formats, detection failures and inconclusive results.
  • Copy and export results: Supports copying individual file details or all results and exporting TXT or CSV reports.
  • Local privacy protection: Primarily reads the first 4 KB of each file for format analysis. Files are not uploaded to a server as part of the detection process.

How to Detect the Actual Type of a File Online

  1. Click the file selection button or drag the files you want to check into the file area.
  2. Enable automatic HEX file header expansion if you want to inspect detailed file signature information.
  3. Click Start Detection. The tool reads the beginning bytes of each file and analyzes known format signatures.
  4. Review the results, including the actual file format, MIME type, common extensions, extension matching status and HEX file header information.
  5. Use the results to determine whether the filename extension is correct. You can also copy individual results or export TXT and CSV reports.

What Are Magic Bytes?

Magic Bytes, also known as magic numbers or file signatures, are byte patterns at specific positions within a file that are commonly used to identify its format. Many common file formats contain fixed signatures at the beginning. For example, PNG images typically start with the hexadecimal bytes 89 50 4E 47 0D 0A 1A 0A, PDF files usually begin with the %PDF- marker, and ZIP files commonly use the signature 50 4B 03 04.

By examining these byte patterns, file types can be inferred without relying on filename extensions. However, not all formats have unique file headers. Some formats share container structures or signatures, so additional byte patterns and internal structures may be needed for identification. When the available information is insufficient, the tool displays an unknown format or marks the result as a possible identification rather than presenting an inference as a confirmed result.

Which Common File Formats Are Supported?

The tool can identify many common file formats, including the following categories:

  • Image formats: PNG, JPEG, GIF, WebP, BMP, TIFF, ICO, PSD, AVIF, HEIC and others.
  • Document formats: PDF, RTF, DOCX, XLSX, PPTX and others. Some Office formats require additional identification using internal ZIP structures.
  • Archive formats: ZIP, RAR, 7Z, GZIP, BZIP2, XZ, Zstandard, LZ4, TAR and others.
  • Audio formats: MP3, WAV, FLAC, OGG, AAC, MIDI, M4A and others.
  • Video formats: MP4, MOV, M4V, 3GP, AVI, FLV, WebM, MKV and others.
  • Executable and font formats: EXE, DLL, ELF, Mach-O, WASM, DEB, RPM, CAB, TTF, OTF, WOFF, WOFF2 and others.
  • Text formats: Selected TXT, JSON, XML, HTML, SVG, PHP, CSS, JavaScript and CSV formats, which can be identified using text encoding and content characteristics.

Actual detection capabilities depend on file signatures, the reading range and detection rules. Formats without fixed headers, formats using special encodings, or formats requiring the complete file structure may not be identified accurately.

Why Might a File Extension Not Match the Actual Format?

A file extension is only part of a filename and does not guarantee that the file contents belong to the corresponding format. For example, renaming a PDF file to photo.jpg does not convert the PDF into a JPEG image. The file type checker attempts to identify the actual format using the file's byte characteristics and compares the detected format with its filename extension.

An extension mismatch may result from manual renaming, incorrect naming, download errors or limitations in format identification. It does not necessarily indicate a security risk. Check the detected format before deciding whether the filename extension needs to be corrected. Do not rely solely on file extensions to determine file types.

What Is the HEX File Header Viewer Used For?

The HEX file header viewer displays the hexadecimal bytes at the beginning of a file, their offsets and corresponding ASCII characters. This helps developers verify file signatures, troubleshoot incorrect extensions and analyze unidentified files. The displayed information covers only the inspected file header, not the entire file in hexadecimal format. This feature is for viewing and analysis only and does not modify file contents.

What Is the Difference Between ZIP, DOCX, XLSX and PPTX?

ZIP is a common archive container format, while Office Open XML documents such as DOCX, XLSX and PPTX also use ZIP containers to store their internal files. These formats may share the same ZIP signature at the beginning and require further analysis of internal directories and file structures to distinguish them.

This tool scans only a limited portion of the beginning of a ZIP file and checks at most the first 32 local file headers. If the relevant directories or files are outside the inspected range, the tool may identify the file only as ZIP or label its subtype as a possible identification. The result does not mean that the complete archive structure or file contents have been validated.

How Are Text Files and JSON Formats Identified?

For selected text files, the tool attempts to detect encodings such as UTF-8 and UTF-16 and uses content characteristics at the beginning of the file to help identify formats such as JSON, XML, HTML, SVG, PHP, CSS, JavaScript and CSV.

Because the tool primarily reads the first 4 KB, text identification is based on limited content analysis and is not equivalent to validating the complete file syntax. For example, strict JSON syntax validation requires the complete JSON content. Larger files may only be identified as likely JSON or ordinary text. Text format detection results should be confirmed by examining the actual file contents.

Frequently Asked Questions

What Is the Difference Between File Type Detection and File Extension Detection?

File extension detection primarily determines a file type from filename suffixes such as .jpg, .pdf and .zip. File type detection analyzes Magic Bytes, file header structures and selected content characteristics to identify the actual format. It can therefore help identify cases where a filename extension does not match the actual file contents.

Why Do Some Files Show an Unknown Format?

Some files do not have fixed file headers or use signatures that are not currently supported by the tool. For complex container formats, special encodings and certain text files, analyzing only the beginning of a file may not be sufficient to determine its format accurately. In these cases, the tool displays an unknown format instead of providing an unreliable identification.

Why Might DOCX, XLSX and PPTX Be Identified Only as ZIP?

Office Open XML documents such as DOCX, XLSX and PPTX use ZIP container structures and share the same basic ZIP signature with ordinary ZIP files. The tool must locate relevant internal file structures within the limited reading range to identify the specific format. If the required structures are outside this range, the file may only be identified as ZIP or displayed with a possible subtype.

Why Does a File Extension Show as a Mismatch?

The tool reports a mismatch when the filename extension is not among the extensions supported by the detected format. For example, a file containing PDF data but using a .jpg extension may be reported as a mismatch. Check whether the file was incorrectly renamed or whether the correct file was selected.

Do Files Need to Be Uploaded to a Server for Detection?

No. The tool uses the browser's local file reading interface to analyze file headers. It primarily reads the first 4 KB of each file and does not upload file contents to NZTool servers.

Can Detection Results Prove That a File Is Safe?

No. Magic Bytes and file signatures can help identify file formats, but they cannot prove that a file is free of viruses, malicious code or other security risks. Even when a file extension matches its actual format, this does not replace professional virus scanning, security analysis or digital signature verification.

Does File Type Detection Modify the Original File?

No. The tool only reads file contents for analysis. It does not modify, convert, overwrite or save the original file again.

Can I Check Multiple Files at Once?

Yes. The tool supports drag-and-drop and batch file selection, with up to 200 files per batch. After detection, you can review each file's actual format, MIME type, extension matching status and HEX file header information, and export the results in batches.

Common Use Cases

  • Unknown file identification: Determine the actual format of files without recognizable extensions or from unknown sources.
  • File extension troubleshooting: Check whether filename extensions match actual file formats.
  • Downloaded file verification: Help confirm the formats of downloaded installers, documents, images and archives.
  • HEX file header analysis: Inspect Magic Bytes, hexadecimal bytes and corresponding ASCII characters.
  • Batch file format checking: Analyze multiple files at once and quickly identify extension mismatches.
  • Development and operations troubleshooting: Help inspect file uploads, file signatures and MIME type detection issues.

What Is File Type Detection?

File type detection identifies actual file formats, MIME types and common extensions by analyzing file header Magic Bytes, file signatures and selected content characteristics. Unlike methods that rely solely on filename extensions, it can help identify cases where file extensions do not match actual file contents. NZTool supports batch file detection, ZIP internal structure analysis, HEX file header inspection and result export. Files are primarily read and processed locally in your browser without being uploaded to a server.
  • Magic Bytes identification: Analyze file header signatures to identify actual file formats without relying solely on extensions
  • MIME type detection: Display detected file formats, corresponding MIME types and common extensions
  • Extension matching: Automatically compare filename extensions with actual formats and report matches, mismatches or inconclusive results
  • Multiple format support: Identify common images, documents, archives, audio, video, font, executable and selected text formats
  • HEX file header viewer: Display hexadecimal bytes, offsets and corresponding ASCII information
  • ZIP internal structure detection: Help distinguish formats such as DOCX, XLSX, PPTX, APK, JAR and EPUB
  • Batch file detection: Supports drag-and-drop and multiple file selection, with up to 200 files per batch
  • Statistics and export: Summarize matching, mismatching, unknown, failed and inconclusive results, with TXT and CSV export
  • Local privacy protection: Primarily reads the first 4 KB of each file for format identification without uploading files to a server
Use NZTool Online File Type Checker to quickly analyze actual file formats, MIME types and Magic Bytes signatures, and check whether filename extensions match. It supports batch detection, HEX file header inspection and TXT or CSV result export. It is suitable for identifying unknown files, checking file formats and troubleshooting development issues. Detection results are intended only as a reference for identifying file formats and do not prove file safety.
Comments 0
No comments yet. Be the first to comment!
avatar
Comment content cannot be empty
0/255