Sample Excel Files

Sample Excel File Download

True XLSX datasets for spreadsheet imports, software testing, and data migration.

Download by Size (10KB - 1MB)

Need a practical file size for load testing? Download generated dummy files near the selected size. Container formats such as XLSX may vary because of compression.

10 KB

Small sample for basic testing

100 KB

Medium sample for throughput testing

1 MB

Large sample for benchmark testing

Select your Test Workbook

Corporate Employee Directory

A comprehensive list of employees with departments, roles, and salary grades for HR testing.

IDNameEmailDepartmentPositionSalaryHire Date
1John Smithjohn@company.comEngineeringSenior Developer$115,0002021-05-12
2Sarah Johnsonsarah@company.comMarketingProject Manager$85,0002022-01-10
3Mike Brownmike@company.comSalesTeam Lead$105,0002019-11-22
4Alice Freemanalice@company.comITJunior Dev$65,0002023-08-15

Global Sales Performance (Q1)

Structured quarterly sales records for regional tracking and pivot table generation.

MonthRegionCategoryRevenueTargetVariance
JanuaryNorth AmericaSaaS$45,000$40,000+$5,000
FebruaryEuropeSaaS$38,500$40,000-$1,500
MarchAsiaSupport$22,000$20,000+$2,000

Warehouse Inventory Master List

Stock management data including categories, SKU identifiers, and reorder alerts.

SKUProduct NameCategoryStock LevelMin RequirementStatus
SKU-001XPro Laptop 15Hardware1520Reorder Now
SKU-002YWireless MouseAccessories25050OK
SKU-005Z27 Inch MonitorDisplays85Low Stock

Annual Operational Budget

Financial allocations and year-to-date spending analysis for corporate planning.

Dept IDCategoryAllocatedSpentRemainingEfficiency %
D-101Digital Marketing$250,000$180,000$70,00072%
D-102Cloud Infrastructure$120,000$125,500-$5,500104%
D-103Employee Benefits$85,000$82,000$3,00096%

Product Launch Roadmap

Gantt-style timeline data tracking project milestones and owner responsibility.

PhaseStart DateEnd DateOwnerTask StatusPriority
Alpha Development2024-04-012024-05-15AliceCompletedP1
Beta Testing2024-05-162024-06-30BobIn ProgressP1
Final Release2024-07-012024-07-15AlicePlannedP2

Excel: Corporate Data Standard

Microsoft Excel (.xlsx) is a standard format for data analysis and business reporting. These sample workbooks provide clean, structured rows for testing spreadsheet imports, automation scripts, and data-processing workflows.

Technical Details

These Excel samples include currency-like values, date strings, percentages, and common business columns for testing import and parsing workflows.

  • Correct Container: Downloads are real Office Open XML workbooks with the `.xlsx` extension and MIME type.
  • Optimized for Testing: Useful for verifying XLSX parsers, Python (Pandas/Openpyxl) scripts, and Java (Apache POI) implementations.
  • Data Integrity: No macros or hidden scripts—just clean tabular workbook data.

Deep dive into the official specifications via Microsoft Developer docs or explore Excel historical context .

Integrated Excel Tools

Use our browser-based tools to merge multiple workbooks or convert your JSON datasets to Excel spreadsheets.

Real-World Test Scenarios

Pivot Table Auditing

Use the Sales Performance dataset to test complex grouping and summarization logic in your reporting tool.

ERP Data Migration

Download the Employee Directory to simulate a mass-import into a CRM, HRIS, or ERP system.

Financial Modeling

Use the Department budget sample to test numeric-text cleanup, column mapping, and financial-data imports.

Excel File Format Specifications

The table below covers the technical details of both major Excel formats - the legacy binary .xls format and the modern Open XML .xlsx standard - to help you choose the right one for your use case.

PropertyValue
File Extensions.xlsx (modern), .xls (legacy)
MIME Type (.xlsx)application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
MIME Type (.xls)application/vnd.ms-excel
ContainerZIP package containing Office Open XML parts
Max Rows per Sheet1,048,576 rows × 16,384 columns
Governing StandardECMA-376 / ISO 29500 (Office Open XML)
Year Introduced1985 (Excel 1.0); .xlsx introduced 2007
Common SoftwareMicrosoft Excel, Google Sheets, LibreOffice Calc, Apple Numbers

How to Use a Sample Excel File

Excel files are used across virtually every business domain - from HR and finance to inventory and project management. The examples below show how to read, analyze, and generate Excel files programmatically, which is essential for building automated report pipelines and testing import features.

How to Read an Excel File in Python (openpyxl)

The openpyxl library is the standard Python tool for reading and writing .xlsx files. It gives you direct access to individual cells, rows, and sheets.

import openpyxl

wb = openpyxl.load_workbook("sample-employees.xlsx")
ws = wb.active

# Print all rows (skip header row)
for row in ws.iter_rows(min_row=2, values_only=True):
    emp_id, name, email, dept, position, salary, hire_date = row
    print(f"{name} ({dept}): {salary}")

How to Read an Excel File in Python (pandas)

For data analysis tasks, pandas provides a higher-level interface that loads the entire sheet into a DataFrame in a single line.

import pandas as pd

df = pd.read_excel("sample-employees.xlsx", sheet_name=0)

