.docx

DOCX test files

Real Word documents, written as Office Open XML: pick the pages, paper size, language and the features your parser or converter has to handle.

Or start from a preset

What is a DOCX file?

Short answer

A DOCX file is a Word document in the Office Open XML format: a ZIP package of XML parts. word/document.xml holds the text, styles.xml the styles, and relationship files link images, comments, headers and footers.

Converters often handle the body text and miss the rest: comments, tracked insertions and deletions, numbering definitions, right-to-left paragraphs, or page fields in the footer. Switch them on one at a time to find what breaks.

Anatomy of a DOCX file

  • [Content_Types].xmlThe MIME type of every part
  • _rels/.relsPoints at the main document and properties
  • word/document.xmlParagraphs, runs, tables and drawings
  • word/styles.xmlNormal, headings, list and table styles
  • word/numbering.xmlBullet and numbered list definitions
  • word/media/Images, linked through relationships

What you can generate

  • Headings (Heading 1 and 2), bullets and numbered lists
  • Tables with a header row
  • PNG images in the text
  • Hyperlinks, comments and tracked changes
  • Header and footer with PAGE and NUMPAGES fields
  • A4, US Letter or A5 pages
  • English, Swedish, German, Japanese or Arabic (right to left)

How to make one

  1. Open the DOCX generator, or start from a preset above.
  2. Set the size and switch on the edge cases you need; the preview and size estimate follow every change.
  3. Generate, then download. The file is made in your browser, and the same preset and seed always give you the same file.

Questions

It is written to the ECMA-376 schema order Word expects, with every referenced style and relationship present. The tests check the package structure, well-formed XML and read the text, lists, tables and images back with an independent DOCX reader.

Each page ends with a page break and holds content sized to fit one page with the default fonts, so the count should match what you chose. A renderer with other fonts can push content onto an extra page.

Yes. Switch on Tracked changes for an insertion and a deletion by "webdave QA" on each page.

Related formats