20 MB DOCX sample

A DOCX file of exactly 20,971,520 bytes. It is a valid Word document (Office Open XML) file, generated by this site. Compare its checksum and test it with the parser used by your application. Use it wherever you need a 20 MB sample, test or dummy DOCX file.

Download

sample-docx-20mb.docx

20 MB20,971,520 bytes

Download 20 MB DOCX

Created in your browser in a few seconds, then checked against the SHA-256 checksum. No sign-up.

Type
application/vnd.openxmlformats-officedocument.wordprocessingml.document
SHA-256
b2b51fa7d699ff55184ee56659e9779621b032d8e9077d30b883e22c60a70915
Delivery
Created in your browser from static generator assets (how it works).

What is in this file

A short Word document with headings, body text, a list and a table, plus one embedded test-card PNG of 20,935,426 bytes, stored uncompressed and sized so that the document is exactly 20,971,520 bytes. Padding of 11,495,442 bytes in a private ancillary PNG chunk ("spAd", skipped by decoders) inside the image makes up the rest.

ContentsHeadings, paragraphs, a bulleted list, a table and one image
Embedded imagePNG, 2,048 × 1,536 px
MacrosNone
Tracked changesNone
ContainerZIP (Office Open XML)

First bytes of the file

The first 64 bytes of sample-docx-20mb.docx as a hex dump: offset, bytes, then the same bytes as text. The DOCX signature is 50 4B 03 04.

00000000  50 4b 03 04 14 00 00 00  08 00 00 00 21 5c fc a7 |PK..........!\..|
00000010  ae d0 9d 01 00 00 fc 06  00 00 13 00 00 00 5b 43 |..............[C|
00000020  6f 6e 74 65 6e 74 5f 54  79 70 65 73 5d 2e 78 6d |ontent_Types].xm|
00000030  6c b5 95 b1 6e db 30 10  86 f7 3e 85 a0 45 43 20 |l...n.0...>..EC |

Preview

DOCX files cannot be shown in a browser. Download the file and open it in an application that reads DOCX, such as Microsoft Word.

Where 20 MB matters

A 20,971,520-byte file: right at the default attachment limit of Outlook, and just under the 25 MB ceilings of Gmail and GitHub web uploads. These are the default limits a file of this size is useful for testing:

SystemLimitNote
Microsoft Outlook20 MB of attachments by default for internet mail accountsThis file is right at the limit; add a second attachment and it is exceeded.
Gmail25 MB per messageUnder the limit, although email encoding adds about a third in transit.
GitHub web uploads25 MiB per file added through the browserAccepted. Pushing with Git allows larger files.
Cloudflare Pages assets25 MiB per fileThe largest round size that can be served as a static asset.
Amazon API Gateway10 MB payloadRejected; the upload has to go directly to object storage.
ASP.NET Core (Kestrel)About 28.6 MB request body by defaultAccepted with room for the multipart overhead.

All 20 MB sample files

Use this file for

  • Measuring download speed from your own server or CDN
  • Testing text indexing and search
  • Testing document uploads in HR, legal and education software

Testing notes for DOCX

  • Some gateways re-compress or strip ZIP files in transit, which corrupts the document.
  • Content sniffers often report DOCX as application/zip. Correct detection has to look inside the package for [Content_Types].xml.

DOCX format reference

Technical details

File namesample-docx-20mb.docx
FormatDOCX (Word document (Office Open XML))
Extension.docx
MIME typeapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
Size20,971,520 bytes (20 MB)
KindBinary
Signature50 4B 03 04
SHA-256b2b51fa7d699ff55184ee56659e9779621b032d8e9077d30b883e22c60a70915
Created2026-10-23
ValidationSee the listed size and SHA-256. Small downloads are checked in the browser; verify streamed downloads manually. A hash match does not prove parser compatibility.
PreviewNot available for this file; details only
SourceGenerated in your browser by this site's generator; not copied from elsewhere
LicenceFree to use, modify and redistribute (terms)
CategoryDocuments

Check the stated structure and checksum against your application requirements. As with any download, scan the file with your own security tools before opening it. How files are made and checked

Verify your copy

This file is created in your browser, so it has no direct URL for curl or wget. The generator is designed to produce reproducible bytes. After saving, compare the checksum with the SHA-256 value above.

sha256sum sample-docx-20mb.docx     # Linux
shasum -a 256 sample-docx-20mb.docx # macOS

On Windows, run Get-FileHash sample-docx-20mb.docx -Algorithm SHA256 in PowerShell. For scripts and pipelines, save the file once and keep your own copy.

Related files

Questions about this file

Is this file exactly 20 MB?
Yes. It is 20,971,520 bytes, which is 20 MB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
What is inside the 20 MB DOCX file?
A short Word document with headings, body text, a list and a table, plus one embedded test-card PNG of 20,935,426 bytes, stored uncompressed and sized so that the document is exactly 20,971,520 bytes. Padding of 11,495,442 bytes in a private ancillary PNG chunk ("spAd", skipped by decoders) inside the image makes up the rest.
Why does my server say the file is a ZIP archive?
Because it is one. Tools that only read the first bytes cannot tell DOCX from ZIP; they must check the package contents or fall back to the file extension.