2 MB DOCX sample file

A DOCX file of exactly 2,097,152 bytes. It is a valid Word document (Office Open XML) file, generated for this site and checked with an independent parser. Use it wherever you need a 2 MB sample, test or dummy DOCX file.

Download

sample-docx-2mb.docx

2 MB2,097,152 bytes

Download 2 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
a92fd0667217761c607ef4f80e8145bb2b0fd729b8aaef484a28f8c569eaa6c2
Delivery
Created in your browser. Files of 2 MB and more have no direct URL (why).

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 2,061,058 bytes. The image is stored uncompressed and sized so that the document is exactly 2,097,152 bytes.

ContentsHeadings, paragraphs, a bulleted list, a table and one image
Embedded imagePNG, 949 × 723 px
MacrosNone
Tracked changesNone
ContainerZIP (Office Open XML)

First bytes of the file

The first 64 bytes of sample-docx-2mb.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 2 MB matters

A 2,097,152-byte file: exactly the default upload limit of PHP, and twice the default of nginx and Spring Boot. These are the default limits a file of this size is useful for testing:

SystemLimitNote
PHP2 MB per uploaded file by default (upload_max_filesize)A file of exactly 2 MB is accepted; one byte more is refused.
nginx1 MB by default (client_max_body_size)Rejected with 413 Request Entity Too Large.
Spring Boot multipart1 MB per file by default (max-file-size)Rejected unless the property is raised.
Django2.5 MB in memory by default2 MB is held in memory; the 5 MB sample is streamed to a temporary file.
Vercel Functions4.5 MB request bodyAccepted, including as base64 at about 2.8 MB.

All 2 MB sample files

Use this file for

  • Finding out whether a 1 MB default has been raised
  • Checking document-to-PDF conversion
  • Verifying MIME detection of ZIP-based formats

Testing notes for DOCX

  • Content sniffers often report DOCX as application/zip. Correct detection has to look inside the package for [Content_Types].xml.
  • The long MIME type is frequently mistyped in allow-lists, which makes valid Word files fail validation.

DOCX format reference

Technical details

File namesample-docx-2mb.docx
FormatDOCX (Word document (Office Open XML))
Extension.docx
MIME typeapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
Size2,097,152 bytes (2 MB)
KindBinary
Signature50 4B 03 04
SHA-256a92fd0667217761c607ef4f80e8145bb2b0fd729b8aaef484a28f8c569eaa6c2
Created2026-10-14
ValidationExact size, signature bytes and structure checked when the generator was built; your copy is checked against the SHA-256 after it is created
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

Validated for expected format and integrity. 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 bytes are the same every time and in every browser, so after saving it you can compare its checksum with the SHA-256 value above.

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

On Windows, run Get-FileHash sample-docx-2mb.docx -Algorithm SHA256 in PowerShell. For scripts and pipelines, save the file once and keep your own copy, or use a 1 MB file, which has a direct URL.

Related files

Questions about this file

Is this file exactly 2 MB?
Yes. It is 2,097,152 bytes, which is 2 MB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
What is inside the 2 MB DOCX file?
A short Word document with headings, body text, a list and a table, plus one embedded test-card PNG of 2,061,058 bytes. The image is stored uncompressed and sized so that the document is exactly 2,097,152 bytes.
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.