What is a CSV File?
A CSV (comma-separated values) file stores a table as plain text: one row per line, with the values separated by commas. It is the most common format for moving data between spreadsheets, databases and apps, and is described in RFC 4180.
CSV has no formatting, formulas or multiple sheets, and details such as the separator, quoting, encoding and line endings vary between programs, which is why sample files are useful for testing importers. CSV files open in Excel, Google Sheets, LibreOffice Calc and any text editor.
Download CSV Sample Files
Below are two CSV files with 100 and 250 rows of data. They hold the same data as our XLSX samples.
CSV Sample File Details
| Sample | Data rows | Columns | File size |
|---|---|---|---|
| Sample1.CSV | 100 | Student ID, Grade | 610 bytes |
| Sample2.CSV | 250 | Employee ID, Salary, Leaves, Bonus | 5.2 KB |
Both files use commas as separators and Windows (CRLF) line endings, with a header row and no byte-order mark. Sample 1 has letter grades from A to E. In Sample 2, salaries are written as currency text with a trailing space; values such as "$1,000 " are quoted because they contain a comma, while bonus values such as $0 are not. That mix is a realistic test for importers:
Employee ID,Salary,Leaves,Bonus
1,"$1,000 ",1,$0
2,"$1,000 ",1,$0
What You Can Test With These CSV Files
- Importers: quoted values, commas inside values, trailing spaces and currency text.
- Line endings: CRLF files in Linux and macOS tools.
- Conversion: CSV to XLSX and back, compared with our matching XLSX samples.
- Databases: bulk loading into MySQL, PostgreSQL or SQLite.
- Data analysis: pandas, R and spreadsheet formulas.
How to Read a CSV File
# Python with pandas
import pandas as pd
df = pd.read_csv("sample-2.csv")
print(df.shape) # (250, 4)
# Python's built-in csv module
import csv
with open("sample-1.csv", newline="") as f:
for row in csv.reader(f):
print(row)






