Create a sample XLSX upload file

Choose the size of a spreadsheet fixture with one worksheet and two cells. Use it for upload and basic workbook checks; choose CSV for row-heavy import tests.

10,485,760 bytes
10 MiB · XLSX · 2,439 B
Exact size

1 MB = 1,000,000 B · 1 MiB = 1,048,576 B

Advanced: test an upload limit

Enter the byte limit above, then choose one byte below, the exact limit or one byte above. Each choice uses the same base: 10,485,760 B. Generate and download each file to test your endpoint.

XLSX, built to spec.

Each file is a workbook with one sheet, readable by Excel and openpyxl. The size you ask for is reached with a binary part inside the package, outside the sheet data, so the result opens in Microsoft Excel, LibreOffice Calc, Numbers and openpyxl. Most people generate these for testing spreadsheet imports and bulk-upload endpoints.

Choose a size here

Guides for specific upload limits

Inside a generated XLSX file

Six parts make up the package, including xl/worksheets/sheet1.xml and xl/media/pad.bin, which takes 1,046,137 bytes of a 1 MiB sample. The sheet has exactly two cells: A1 holds a title, and A2 holds the fixed number 1048576, whatever size you choose. That makes a quick parsing check: a reader should return those two values, because changing the size only alters pad.bin. A row-count limit will never trigger here, because there are only two rows.

File structure and testing limits

One worksheet contains a title cell and a number cell. A separate binary part supplies the size; use CSV when your test needs many actual data rows.

Format reference: ECMA-376.

Questions

How small can an XLSX file be?

About 2,439 bytes.

Noticed an issue with this test file? Report an issue →