Microsoft Word

.doc · Documents

A .doc file is a Microsoft Word document in the binary format Word used as its default from Word 97 to Word 2003. Word 2007 switched to DOCX, but .doc files are still everywhere: old contracts and theses on network drives, forms downloaded from offices and schools, exports from accounting and HR systems that have not changed in twenty years. Every current word processor can still read them.

Origin and versions

The extension is older than the format. According to the Library of Congress, .doc has been used for four different Word formats. Word 6.0 (1993) introduced the container still used today, and Word 97 changed the internal structure to the version that then stayed the same through Word 2000, 2002 and 2003. That is why a file from Word 97 opens without trouble in Word 2003; the old belief that these versions were incompatible is wrong. Files from Word 6.0 and Word 95 are a separate format with the same extension.

For years the format was undocumented. Microsoft published the specification freely in 2008 under its Open Specification Promise; today it is maintained as [MS-DOC].

What is inside a .doc

A .doc is not a stream of text with formatting codes. It is an OLE Compound File, a small file system inside one file, recognisable by the bytes D0 CF 11 E0 at the start. Inside are separate streams: WordDocument with the text, a table stream with formatting and the piece table, optional streams for images and embedded objects, document properties (author, company, last saved by) and, if present, VBA macros.

  • Macros: any .doc may contain VBA, and the name does not tell you. This is why mail filters treat .doc attachments with suspicion. DOCX separates macro files into .docm.
  • Fast save: Word 97 to 2003 had an “Allow fast saves” option that appended changes to the end of the file. Text you had deleted could stay inside and be read with a hex editor. Saving the file again with fast save switched off, or converting it, removes these leftovers.
  • Passwords: the protection schemes of the format (XOR obfuscation and RC4) are weak by today’s standards. Do not rely on them for confidential files.

How to open a .doc file today

  • Windows and macOS: Microsoft Word opens it in Compatibility Mode. LibreOffice Writer is free and reads both Word 97–2003 and the older Word 6.0/95 files. On a Mac, Pages also imports .doc.
  • Linux: LibreOffice Writer.
  • Browser: Google Docs converts .doc on upload. Word for the web shows it but wants to convert it before editing.
  • Phone: the Word app on Android and iOS; for viewing, most mail apps show a preview.

Common problems

Word says the .doc file is blocked or opens it in Protected View

Files from the internet or e-mail open in Protected View; click Enable Editing once you trust the source. If Word refuses outright, an administrator or the File Block settings (File > Options > Trust Center > Trust Center Settings > File Block Settings) block older binary formats. LibreOffice opens these files regardless.

“Word found unreadable content” – the .doc is corrupted

Try File > Open, select the file, and choose Open and Repair from the arrow next to the Open button. If that fails, open it in LibreOffice, which often recovers the text of damaged files, and save it as DOCX.

The .doc is not really a .doc

Many web applications export “Word” files that are really HTML or RTF named .doc. Word opens them silently, other programs show tags or code. Open the file in a text editor: if it starts with <html or {\rtf, that is what it is. Our converter detects the real content and usually handles such files correctly.

Equations cannot be edited

Microsoft removed Equation Editor 3.0 from Office in January 2018 after malware exploited it. Its equations still display, but current Word cannot edit them; LibreOffice converts many into its own formulas.

Converting DOC files

For editing in current Word, convert DOC to DOCX. For sending, printing or archiving, DOC to PDF is the usual choice. Our converter runs on our own servers; it reads Word 97–2003 and Word 6.0/95 files and can also write DOC, which some older information systems still require. What does not carry over: VBA macros (DOCX and PDF cannot contain them) and documents encrypted with a password to open, which must have the password removed in Word first. Complex layouts with floating text boxes and old WordArt are worth checking after conversion. See also DOCX, RTF and ODT.

DOC in brief

DeveloperMicrosoft
Default in WordWord 97 (1997) to Word 2003
Specification[MS-DOC], published 2008 (Open Specification Promise)
Typebinary word-processing document, OLE Compound File container
Compressionnone (images are stored in their own format)
Macrosyes, VBA
SuccessorDOCX (Office Open XML), since Word 2007
Typical use todaylegacy documents, forms, exports from older systems

We can convert DOC into

Documents

PDF DOCX ODT TXT HTMLDOCMDOTDOTXFODTOTT RTFUOTPDF/AABWAWTFOZABW

Images

JPG PNGWEBP GIF TIFFHEICAVIFJXLPSDICOAAIAPNGARTAVS BMP CINCURDCXDDSDPXFF FITSFL32 HDRHRZJP2JBIGJNGJPCMNGMTVOTBPALMPAM PBMPCD PCXPFMPGMPGXPHMPICTPPMPSBPTIFQOIRASRGFSGISIXELSUN TGAVICARVIFFVIPS WBMPXBMXPMXWDDCM

Vector images

SVG EPSEMFFXGHPGLPOV PSSIFSVGZWMFXAML

eBooks

EPUB MOBI AZW3 FB2CBZHTMLZ LIT LRF OEB PDB TCRTXTZCB7CBTDJVU

Markup languages

MDTEXRSTADOCWIKIORGDOCBOOKCONTEXTDOKUWIKIHADDOCKICMLIPYNBJATSJIRAMANMSMUSEOPMLTEITEXITEXTILETYPXWIKIZIM