Sample DOCX (Word) file — free download
Word-compatible documents: a real OOXML .docx, an OpenDocument .odt and an .rtf, plus a PowerPoint .pptx and a deliberately corrupt .docx missing its [Content_Types].xml part.
5 ready-made Word test files
| File | Size | What it catches | |
|---|---|---|---|
| document.rtf | 178 bytes | RTF is often accepted wherever DOC is, but it is plain text with control words, not a ZIP. Catches importers that route on the .rtf extension into a binary DOC parser. | download |
| corrupt-missing-content-types.docx | 577 bytes | Openers that assume any ZIP with a word/ folder is a valid document. A spec-compliant reader rejects this because the package has no content-type map. | download |
| document.odt | 814 bytes | ODF readers sniff the type from the first, uncompressed archive entry. Extractors or repackagers that re-compress or reorder entries break that - this file is the control for that behaviour. | download |
| document.docx | 1.1 KB | A minimal but valid DOCX built from source as a ZIP of XML parts. Opens in the corresponding application; use it to exercise upload, parsing and preview without shipping a real document. Also checks that your MIME sniffing recognises a .docx as a ZIP-based OOXML package rather than mislabelling it application/zip. | download |
| presentation.pptx | 3.7 KB | A minimal but valid PPTX built from source as a ZIP of XML parts. Opens in the corresponding application; use it to exercise upload, parsing and preview without shipping a real document. PPTX is the strictest of the three - it needs a slide master and layout - so it catches thumbnailers that assume every OOXML file is flat. | download |
Every file is generated from source — no third-party copyright — and each has its own page with a published SHA-256 you can verify after download.
Questions
Where can I download a sample Word document?
The DOCX below is a genuine OOXML document that opens in Word, LibreOffice and python-docx.
Where can I download a sample PPTX file?
The .pptx below is a real OOXML presentation with one slide, so it opens in PowerPoint, Keynote, Google Slides and python-pptx rather than only passing an extension check.
How do I test corrupt document handling?
The corrupt DOCX is missing [Content_Types].xml. It is still a valid ZIP, so signature checks pass while Word refuses to open it.