1 MB DOCX sample file
A DOCX file of exactly 1,048,576 bytes. It is a valid Word document (Office Open XML) file, generated for this site and checked with an independent parser.
Download
sample-docx-1mb.docx
1 MB1,048,576 bytes
Download 1 MB DOCXDirect download. No sign-up and no waiting.
- Type
- application/vnd.openxmlformats-officedocument.wordprocessingml.document
- SHA-256
115a9baf45190df73d8714ff7f9388d4774fe568bfcddfa92853521cebb629ba- Direct URL
https://sampletestfiles.com/downloads/docx/sample-docx-1mb.docx
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 1,012,482 bytes. The image is stored uncompressed and sized so that the document is exactly 1,048,576 bytes.
| Contents | Headings, paragraphs, a bulleted list, a table and one image |
|---|---|
| Embedded image | PNG, 665 × 507 px |
| Macros | None |
| Tracked changes | None |
| Container | ZIP (Office Open XML) |
First bytes of the file
The first 64 bytes of sample-docx-1mb.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 with Microsoft Word.
Where 1 MB matters
A 1,048,576-byte file: exactly the default upload limit of nginx, Spring Boot and Next.js. These are the default limits a file of this size is useful for testing:
| System | Limit | Note |
|---|---|---|
| nginx | 1 MB by default (client_max_body_size) | A multipart upload of this file exceeds the limit by the size of the form boundaries. |
| Spring Boot multipart | 1 MB per file by default (max-file-size) | A file of exactly 1 MB is at the limit. |
| Next.js API routes and Server Actions | 1 MB by default | Larger bodies need the size limit raised in configuration. |
| Cloud Firestore documents | 1 MiB (1,048,576 bytes) | The same number of bytes as this file. |
| Apache Kafka messages | About 1 MB by default | Brokers reject larger records unless message.max.bytes is raised. |
Use this file for
- Download tests on mobile connections
- Testing text indexing and search
- Testing document uploads in HR, legal and education software
Testing notes for DOCX
- The long MIME type is frequently mistyped in allow-lists, which makes valid Word files fail validation.
- Some gateways re-compress or strip ZIP files in transit, which corrupts the document.
Technical details
| File name | sample-docx-1mb.docx |
|---|---|
| Format | DOCX (Word document (Office Open XML)) |
| Extension | .docx |
| MIME type | application/vnd.openxmlformats-officedocument.wordprocessingml.document |
| Size | 1,048,576 bytes (1 MB) |
| Kind | Binary |
| Signature | 50 4B 03 04 |
| SHA-256 | 115a9baf45190df73d8714ff7f9388d4774fe568bfcddfa92853521cebb629ba |
| Created | 2026-10-10 |
| Validation | Exact size, signature bytes and structure checked when the file was generated |
| Preview | Not available for this format; details only |
| Source | Generated for this site; not copied from elsewhere |
| Licence | Free to use, modify and redistribute (terms) |
| Category | Documents |
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
Download from the command line and verify
Fetch the file with curl, then compare its checksum with the SHA-256 value above.
curl -o sample-docx-1mb.docx 'https://sampletestfiles.com/downloads/docx/sample-docx-1mb.docx'
sha256sum sample-docx-1mb.docx # Linux
shasum -a 256 sample-docx-1mb.docx # macOSOn Windows, run Get-FileHash sample-docx-1mb.docx -Algorithm SHA256 in PowerShell. A matching value proves that the download is complete and unaltered.
Related files
Questions about this file
- Is this file exactly 1 MB?
- Yes. It is 1,048,576 bytes, which is 1 MB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
- What is inside the 1 MB DOCX file?
- A short Word document with headings, body text, a list and a table, plus one embedded test-card PNG of 1,012,482 bytes. The image is stored uncompressed and sized so that the document is exactly 1,048,576 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.