Sample DOCX files
Word documents in the .docx format (Office Open XML), made with python-docx: a short text file, a report with headings, lists and a 10-row table, and a file with an embedded image. Free, no sign-up. Updated 19 November 2026.
What these files are
Word documents in the .docx format (Office Open XML), made with python-docx: a short text file, a report with headings, lists and a 10-row table, and a file with an embedded image. They open in Word, LibreOffice, Google Docs and Pages.
Every file was generated by our own code, so nothing in them is copied from anyone, and we release them under CC0: use them for anything. The facts in the table were read back from each file after it was written, not typed in by hand.
About the format
A .docx file is a ZIP archive of XML parts defined by the Office Open XML standard (ECMA-376, ISO/IEC 29500). The text lives in word/document.xml, styles in word/styles.xml and images in word/media/. Because it is a ZIP, a .docx starts with the bytes PK, which is also why some upload filters mistake it for an archive.
These files open in Microsoft Word, LibreOffice Writer, Google Docs and Apple Pages. A web server should send them with the header Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document.
3 files to download
| File | Size | What it is |
|---|---|---|
| sample-simple.docx | 36 KB | title and 3 paragraphs paragraphs: 4; tables: 0; images: 0; words: 115 |
| sample-headings-table.docx | 37 KB | title, 5 headings, lists and a 10-row table paragraphs: 14; tables: 1; images: 0; words: 212 |
| sample-with-image.docx | 39 KB | title, 2 paragraphs and one embedded PNG image paragraphs: 4; tables: 0; images: 1; words: 87 |
MIME type: application/vnd.openxmlformats-officedocument.wordprocessingml.document. Total 112 KB.
Good for testing
- Document upload and preview
- Converting DOCX to PDF or HTML
- Extracting text and tables
- Checking that images inside a document survive a conversion
Check a file
unzip -l sample-headings-table.docx # a .docx is a zip of XML files
python -c "import docx; print(len(docx.Document('sample-headings-table.docx').tables))"Compare the SHA-256 checksum to make sure the download is complete and unchanged (sha256sum file on Linux, shasum -a 256 file on macOS, certutil -hashfile file SHA256 on Windows):
| File | SHA-256 |
|---|---|
| sample-simple.docx | 6ff6e5d5d9bec43621eace99840dca8548b61ffec29ba380a27bffb8791a9258 |
| sample-headings-table.docx | 5fcff0907bd2ce52149aac5bac3d03835a761097d13d47dfbc71a547b005131e |
| sample-with-image.docx | 51fab9ff16600cda21ed84d978271036bb203e1f0aab4a9b319d45feb5905599 |