Microsoft Word DOC MIME Type
application/msword means, how legacy Word documents are structured, which programs open them, and how Poly handles .doc files. MIME type details for application/msword
In active use| MIME type | application/msword |
|---|---|
| Extensions | .doc.dot |
| First standardized | 1993 |
| Created by | Microsoft; MIME registration by Paul Lindner |
| Browser support | No native browser preview |
| Example applications | Microsoft Word, LibreOffice Writer, Word for the web |
| Poly support | Yes. Poly recognizes application/msword and .doc files, then converts supported documents to PDF for processing. It does not infer .dot templates, and encrypted or damaged files may fail conversion. |
| Indexed by Poly | Yes. After successful PDF conversion, Poly indexes extracted text, OCR fallback text, and page-level visual embeddings. Processing is limited to 1 GiB and 1,024 pages. |
| Preview in Poly | Yes. .doc files open in Poly's online Office viewer. The preview requires a connection and sends a temporary file URL to Microsoft's viewing service. |
| Poly agent | Yes. After successful conversion, the Poly agent reads the saved PDF representation page by page, including extracted text and rendered page images. |
What does application/msword mean?
application/msword is the registered media type for binary Microsoft Word documents. It is most closely associated with .doc files. Word 97 through Word 2003 used the documented Word Binary File Format as their default document format, and current Word releases can still open and save it for compatibility.12
The type is older and broader than that one format generation. Its July 1993 IANA registration named Word 4 and 5 for Macintosh, Word for Windows 2.0, and the then-forthcoming Word 6 format. It even defined an optional version parameter, although that parameter is rarely seen now.1
That history means a .doc suffix does not identify one byte-level format by itself. Very old Word files and Word 97-2003 files can share the extension while using different internal structures. Modern format identification should inspect both the file and its context instead of trusting the suffix alone.3
The .dot extension identifies a legacy Word template. Microsoft and LibreOffice both associate Word 97-2003 templates with the same binary Word family, and LibreOffice maps .dot to application/msword.24
Why is 1993 listed as the registration date?
Paul Lindner submitted the application/msword registration on July 22, 1993, with Microsoft listed as the company contact.1 Word documents existed before then, but 1993 is when this MIME label entered the registry.
The binary format continued to evolve. Word 6.0, released in 1993, moved Word documents into Microsoft's OLE Compound File Binary container. Word 97 changed the detailed document structures inside that container. The current Microsoft [MS-DOC] specification describes the Word 97-2003 generation used by Word 97, Word 2000, Word 2002, and Word 2003.35
DOC remained available after Word 2007, but DOCX became the default. Microsoft describes the Word binary format as superseded by ECMA-376, the Office Open XML standard behind modern Word documents.67
How can you identify a DOC file?
Most Word 97-2003 DOC files begin with this eight-byte Compound File Binary signature:
D0 CF 11 E0 A1 B1 1A E1
That signature is useful but not unique to Word. Older Excel files, PowerPoint files, MSI installers, and other OLE compound documents can begin with exactly the same bytes. A Word 97-2003 file also contains a WordDocument stream, a 0Table or 1Table stream, and a File Information Block that ties the document's text and objects together.38
For that reason, this page does not present the CFB header as a definitive magic number for application/msword. A reliable detector checks the compound-file directory and Word-specific records. A .doc filename plus the shared CFB signature is only a strong hint.
Older Word files complicate detection further because not every document covered by the historical MIME registration uses the Word 97 compound structure. If a trusted word processor opens an old .doc but a modern format-identification tool does not recognize it as [MS-DOC], the file may belong to an earlier Word generation rather than being corrupt.
How do you open an application/msword file?
General-purpose browsers do not natively render DOC files. Use an office application or an online document service:
- Microsoft Word supports Word 97-2003
.docdocuments and.dottemplates.2 - LibreOffice Writer has import and export filters for several Word binary generations, including Word 97-2003 documents and templates.4
- Word for the web can display
.docand.dotfiles. To edit one in the browser, it saves a new DOCX or DOTX copy and cannot save back to the old binary format.9
Support in Poly
Poly recognizes the exact application/msword identifier and infers it from a .doc filename. It categorizes the file as a document, converts it to PDF, and sends the converted pages through the same processing path as a PDF.
After conversion, Poly:
- Generates a thumbnail set from the first rendered page.
- Records the page count and stores a PDF representation.
- Extracts page text, with OCR fallback where needed.
- Creates page-level visual embeddings for similarity search.
- Lets the agent read the converted document as page text and rendered page images.
Document processing has two code-enforced limits: the source must be no larger than 1 GiB, and page rendering, OCR, and page-level embeddings cover at most 1,024 pages. Password-protected, malformed, or unsupported legacy documents can fail conversion. When conversion fails, Poly cannot produce the page-aware index or agent-readable representation described above.
The in-app preview follows a different path. Poly opens Word documents in Microsoft's hosted Office viewer using a temporary URL, so the preview requires an internet connection. It is not an offline rendering of Poly's converted PDF.
Poly does not currently infer .dot as application/msword from the filename. A correctly labeled application/msword template can enter the document path, but a filename-only .dot upload does not receive the same specific type mapping.
Should you convert DOC to DOCX or PDF?
Choose the destination based on whether the result needs to remain editable:
| Destination | Best for | Main tradeoff |
|---|---|---|
| DOCX | Continued editing and modern Word workflows | Old macros, fields, embedded objects, or layout may need review |
| Sharing a fixed visual result | Editing and document structure are reduced | |
| ODT | Editing in an open document workflow | Word-specific features may not translate exactly |
| Plain text | Recovering readable words | Formatting, images, annotations, and layout are discarded |
LibreOffice can convert a document without opening its graphical interface:
soffice --headless --convert-to pdf --outdir converted input.doc
Microsoft recommends saving a DOC document as DOCX, or as DOCM when macros must be retained. It also recommends keeping a backup and checking the result for content or layout changes.10
Renaming report.doc to report.docx does not perform a conversion. A converter must parse the binary records and write a new package.
Security and privacy considerations
Legacy Word documents can carry VBA macros, embedded OLE objects, external links, and encrypted content. Microsoft warns that active content can contain viruses or other hazards and advises against enabling it unless you understand and trust it.11 Opening an unexpected attachment in Protected View or an isolated, maintained environment is safer than enabling content immediately.
The original 1993 MIME registration said that no security considerations were known.1 That historical statement does not reflect what is now understood about complex Office documents. Treat application/msword as active-capable input, not as harmless text.
DOC files may also preserve properties such as author, title, company, comments, creation times, and custom metadata. Tracked changes, comments, hidden text, and embedded objects can reveal material that is not obvious in the final page view.3 Inspect both document properties and revision content before publishing a sensitive file.
Conversion is not sanitization. A PDF copy may be more convenient to review and share, but keep the source quarantined if its origin is uncertain, and do not assume a successful preview proves that the original document is safe.
DOC compared with DOCX
| Property | DOC | DOCX |
|---|---|---|
| Common extension | .doc | .docx |
| Media type | application/msword | application/vnd.openxmlformats-officedocument.wordprocessingml.document |
| Main structure | Binary records, commonly inside OLE/CFB | ZIP package containing XML and related parts |
| Default Word era | Word 97 through Word 2003 | Word 2007 onward |
| Macro convention | A DOC can contain macros without changing its extension | Macro-enabled documents normally use .docm |
| Web editing | Usually converted to DOCX first | Supported directly by Word for the web |
DOCX is usually the better editable interchange format for a new document. Keep DOC when a legacy workflow requires it or when preserving an original file is important. Keep a PDF alongside either format when a stable review copy matters.
Footnotes
- Internet Assigned Numbers Authority.
application/mswordMedia Type Registration. The registration is dated July 22, 1993 and documents the optional version parameter and early Word formats. ↩ ↩2 ↩3 ↩4 - Microsoft. File Format Reference for Word, Excel, and PowerPoint. Microsoft lists
.docas the Word 97-2003 binary document format and.dotas its template format. ↩ ↩2 ↩3 - Library of Congress. Microsoft Office Word 97-2003 Binary File Format. The format description covers DOC history, identification, internal streams, metadata, interoperability, and security concerns. ↩ ↩2 ↩3 ↩4
- The Document Foundation. File Conversion Filter Names. LibreOffice documents Word binary import and export filters, their extensions, media type, and command-line conversion syntax. ↩ ↩2
- Microsoft. MS-DOC: Word (.doc) Binary File Format. The specification covers the format used by Word 97 through Word 2003. ↩
- Microsoft. Relationship to Protocols and Other Structures. Microsoft identifies DOC as an OLE compound file and says ECMA-376 supersedes it. ↩
- Ecma International. ECMA-376: Office Open XML File Formats. The standard defines Office Open XML document representation and packaging. ↩
- Microsoft. Compound File Header. The CFB specification defines the shared eight-byte header signature. ↩
- Microsoft. Differences Between Using a Document in the Browser and in Word. Microsoft documents viewing legacy Word files in Word for the web and converting them for browser editing. ↩
- Microsoft Support. Saving DOC to DOCX or DOCM. The guidance describes converting legacy documents, retaining macros in DOCM, backing up originals, and checking conversion results. ↩
- Microsoft Support. Protect Yourself From Macro Viruses. Microsoft explains the risks of active content and recommends enabling it only when trusted. ↩