.doc (an abbreviation of "document") is a filename extension used for word processing documents stored on Microsoft's proprietary Microsoft Word Binary File Format; it was the primary format for Microsoft Word until the 2007 version replaced it with Office Open XML .docx
files.[4] Microsoft has used the extension since 1983.
Filename extension |
doc |
---|---|
Internet media type |
application/msword[1] |
Uniform Type Identifier (UTI) | com.microsoft.word.doc[2][3] |
Developed by | Microsoft |
Latest release | 12.0 20 August 2024[4] |
Type of format | document file format |
Container for | Text, Image,Table |
Extended from | Compound File Binary Format (since 97) |
Extended to | Microsoft Office XML formats, Office Open XML |
Open format? | Yes |
Binary DOC files often contain more text formatting information (as well as scripts and undo information) than some other document file formats like Rich Text Format and Hypertext Markup Language, but are usually less widely compatible.
The DOC files created with Microsoft Word versions differ. Microsoft Word versions before Word 97 ("8.0") used a different format from the OLE and CFBF-based Microsoft Word 97 – 2003.
In Microsoft Word 2007 and later, the binary file format was replaced as the default format by the Office Open XML format, though Microsoft Word can still produce DOC files.
The DOC format is native to Microsoft Word. Other word processors, such as OpenOffice.org Writer, IBM Lotus Symphony, Apple Pages and AbiWord, can also create and read DOC files, although with some limitations. Command line programs for Unix-like operating systems that can convert files from the DOC format to plain text or other standard formats include the wv library, which itself is used directly by AbiWord.
Because the DOC file format was a closed specification for many years, inconsistent handling of the format persists and may cause some loss of formatting information when handling the same file with multiple word processing programs. Some specifications for Microsoft Office 97 binary file formats were published in 1997 under a restrictive license, but these specifications were removed from online download in 1999.[5][6][7][8] Specifications of later versions of Microsoft Office binary file formats were not publicly available. The DOC format specification was available from Microsoft on request[9] since 2006[10] under restrictive RAND-Z terms until February 2008. Sun Microsystems and OpenOffice.org reverse engineered the file format.[11] On February 15, 2008, Microsoft released a .DOC format specification[4][12][13] under the Microsoft Open Specification Promise.[14][15] However, this specification does not describe all of the features used by DOC format and reverse engineered work remains necessary.[16] Since 2008 the specification has been updated several times; the latest change was made in May 2022.
The format used in earlier, pre-97 ("1.0" 1989 through "7.0" 1995) versions of Word are less known, but both OpenOffice and LibreOffice contain open-source code for reading these formats. The format is probably related to the "Stream" format found in similar Excel versions.[17] Word 95 also seems to have an OLE-wrapped form.
Some historical documentations may use the DOC filename extension for plain-text files, indicating documentation for software or hardware. The DOC filename extension was also used during the 1980s by WordPerfect for its proprietary format.
DOC is sometimes used by users of Palm OS as shorthand for PalmDoc, an unrelated format (commonly using PDB filename extension) used to encode text files such as ebooks.