5 MB DOCX sample
A DOCX file of exactly 5,242,880 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 5 MB sample, test or dummy DOCX file.
Download
sample-docx-5mb.docx
5 MB5,242,880 bytes
Download 5 MB DOCXCreated 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
a28c7e1e58adbe33c041c93e1ffd2a64874e1ee73626f565bbf2074841f948b4- 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 5,206,786 bytes. The image is stored uncompressed and sized so that the document is exactly 5,242,880 bytes.
| Contents | Headings, paragraphs, a bulleted list, a table and one image |
|---|---|
| Embedded image | PNG, 1,509 × 1,149 px |
| Macros | None |
| Tracked changes | None |
| Container | ZIP (Office Open XML) |
First bytes of the file
The first 64 bytes of sample-docx-5mb.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 5 MB matters
A 5,242,880-byte file: the size of a phone photo and the minimum part size for S3 multipart uploads. These are the default limits a file of this size is useful for testing:
| System | Limit | Note |
|---|---|---|
| PHP | 2 MB per uploaded file by default (upload_max_filesize) | A 5 MB upload fails on an untuned PHP installation. |
| Vercel Functions | 4.5 MB request body | Larger uploads must go directly to object storage. |
| Amazon S3 multipart upload | 5 MiB minimum part size | This file is exactly one minimum part. |
| AWS Lambda | 6 MB synchronous invocation payload | 5 MB of binary data exceeds it once base64-encoded. |
| Browser localStorage | About 5 MB per origin | Storing this file as text fills the quota. |
| Django | 2.5 MB in memory by default | Larger uploads are streamed to a temporary file instead of held in memory. |
Use this file for
- Testing image resizing and memory use
- Verifying MIME detection of ZIP-based formats
- Testing text indexing and search
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-5mb.docx |
|---|---|
| Format | DOCX (Word document (Office Open XML)) |
| Extension | .docx |
| MIME type | application/vnd.openxmlformats-officedocument.wordprocessingml.document |
| Size | 5,242,880 bytes (5 MB) |
| Kind | Binary |
| Signature | 50 4B 03 04 |
| SHA-256 | a28c7e1e58adbe33c041c93e1ffd2a64874e1ee73626f565bbf2074841f948b4 |
| Created | 2026-10-14 |
| Validation | See 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. |
| Preview | Not available for this file; details only |
| Source | Generated in your browser by this site's generator; not copied from elsewhere |
| Licence | Free to use, modify and redistribute (terms) |
| Category | Documents |
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-5mb.docx # Linux
shasum -a 256 sample-docx-5mb.docx # macOSOn Windows, run Get-FileHash sample-docx-5mb.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 5 MB?
- Yes. It is 5,242,880 bytes, which is 5 MB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
- What is inside the 5 MB DOCX file?
- A short Word document with headings, body text, a list and a table, plus one embedded test-card PNG of 5,206,786 bytes. The image is stored uncompressed and sized so that the document is exactly 5,242,880 bytes.
- Will these files open in Google Docs and LibreOffice?
- Yes. They use standard Office Open XML with no macros, tracked changes or custom extensions.