File types / Documents
.doc file
Legacy Microsoft Office file
- Extensions
- .doc, .xls, .ppt
- MIME type
application/msword- Signature
D0 CF 11 E0 A1 B1 1A E1at byte offset 0- Safety
- Can run code
What is a .doc file?
DOC, XLS and PPT are the pre-2007 Microsoft Office formats. They use a binary container called OLE2 or Compound File Binary, identified by the 8-byte signature D0 CF 11 E0 A1 B1 1A E1.
The same container is used by other formats, including MSI installers and old Outlook .msg files, so the signature alone does not say which kind of file it is.
Used for: Older Word, Excel and PowerPoint documents.
How can I tell if a file is really a DOC?
Read its first bytes rather than trusting the name. A genuine DOC file has the signature D0 CF 11 E0 A1 B1 1A E1 at byte offset 0. The File Identity tool reads these bytes in your browser, so the file is never uploaded.
To compare the name against the content, use Validate Extension. To see the raw bytes, use Safe File Preview.
Is a .doc file safe to open?
Legacy Office files can carry macros and have a long history of exploits. Open ones from unknown sources with macros disabled, or avoid them.
Easy to confuse
DOC is not DOCX. The newer format is a ZIP; this one is not.