Download .DOCX Sample Files

Jump to:     File Information     Download     How to Open

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.

[13.2 KiB]
[37.2 KiB]

DOCX Sample File Details

SamplePagesWordsImagesFile size
Sample1.DOCX2667None13.2 KB
Sample2.DOCX3607137.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)

DOCX vs Other Document Formats

FormatTypeTypical use
DOCXZIP of XML filesMicrosoft Word since 2007
DOCBinaryWord 97 to 2003
ODTZIP of XML filesLibreOffice and OpenOffice
RTFText with formatting codesSimple formatted text across programs
PDFFixed layoutSharing and printing

Microsoft Word Document (.DOCX)

Developer:

Microsoft

Category:

Format:

Binary

MIME Type:

application/vnd.openxmlformats-officedocument.wordprocessingml.document

More Filetypes