Sample DOCX File With Embedded Images
Download Sample File
Free test file, safe content, instant download.
62e5c1ae49539cf065978b1f...Most sample DOCX files contain text only — which is useless the moment you need to test image extraction, thumbnail generation, media migration, or doc-to-PDF conversion with figures. This fixture is a valid Office Open XML document with two real PNG images embedded under word/media/ (a 300x200 gradient and a 200x200 diagonal-stripe pattern), referenced through proper relationship IDs.
Because the images use different dimensions and aspect ratios, the file exercises layout logic too: extraction tools should find exactly two media parts, conversion tools should render both figures at their declared sizes, and thumbnailers should produce previews containing both.
The text body includes a heading, descriptive paragraphs, and image captions — enough structure to verify reading order and paragraph-anchoring of drawings in your parser.
File Information
- Format
- DOCX (ZIP + OOXML)
- Embedded images
- 2 PNGs — 300x200 gradient, 200x200 stripes
- Media path
- word/media/gradient.png, word/media/stripes.png
- Text
- Heading + paragraphs with image captions
- Opens in
- Word, LibreOffice, Google Docs, python-docx
How to Use This DOCX (with images) Test File
- 1Download sample-images.docx.
- 2List the media: unzip -l sample-images.docx (look under word/media/).
- 3Extract images: unzip sample-images.docx "word/media/*" -d out/.
- 4Parse text + images together with python-docx or mammoth.js.
Frequently Asked Questions
- How do I extract images from a DOCX file?
- A DOCX is a ZIP package — images live under word/media/. Any unzip tool extracts them: unzip sample-images.docx "word/media/*" -d out/. Programmatically, python-docx exposes them via document.inline_shapes, and mammoth.js converts the whole document (images included) to HTML.
- Why test with a DOCX that contains images?
- Text-only fixtures hide the failure modes that matter in production: media relationship resolution, image extraction counts, layout with figures, and PDF conversion rendering. This file has exactly two images with known dimensions, so assertions are deterministic.
- What are the image dimensions in this file?
- Image 1 is a 300 x 200 pixel gradient PNG displayed at 4.5 x 3 inches; image 2 is a 200 x 200 pixel diagonal-stripe PNG displayed at 2 x 2 inches. Both are genuine PNGs (not placeholder bytes).
- Does this file open in Microsoft Word and Google Docs?
- Yes — it is standard OOXML with correct content types and relationships, the same structure Word itself saves. It also parses cleanly with python-docx, docx4j, and Apache POI.
Related Sample Files
Need a different size or format?
Use our free Generator to create custom test files in any format and size — right in your browser, no upload needed.
Try Our Generator