What is a DOCX File?
A DOCX file is a Microsoft Word document in the Office Open XML format, the default since Word 2007. It is actually a ZIP archive of XML files holding the text, styles, images and settings, which makes DOCX smaller and more robust than the older binary .DOC format. DOCX is standardized as ECMA-376 and ISO/IEC 29500.
Besides Microsoft Word, DOCX files open in Google Docs, LibreOffice Writer, Apple Pages and WPS Office, and many programming libraries can create or read them.
Download DOCX Sample Files
Below are two Word documents: a text-only essay and an illustrated article. They are the original documents of our PDF samples, so you can test DOCX to PDF conversion.
DOCX Sample File Details
| Sample | Pages | Words | Images | File size |
|---|---|---|---|---|
| Sample1.DOCX | 2 | 667 | None | 13.2 KB |
| Sample2.DOCX | 3 | 607 | 1 | 37.2 KB |
Both documents were saved with Microsoft Word 2016. They use plain paragraphs without tables or headings and contain no macros. Page and word counts are the ones Word reports.
What You Can Test With These DOCX Files
- Previews and viewers: document previews in web apps, email and file managers.
- Text extraction: search indexing and content parsing.
- Conversion: DOCX to PDF, compared with our matching PDF samples.
- Uploads: forms that accept the DOCX MIME type,
application/vnd.openxmlformats-officedocument.wordprocessingml.document. - File-type detection: DOCX files start with the ZIP signature
PK.
How to Open or Convert a DOCX File
# List the XML parts inside a DOCX file
unzip -l sample.docx
# Convert to PDF with LibreOffice
libreoffice --headless --convert-to pdf sample.docx
# Read the paragraphs in Python (python-docx)
from docx import Document
for paragraph in Document("sample.docx").paragraphs:
print(paragraph.text)






