What is an XLSX File?
An XLSX file is a Microsoft Excel workbook in the Office Open XML format, the default since Excel 2007. Like DOCX, it is a ZIP archive of XML files that holds the worksheets, cell values, formulas, formatting and charts. It replaced the older binary XLS format.
XLSX files open in Excel, Google Sheets, LibreOffice Calc, Apple Numbers and WPS Office, and libraries such as openpyxl, pandas, Apache POI and SheetJS can read and write them.
Download XLSX Sample Files
Below are two Excel workbooks with simple data tables. They hold the same data as our CSV samples.
XLSX Sample File Details
| Sample | Data rows | Columns | File size |
|---|---|---|---|
| Sample1.XLSX | 100 | Student ID, Grade | 10.4 KB |
| Sample2.XLSX | 250 | Employee ID, Salary, Leaves, Bonus | 14.3 KB |
Each workbook has a single worksheet with a header row followed by plain values: whole numbers, and letter grades from A to E in Sample 1. There are no formulas, charts or macros.
What You Can Test With These XLSX Files
- Spreadsheet imports: bulk upload features that read Excel files.
- Parsing libraries: openpyxl, pandas, Apache POI, SheetJS and others.
- Conversion: XLSX to CSV and back, compared with our matching CSV samples.
- Previews: spreadsheet viewers in web apps and file managers.
- Uploads: forms that accept
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.
How to Read an XLSX File
# Python with pandas (needs openpyxl)
import pandas as pd
df = pd.read_excel("sample-2.xlsx")
print(df.shape) # (250, 4)
# Convert to CSV with LibreOffice
libreoffice --headless --convert-to csv sample-1.xlsx






