.DOC

DOC File

Microsoft Word 97-2003 Document
Ask a question
QUICK ANSWER

A DOC file is a Microsoft Word document saved in the old 1997-2003 binary format. You can open it for free with LibreOffice Writer, Google Docs, or Word for the web - no Microsoft Office purchase required. If you plan to keep editing it, saving it as DOCX is a good idea.

Developer: Microsoft Category: Text Files MIME: application/msword
OPENS ON Windows macOS Linux Android Web
Related: .ODT · .DOCX · .GDOC · .LST

On this page

19k+ extensions indexed
Last reviewed Jul 1, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the DOC file format?

Files with the .doc extension contain formatted text documents stored in a proprietary binary format of Microsoft Word. The format uses an OLE2 Compound File Binary container - the same structured storage shared by legacy Office files like .xls and .ppt - identified internally by a WordDocument stream. Its magic bytes (D0 CF 11 E0 A1 B1 1A E1) appear at the very start of the file, making .doc easy to tell apart from the newer .docx, which is a ZIP-based archive.

The format structure varied between Word versions; the modern OLE2-based layout dates from Word 97 (1997) and was the default through Word 2003. It has since been largely displaced by the XML-based .docx, designed to provide better portability. .doc files can still be created in Word and most word processors today.

.doc files may contain:

  • Text and its formatting (fonts, styles, page layout),
  • tables,
  • images and embedded objects,
  • macros (VBA scripts).

Microsoft published the specification of the .doc format only in 2008, to enable other programs to handle those files properly. Nonetheless, the format had already been reverse-engineered to obtain all its details. Before the proprietary Microsoft format appeared in 1983, the .doc extension was also used for plain text files and documents from the WordPerfect program. Template files that share the same binary structure use the .dot extension. The official MIME type is application/msword.

Security & safety

RISK: MEDIUM

The real risk in .doc files is VBA macros: the binary format is a classic carrier for macro malware ("Enable Content" phishing). Modern Office opens DOC files from email or the internet in Protected View with macros disabled - do not enable editing or macros on a document you didn't expect. Opening in LibreOffice or Google Docs is generally safer because their macro engines differ from Word's VBA. The document text itself is harmless; only embedded macros and linked objects pose a threat.

Format details

in a nutshell
FULL NAMEMicrosoft Word 97-2003 Document
DEVELOPERMicrosoftsince 1983 (Word 1.0); the modern OLE-based .doc layout dates from Word 97 (1997)
CATEGORYText Files
MIME TYPEapplication/msword
TYPEOLE2 Compound File Binary (binary)
MAGIC BYTES · FILE SIGNATURE
OFFSET
0001020304050607
HEX
D0CF11E0A1B11AE1
ASCII
········
The same Compound File Binary header is shared by legacy Office binaries (.doc, .xls, .ppt) and other OLE files. The application is identified by internal streams ("WordDocument" stream for .doc). This is NOT the same as .docx, which is a ZIP and starts with "PK".

Programs that open DOC files

Windows3 apps
Microsoft Word Paid Double-click the file; Word opens it in Compatibility Mode. Save As DOCX to upgrade it.
WordPad Built-in Opened simple DOC files on older Windows, but WordPad was removed in Windows 11 (2024) - use LibreOffice instead.
LibreOffice Writer Open-source Free, full-featured. Double-click to open; File > Save As to keep DOC or convert to DOCX/PDF.
macOS3 apps
Microsoft Word Paid Opens DOC in Compatibility Mode; Save As DOCX/PDF to convert.
Apple Pages Free Use File > Open to import the DOC; export back to Word format with File > Export To > Word.
LibreOffice Writer Open-source Free alternative; double-click to open and edit.
Linux1 app
LibreOffice Writer Open-source Pre-installed on most distros; double-click to open and edit DOC.
Android1 app
Microsoft Word (mobile) Freemium Install Word for Android; tap the file to view/edit (editing free on small-screen devices).
Web2 apps
Google Docs Free Upload to Google Drive, open with Google Docs; download as DOCX or PDF afterwards.
Word for the web Free Upload the DOC to OneDrive and open it in Word online (free Microsoft account).

Technical details

deep spec
Container formatOLE2 Compound File Binary (CFB structured storage)
Magic bytesD0 CF 11 E0 A1 B1 1A E1 - 8 bytes at file offset 0
MIME typeapplication/msword
Primary internal streamWordDocument stream holds the main document content and formatting
Supporting streams0Table or 1Table stream stores string pool, object references, and revision data
Character encodingUTF-16 LE (Word 97-2003); pre-97 versions used ANSI code pages
Macro languageVBA macros stored in an embedded OLE2 Macros storage within the file
CompressionNone - uncompressed binary; an equivalent .docx is typically 60-80% smaller
EncryptionRC4 with 40-bit key (Word 97-2003); insufficient by modern security standards
Revision trackingChange-tracking data encoded as binary revision marks in the WordDocument stream
Embedded objectsOLE2 embedding and linking for spreadsheets, charts, and other Office components
Template variant.dot files share the same binary format with an internal flag marking them as templates
Word version rangeWord 97 (1997) through Word 2003; still readable in current Word and LibreOffice
Cross-application supportLibreOffice Writer, Google Docs, and Apple Pages open .doc with minor rendering differences
Macro security riskVBA macros can execute arbitrary code; modern Word disables them by default via Trust Center
Released1983 (Word 1.0); the modern OLE-based .doc layout dates from Word 97 (1997)
Specificationlearn.microsoft.com

DOC conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with DOC files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about DOC files.

Frequently asked questions

How do I open a DOC file without Microsoft Office?
Use the free LibreOffice Writer (Windows/Mac/Linux), or upload it to Google Docs or Word for the web. All open DOC files at no cost.
What's the difference between DOC and DOCX?
DOC is the older Word 97-2003 binary format; DOCX (since Office 2007) is a ZIP+XML format that is smaller and more robust. Modern apps read both.
How do I convert DOC to PDF?
Open it in Word or LibreOffice Writer and choose Save As / Export to PDF. Google Docs can also download the file as PDF.
Should I convert my old DOC files to DOCX?
Yes, if you keep editing them - DOCX is the current standard, smaller, and better supported. Open the DOC and Save As DOCX.
Can Google Docs open a DOC file?
Yes. Upload the file to Google Drive and open it with Google Docs; you can edit it and download it back as DOCX or PDF.
Why does my DOC look different in LibreOffice than in Word?
The DOC binary format is Microsoft-proprietary, so complex layouts can shift slightly in other apps. For exact fidelity, use Microsoft Word or export to PDF.

References

1Microsoft - [MS-DOC] Word Binary File Format specificationlearn.microsoft.com
2Microsoft Support - Open a document in an earlier version of Wordsupport.microsoft.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.EXEWindows Executable (Portable Executable)
5.DATProgram Data File (generic)
6.BINCD/DVD Disc Image (BIN/CUE)
7.MDMarkdown Document
8.M4AMPEG-4 Audio File
9.TMPTemporary File
10.ODTOpenDocument Text

Related extensions

.ODTOpenDocument Text
.DOCXMicrosoft Word Open XML Document
.GDOCGoogle Docs Shortcut (Link to a Google Docs document)
.LSTList File (generic plain-text list / listing)
.VNTvNote (mobile phone text note / memo)
.TXTPlain Text File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z