5 MB XLSX sample file
An XLSX file of exactly 5,242,880 bytes. It is a valid Excel workbook (Office Open XML) file, generated for this site and checked with an independent parser.
Download
sample-xlsx-5mb.xlsx
5 MB5,242,880 bytes
Download 5 MB XLSXDirect download. No sign-up and no waiting.
- Type
- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
- SHA-256
99fd80c7c6497e25151c3edd3c13a6e4c77dfcf87a21e44ed6206aeac7967d3f- Direct URL
https://sampletestfiles.com/downloads/xlsx/sample-xlsx-5mb.xlsx
What is in this file
One worksheet with a bold, frozen header row and 76,725 rows of fictional orders: text, dates, numbers and a formula in every row. 10,377 bytes of text in the workbook description property bring the file to the exact size.
| Sheets | 1 (Orders) |
|---|---|
| Data rows | 76,725 |
| Columns | 9 |
| Formulas | 76,725 (total = quantity × unit price) |
| Frozen panes | Header row |
| Macros | None |
| Container | ZIP (Office Open XML) |
First bytes of the file
The first 64 bytes of sample-xlsx-5mb.xlsx as a hex dump: offset, bytes, then the same bytes as text. The XLSX signature is 50 4B 03 04.
00000000 50 4b 03 04 14 00 00 00 08 00 00 00 21 5c 19 27 |PK..........!\.'|
00000010 be 30 2f 01 00 00 96 03 00 00 13 00 00 00 5b 43 |.0/...........[C|
00000020 6f 6e 74 65 6e 74 5f 54 79 70 65 73 5d 2e 78 6d |ontent_Types].xm|
00000030 6c ad 93 cf 4e 02 31 10 c6 ef 3e 45 d3 2b d9 16 |l...N.1...>E.+..|Preview
XLSX files cannot be shown in a browser. Download the file and open it with Microsoft Excel.
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
- Simulating photo uploads from phones
- Testing spreadsheet import features
- Checking date and number conversion
Testing notes for XLSX
- A date cell is a number with a format; importers that ignore the format show values such as 45123 instead of a date.
- Reading a large workbook with a DOM-style library can use many times the file size in memory. Test with the 5 MB and 10 MB samples and prefer streaming readers.
Technical details
| File name | sample-xlsx-5mb.xlsx |
|---|---|
| Format | XLSX (Excel workbook (Office Open XML)) |
| Extension | .xlsx |
| MIME type | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
| Size | 5,242,880 bytes (5 MB) |
| Kind | Binary |
| Signature | 50 4B 03 04 |
| SHA-256 | 99fd80c7c6497e25151c3edd3c13a6e4c77dfcf87a21e44ed6206aeac7967d3f |
| 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 | Spreadsheets |
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-xlsx-5mb.xlsx 'https://sampletestfiles.com/downloads/xlsx/sample-xlsx-5mb.xlsx'
sha256sum sample-xlsx-5mb.xlsx # Linux
shasum -a 256 sample-xlsx-5mb.xlsx # macOSOn Windows, run Get-FileHash sample-xlsx-5mb.xlsx -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 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 XLSX file?
- One worksheet with a bold, frozen header row and 76,725 rows of fictional orders: text, dates, numbers and a formula in every row. 10,377 bytes of text in the workbook description property bring the file to the exact size.
- How many rows are in the 10 MB XLSX sample?
- The exact row count is listed on each download page. Because XLSX is compressed, a 10 MB workbook holds a few hundred thousand rows.