What Is This File? Reading Extensions and Spotting Disguised Attachments
What file extensions mean, how to open unfamiliar formats like HEIC, MSG and Pages, and how to catch renamed or disguised files before opening them.

Every file name ends with a short label after the last dot: report.docx, photo.heic, invoice.pdf. That label, the extension, tells your computer which program to use. Most of the time it works silently. Then a relative sends a .pages file, a colleague forwards a .msg attachment, or a delivery notice arrives as a .zip with something odd inside, and the question becomes: what is this, how do I open it, and is it safe?
Extensions are labels, not proof
The first thing to understand is that an extension is just part of the name. Anyone can rename a file. A program called setup.exe renamed to holiday.jpg is still a program; double-click it in the wrong place and it runs. Operating systems help by checking some files, but they mostly trust the label.
The contents tell the truth. Almost every binary format starts with a fixed sequence of bytes, a signature. PDF files begin with %PDF. PNG images start with a byte 89 followed by the letters PNG. Windows programs begin with MZ. Comparing the first bytes with the extension shows whether the name is honest.
Looking up an unfamiliar format
The File Extension Lookup has an offline reference of about two hundred common extensions. Search by the extension, by a format name or by a program you know. Each entry says what the format is, its MIME type, which programs open it on different systems, and a safety note when the format can run code.
A few that confuse people regularly:
- HEIC is how iPhones save photos. Windows needs the free HEIF extension from the Microsoft Store, or you can set the iPhone to save JPEG.
- MSG is a single Outlook email. Outlook opens it; free viewers exist for other systems.
- PAGES, NUMBERS and KEY are Apple's office formats. iCloud's web apps open them, and they can export to Word, Excel and PowerPoint.
- DWG is an AutoCAD drawing. Autodesk's free DWG TrueView displays it.
- DOCM, XLSM and PPTM are Office files with macros, small programs inside the document.
Checking real files
Drop files on the check panel and the tool reads only the first four kilobytes of each, in your browser, without opening or running anything. It compares those bytes with around sixty signatures and tells you one of four things: the contents match the extension, they do not match, the file is plain text, or the format has no fixed signature.
Modern Office files, OpenDocument files, EPUB books, Android apps and Java archives are all ZIP packages inside. They share the ZIP signature, and the tool counts that as a match for any of those extensions.
Tricks attackers use
Disguised files rely on a handful of habits.
Hidden extensions. Windows hides known extensions by default, so invoice.pdf.exe appears as invoice.pdf with a PDF-like icon. Turn on file name extensions in File Explorer's View menu so you always see the real ending.
Double extensions. Even with extensions visible, a long name with .pdf.exe or .jpg.scr at the end is easy to misread. The tool flags any name where an executable extension follows a document extension.
Right-to-left characters. Unicode includes an invisible character that reverses the text after it. Placed cleverly, it makes a name ending in fdp.exe display as exe.pdf. The tool detects these characters and shows the real name.
Padding. Many spaces before the extension push the real ending out of view in narrow windows.
Harmless-looking formats. Shortcuts (.lnk), HTML attachments, registry files (.reg), scripts (.js, .vbs, .ps1) and screen savers (.scr) can all run commands or show fake login pages. Treat them as programs.
What a match does not mean
A file whose contents match its name is not automatically safe. A real PDF or Word document can still carry malicious content, and a real ZIP can contain anything. The check removes one layer of deception; it does not replace antivirus software or common sense. When an attachment is unexpected, confirm with the sender through another channel before opening it.
A quick routine for attachments
Look at the full name with extensions visible. Check what the extension is if you do not know it. If it is anything other than the type you expected, or it is a program, script, shortcut or HTML file, stop. For documents you do expect, a quick signature check and an up-to-date virus scanner cover most risks.



%20Without%20Uploading%20Anything&c=%230f766e&k=security)