DOC

What is a DOC file?

The old binary Word format. Still turns up in archives and government downloads.

What DOC is

DOC is a binary format, meaningful only to a program that knows it. It is used for editing.

The extension is .doc, and the full name is Word 97-2003 Document. Both matter less than what the file can hold, which is what the rest of this page is about.

Where DOC came from

Microsoft published it in 1997.

A format that has been readable for that long is a format worth trusting with something you want back in ten years.

The specification is published, but by its owner

It is written down and implementable, though the vendor decides what the next version looks like. In practice that is enough for the file to keep opening; it is not enough to be sure of it.

It is a legacy format

It still opens everywhere and is still written by older tools, but nothing new is being built around it. Convert what you mean to keep, and do not choose it for something starting today.

It can hold several pages in one file

DOC is not limited to one page, which matters when converting to something that is: one conversion produces one file holding a single page — the first one, unless the page is something the converter lets you pick.

What kind of document it is

DOC holds a text document: paragraphs that reflow to fit whatever page they land on.

That is what decides how it converts: the text reflows, so page numbers are a property of the output rather than of the file.

What opens DOC

Microsoft Word and LibreOffice Writer read it, and so do most programs of the same kind.

If a file will not open, the format is rarely the problem — it is more often that the program predates it. Converting to something older is the reliable way past that, and it is what the rest of this site is for.

Opening it in a browser

No browser reads it.

That is the single most common reason to convert it: not that the format is bad, but that the place you want to show the file cannot read it.

It is a working format

DOC is meant to be opened and changed. Keep the file in this format for as long as the work is going on, and export from it whenever a finished copy is needed.

What goes wrong with it

The recurring complaints: the layout is reconstructed rather than reproduced exactly.

None of these is a reason to avoid the format. They are the things worth knowing before you are surprised by one, which is a different claim and a more useful one.

Nobody makes these any more, which is the whole context

DOC was Word’s format from 1983 until Office 2007 replaced it with DOCX. It has been superseded for nearly two decades, so a DOC arriving today has a history: it came out of an archive, a template folder nobody has revisited, a scanned records system, a law firm, or a backup of a computer that no longer exists.

That shapes what is worth knowing about it. The interesting questions are how to open one, what will be lost when it is converted, and what it might be carrying — not whether to use it, because that decision was made for you a long time ago.

A binary document, not text with markup

Where DOCX is a ZIP archive of readable XML, DOC is a compound binary file — effectively a small filesystem inside one file, holding streams of structured records. Opening it in a text editor shows fragments of your words scattered through binary noise.

The specification was published eventually, and it is enormous, because the format grew by accumulation over twenty years rather than being designed. That is the honest reason DOC support outside Microsoft Word has always been approximate: not unwillingness, but a moving target with decades of undocumented behaviour behind it.

The deleted text that is still in the file

Old versions of Word used a technique called fast save, which appended changes to the end of the file rather than rewriting it. It made saving quick on the hardware of the time and it meant that text you had deleted often remained in the file, invisible in Word and perfectly readable to anything that looked at the bytes.

This produced a series of well-documented embarrassments involving documents whose earlier drafts were recovered by recipients. If a DOC in your possession has a history worth caring about, treat it as containing more than it displays — and note that converting it to PDF or DOCX through a modern tool is one of the reliable ways to leave the residue behind.

What conversion to DOCX keeps and what it does not

Text, headings, lists, tables, footnotes and images come across dependably. Track changes and comments usually survive. For the overwhelming majority of documents — letters, reports, contracts, manuscripts — the converted file is the same document.

What drifts is precise layout. Word’s line-breaking and font handling changed between the eras, so a page that ended exactly at a certain word may end one line earlier or later, and a table sized to fit may reflow. In a fifty-page document that can move a page break. If the pagination itself matters — a legal filing, a typeset manuscript — convert to PDF, where the layout is fixed rather than recalculated.

The fonts are the usual reason it looks wrong

A DOC references fonts by name and does not usually embed them. A document written in 2004 on a Windows machine may call for fonts that shipped with that decade’s Office and exist nowhere now, so the reader substitutes something with different letter widths.

The result is a document that is entirely correct and looks subtly off: line breaks in new places, a heading wrapping onto two lines, a table column suddenly too narrow. Nothing has been lost. If the appearance has to be exact, the only reliable answer is a PDF made from a machine that has the fonts.

DOC can run code, and DOCX cannot

A DOC file can contain macros. This is the single most important practical difference from DOCX, which cannot — a macro-bearing modern document must be saved as DOCM and announces itself in the extension.

Macro-enabled Word documents were the delivery mechanism for a long generation of malware, which is why modern Word opens files from the internet in a restricted view and refuses to run anything until told twice. An unexpected DOC attachment deserves the suspicion the software already shows it, and converting it rather than opening it in Word is a reasonable way to read the contents without running anything.

What still produces DOC today

Mostly institutions with long memories. Court and government filing systems that specified a format in 2003 and never revisited it. Corporate template folders where a form has been copied forward for twenty years. Older records and document management systems that export what they stored. Occasionally software that writes DOC because a library it depends on only ever supported that.

There is also a quieter case: files that are not DOC at all. Some tools write RTF or even HTML and name the result .doc because Word opens it anyway. If a converter rejects a file that Word accepts, this is worth checking before assuming damage.

When it will not open at all

The first thing to rule out is the file not being a DOC. Older Works documents, WordPerfect files and RTF renamed to .doc all show up, and each needs a different reader. The first few bytes tell you: a genuine DOC begins with a compound-file signature, and RTF begins with the literal characters that spell out its name.

Genuine damage is harder and usually partial, because the format stores text in streams that can survive the loss of the structure around them. Word’s own recover-text option pulls the words out and abandons the formatting, which for a document whose value is its content is generally the right trade.

The facts, in one place

Identifiers and provenance for the DOC format.
Extension.doc
Media typeapplication/msword
Published byMicrosoft
First published1997