Test files › Office documents › corrupt-missing-content-types.docx
Corrupt DOCX file (corrupt missing content types)
A DOCX-shaped ZIP that is missing its [Content_Types].xml part.
↓ Download corrupt-missing-content-types.docx| Filename | corrupt-missing-content-types.docx |
| Format | DOCX |
| Size | 577 bytes (577 bytes) |
| MIME type | application/vnd.openxmlformats-officedocument.wordprocessingml.document |
| SHA-256 | 6de45712c47ec56fa5f14b701827e2ee7a6adf7296ec3e8a5657af63babe5b2a |
What this file catchesOpeners 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.
Handle it in code
Each snippet below was run against this exact file with Python 3.14.4 and Node 24.15.0 when this page was built, and the output shown is what it printed.
Python
A DOCX that passes a ZIP check can still be unopenable. Check for the parts Word requires.
import zipfile
with zipfile.ZipFile("corrupt-missing-content-types.docx") as z:
names = set(z.namelist())
if "[Content_Types].xml" not in names:
print("rejected: a valid ZIP but not an Office file (no [Content_Types].xml)")
elif "word/document.xml" not in names:
print("rejected: no word/document.xml")
else:
print("has the parts a DOCX needs")Run against this file, it prints: rejected: a valid ZIP but not an Office file (no [Content_Types].xml)
Related guides and tools
Download & verify
curl -fsSL -o "corrupt-missing-content-types.docx" "https://files.hexaqa.com/office/corrupt-missing-content-types.docx"
curl -fsSL "https://files.hexaqa.com/office/corrupt-missing-content-types.docx" | sha256sum
# expect: 6de45712c47ec56fa5f14b701827e2ee7a6adf7296ec3e8a5657af63babe5b2a