FormatterHQ

File Type Checker

Identify any file from its first bytes instead of its name. See the real format, MIME type and a hex view, and get a warning when the extension is wrong.

Loading tool…
Ready.

How to use the File Type Checker

  1. Drop one or more files onto the page (any type and size).
  2. Read the detected type, MIME type and whether the name matches the content.
  3. Open First 64 bytes (hex) to see the file signature yourself.

A file type checker that ignores the name

An extension like .pdf is only a label in the file name. Anyone can change it, and it often goes missing or gets mangled when files are downloaded or sent by email. Most formats start with a fixed pattern of bytes, a file signature or magic number, that is far more reliable. This file type checker reads that pattern and tells you what the file really is.

Common file signatures

FormatFirst bytes (hex)As text
PDF25 50 44 46%PDF
PNG89 50 4E 47.PNG
JPEGFF D8 FF–
ZIP, DOCX, XLSX, JAR50 4B 03 04PK
Windows program4D 5AMZ
Linux program7F 45 4C 46.ELF

The checker knows more than 150 formats: images, audio, video, archives, fonts, documents, databases and executables. For ZIP-based files it looks inside the archive, so a Word document, an Excel workbook, a Java archive and an Android app are told apart. Text has no signature, so text files are analysed instead and recognised as JSON, SVG, HTML, XML, PEM certificates, scripts or plain text, with their encoding.

Extension mismatches

When the content does not match the extension, the result is marked. A PNG saved as .jpg is usually harmless. A program named invoice.pdf is a classic trick to get someone to run malware, so executables with a document or image extension get a red warning. This check is not a virus scanner: a genuine PDF or Word file can still contain harmful content.

When it helps

  • Files without an extension from downloads, backups or old disks.
  • Attachments that will not open, because they were saved as the wrong type.
  • Suspicious email attachments, to see whether a "document" is really a program.
  • Developers checking uploads, where the extension and MIME type sent by a browser cannot be trusted.

Large files and privacy

Most formats are recognised from the first few kilobytes, so even very large files are checked quickly. Files are read in your browser and never uploaded.

Related tools: look up an extension in the MIME type lookup, verify a download with the checksum calculator, or encode a file with file to Base64.

Frequently asked questions

How can I tell what type a file is without an extension?
Drop it here. The checker reads the first bytes of the file, which identify most formats, and shows the type and the usual extension to give it.
What is a magic number in a file?
A fixed sequence of bytes at the start of a file that identifies its format, for example %PDF for PDF files or the bytes 89 50 4E 47 for PNG images.
Why does my file show an extension mismatch?
The content is a different format from the one its name says. It was probably renamed or saved with the wrong extension. Be careful if a program is named like a document or image.
Can this detect viruses?
No. It identifies the file format only. A real document can still contain harmful macros or links, so use antivirus software for that.
Which file types can it recognise?
More than 150 formats, including images, audio, video, archives, fonts, Office documents, PDFs, databases and executables, plus text formats such as JSON, HTML, SVG and XML.
Are my files uploaded?
No. The files are read in your browser and never sent to a server.

Last updated October 8, 2026

Related tools

Broken Link Checker Find broken links on a web page: every link is checked and 404s, errors and redirects are listed. MIME Type Lookup Find the MIME / Content-Type for a file extension or the extensions for a media type — about 150 common types. HTTP Status Codes Searchable list of the HTTP status codes in use, from 100 to 511, with a plain explanation of when each response is used. JWT Decoder Decode a JSON Web Token to inspect its header, payload claims and expiry time, and verify its signature with your key. Runs locally. JWT Encoder & Generator Create and sign JSON Web Tokens with HS256, RS256, ES256, PS256 or EdDSA using a secret or PEM key. Signing happens in your browser. JWT Verifier Verify a JWT signature with a shared secret, PEM public key, X.509 certificate or JWKS and check exp, nbf, iss and aud claims. MongoDB ObjectId to Timestamp Extract the creation date from MongoDB ObjectIds and see the random and counter parts; also builds a date-range _id query. QR Code Generator Create free QR codes for URLs, text, Wi-Fi, vCards, e-mail, SMS, phone numbers, locations and events. Custom colours, PNG and SVG. QR Code Reader & Scanner Scan QR codes from an image, screenshot or your camera and see the content — links, Wi-Fi passwords, contacts — safely before opening. Regex Cheat Sheet Interactive regex cheat sheet: anchors, classes, quantifiers, groups, lookarounds, flags and Unicode, with clickable examples and a flavour table. Regex Escape Escape special characters so any text can be matched literally inside a regular expression in JavaScript, PCRE, Python or Java. Regex Explainer Break a regular expression into tokens and explain each part in plain English: groups, quantifiers, classes, anchors and lookarounds.