# Calculate average salary
print("Average Salary:", df["Salary"].str.replace("$", "").str.replace(",", "").astype(float).mean())

# Filter by department
it_team = df[df["Department"] == "Engineering"]
print(it_team[["Name", "Position"]])

How to Read an Excel File in JavaScript (SheetJS)

SheetJS (also known as xlsx) is the most widely used Excel parser in the JavaScript ecosystem and works in both the browser and Node.js.

const XLSX = require("xlsx");

const workbook = XLSX.readFile("sample-employees.xlsx");
const sheetName = workbook.SheetNames[0];
const sheet = workbook.Sheets[sheetName];

// Convert sheet to array of objects (header row becomes keys)
const data = XLSX.utils.sheet_to_json(sheet);
data.forEach((row) => {
  console.log(row["Name"], row["Department"], row["Salary"]);
});

How to Import an Excel File into Microsoft Excel

The downloads are standard .xlsx workbooks. Open them directly in Microsoft Excel, Google Sheets, LibreOffice Calc, or another application that supports Office Open XML.

How to Create Your Own Excel File

Creating Excel files programmatically is one of the most common automation tasks in business software. The two most reliable approaches are using openpyxl in Python for server-side generation, or SheetJS in JavaScript for browser-side generation without a server.

Creating an Excel File in Python (openpyxl)

import openpyxl
from openpyxl.styles import Font

wb = openpyxl.Workbook()
ws = wb.active
ws.title = "Employees"

# Write headers with bold formatting
headers = ["ID", "Name", "Department", "Salary"]
ws.append(headers)
for cell in ws[1]:
    cell.font = Font(bold=True)

# Write data rows
employees = [
    [1, "Alice Johnson", "Engineering", 125000],
    [2, "Bob Smith", "Sales", 85000],
    [3, "Carol White", "HR", 105000],
]
for emp in employees:
    ws.append(emp)

wb.save("output.xlsx")
print("Excel file created successfully.")

Creating an Excel File in JavaScript (SheetJS / Node.js)

const XLSX = require("xlsx");

const data = [
  ["ID", "Name", "Department", "Salary"],
  [1, "Alice Johnson", "Engineering", 125000],
  [2, "Bob Smith", "Sales", 85000],
  [3, "Carol White", "HR", 105000],
];

const ws = XLSX.utils.aoa_to_sheet(data);
const wb = XLSX.utils.book_new();
XLSX.utils.book_append_sheet(wb, ws, "Employees");
XLSX.writeFile(wb, "output.xlsx");
console.log("Excel file created successfully.");

Common mistakes to avoid: Do not try to generate .xlsx files by writing raw XML strings manually - the format is a ZIP archive containing multiple interlinked XML files, and hand-crafting it is error-prone. Always use an established library. When formatting currency columns, store the raw number and apply a number format string ("$#,##0.00") rather than storing the formatted string - this preserves the ability to sort and calculate.

Frequently Asked Questions about Excel Files

Is .xls or .xlsx better for software testing?

Both formats remain in use, but .xlsx is the appropriate default for new testing because modern spreadsheet applications and libraries broadly support Office Open XML. All downloads on this page use real .xlsx workbooks.

How do I open an Excel file on Mac or Windows?

On Windows, double-clicking an Excel file opens it in Microsoft Excel if installed. On Mac, it opens in Numbers by default, though you can right-click and choose Open With > Microsoft Excel if Excel is installed, or upload it to Google Sheets for free access. For programmatic inspection, VS Code with the Excel Viewer extension lets you preview Excel files as a grid without opening Office.

What is the maximum file size for an Excel file?

Practical file-size limits depend on the spreadsheet application, device memory, formulas, and workbook complexity. Modern Excel worksheets support up to 1,048,576 rows and 16,384 columns per sheet; larger datasets are usually better handled with CSV, a database, or a data-processing tool.

What is the difference between Excel and CSV?

CSV is plain text with no formatting, formulas, or multiple sheets. XLSX is a structured ZIP container that can support formulas, charts, multiple worksheets, and cell styles; VBA macros use the separate .xlsm format. Use CSV for data portability and XLSX when workbook structure or presentation matters.

How do I convert Excel to CSV?

In Excel, go to File > Save As and choose CSV UTF-8 (Comma delimited) from the format dropdown. In Python, pandas.read_excel("file.xlsx").to_csv("output.csv", index=False) converts it in one line. Note that saving as CSV flattens all sheets into one - only the active sheet is exported.

How do I validate an Excel file?

Excel has no built-in strict validation like XML Schema, but you can use Data Validation rules (under the Data tab) to enforce allowed values, number ranges, and date formats per column. Programmatically, openpyxl and pandas will raise errors on corrupt files. For schema-level validation, load the data into a pandas DataFrame and use the pandera library to enforce column types and constraints.

Can I create an Excel file online for free?

Yes. Google Sheets is available for free and exports clean .xlsx files via File > Download > Microsoft Excel (.xlsx). LibreOffice Calc is a free desktop alternative that reads and writes .xlsx files with high compatibility. You can also merge multiple Excel files into a single workbook using our Excel Merger tool directly in your browser.

Are these sample files free for commercial use?

Yes, completely. All sample Excel files on this page are free to use for any purpose including commercial software testing, training materials, course content, and documentation. No attribution required.