Sample CSV File Download
CSV datasets for Excel testing, database seeding, and data processing. Samples for performance testing and parser validation.
Download by Size (10KB - 1MB)
Need a specific file size for load testing or benchmarking? Download automatically generated dummy files in exactly the size you need without previewing.
10 KB
Small sample for basic testing
100 KB
Medium sample for throughput testing
1 MB
Large sample for benchmark testing
Standard & Complex CSV Templates
User Registration Records (Standard)
Typical user database extract with names, verified emails, and registration timestamps for CRM testing.
id,first_name,last_name,email,gender,ip_address,registration_date
1,Jeanette,Pendred,jpendred0@census.gov,Female,26.58.193.2,2023-10-12
2,Giavani,Frediani,gfrediani1@senate.gov,Male,229.179.44.11,2024-01-05
3,Noell,Bea,nbea2@imageshack.us,Female,180.66.162.255,2023-11-20
4,Willard,Moseley,wmoseley3@ox.ac.uk,Male,67.130.228.129,2024-02-14Store Orders & Transaction History
Detailed e-commerce transaction logs including SKUs, order status, and total revenue calculations.
order_id,customer_id,product_sku,quantity,unit_price,status,order_date
ORD-501,CUST-99,SKU-WIDGET-01,2,25.00,Shipped,2024-03-25
ORD-502,CUST-82,SKU-GEAR-12,1,149.99,Pending,2024-03-26
ORD-503,CUST-45,SKU-TOOL-05,5,12.50,Delivered,2024-03-26
ORD-504,CUST-21,SKU-BATT-09,10,5.99,Cancelled,2024-03-27Real Estate Property Listings
Market listings featuring property type, square footage, price, and geographic data.
property_id,street,city,state,zip,type,sq_ft,price
1001,3522 High St,Sacramento,CA,95838,Residential,1202,69213
1002,5102 Corporate Blvd,Phoenix,AZ,85002,Commercial,4500,850000
1003,1217 Maple Dr,Denver,CO,80201,Condo,950,325000
1004,882 West Ave,Austin,TX,78701,Residential,2100,545000Cinema & Movie Database
Clean dataset of high-rated movies including release year, genre, and duration.
rank,title,genre,description,director,actors,year,runtime_min,rating
1,Interstellar,Sci-Fi,A team of explorers travel through a wormhole,Christopher Nolan,Matthew McConaughey,2014,169,8.6
2,Inception,Action,A thief who steals corporate secrets,Christopher Nolan,Leonardo DiCaprio,2010,148,8.8
3,The Dark Knight,Action,When the menace known as the Joker,Christopher Nolan,Christian Bale,2008,152,9.0Robust Parser Test (Quoted Values)
Edge-case test file containing multi-line values, nested commas, and escaped quotes.
id,field_name,description,tags
1,"Quoted, Comma","This field has a comma, and it is quoted","tag1,tag2"
2,"Multi-Line","This is
a multi-line
description","line,break"
3,"Escaped Quotes","Company ""Global"" Inc.","quote,test"HR & Payroll Employee List
Corporate directory for testing payroll systems and department management tools.
employee_id,name,department,position,salary,hire_date
E-101,Alice Freeman,IT,Senior Developer,125000,2022-01-15
E-102,David Miller,Sales,Account Manager,85000,2021-06-20
E-103,Sarah Wilson,HR,Director,105000,2019-11-30
E-104,Robert Hook,IT,Junior Dev,65000,2023-08-12CSV Data Management
CSV (Comma-Separated Values) is the standard format for data exchange between software systems. It works with Microsoft Excel, Google Sheets, and every major SQL database including PostgreSQL, MySQL, and SQLite.
Technical Standards
While many variations of CSV exist, our files follow the RFC 4180 standard. This means features like multi-line fields and quoted delimiters work correctly in most parsers.
- RFC 4180 Compliance: Proper use of double-quotes to escape special characters and commas within fields.
- UTF-8 Encoding: All downloads are encoded in UTF-8 without BOM to prevent compatibility issues in Linux and macOS environments.
- Line Ending Consistency: Files use standard Unix-style (LF) line endings, but are easily convertible to Windows (CRLF) via Excel.
For deep technical details, refer to the RFC 4180 CSV Specification or the Wiki Guide to CSV .
CSV Processing Tools
Once you have downloaded your dataset, use our browser-side tools to merge, split, or convert your data to JSON or Excel.
Popular CSV Test Cases
API Mass-Import Testing
Use our Payroll or Orders samples to test bulk upload features in CRM or ERP software.
SQL Data Seeding
Import the Users sample into your local development database to quickly populate tables for UI testing.
Parser Stress-Testing
The Robust Parser Test is designed specifically to find bugs in CSV parsing logic related to multi-line fields.
CSV File Format Specifications
The table below covers every technical detail about CSV files, from the official MIME type to the governing RFC standard that defines how quoted fields and line endings must be handled.
| Property | Value |
|---|---|
| File Extension | .csv |
| MIME Type | text/csv |
| Default Encoding | UTF-8 (without BOM for cross-platform compatibility) |
| Max Rows in Excel | 1,048,576 rows per sheet |
| Default Delimiter | Comma (,) — semicolons used in some European locales |
| Governing Standard | RFC 4180 (IETF) |
| Year Introduced | 1972 (IBM mainframe origins), RFC 4180 formalized in 2005 |
| Common Software | Microsoft Excel, Google Sheets, LibreOffice Calc, Python pandas, R |
How to Use a Sample CSV File
CSV files are the most commonly used format for data exchange between spreadsheet applications, databases, and programming environments. Below are four complete, runnable examples for the most important use cases.
How to Open a CSV File in Python with pandas
The pandas library is the standard tool for reading and analyzing CSV data in Python. It loads the entire file into a DataFrame, making filtering, aggregation, and export straightforward.
import pandas as pd
# Read the sample CSV file
df = pd.read_csv("sample-users.csv", encoding="utf-8")
# Display the first 5 rows
print(df.head())
# Filter only female records
female_users = df[df["gender"] == "Female"]
print(female_users[["first_name", "email"]])How to Parse a CSV File in JavaScript (PapaParse)
PapaParse is the most reliable CSV parser for JavaScript and handles quoted fields, multi-line values, and streaming out of the box. It works in both the browser and Node.js.
// Browser usage with PapaParse
// <script src="https://unpkg.com/papaparse/papaparse.min.js"></script>
Papa.parse("sample-users.csv", {
download: true,
header: true,
dynamicTyping: true,
complete: function (results) {
results.data.forEach((row) => {
console.log(row.first_name, row.email);
});
},
});How to Import a CSV File into Microsoft Excel
Open Excel and go to the Data tab. Click Get Data > From File > From Text/CSV. Select your downloaded sample file. In the import wizard, confirm that the Delimiter is set to Comma and the File Origin is set to 65001: Unicode (UTF-8). Click Load to populate the spreadsheet with the parsed data.
How to Load a CSV File into a PostgreSQL Database
PostgreSQL's built-in COPY command is the fastest way to seed a database table from a CSV file. The file must match the column order of an existing table exactly.
-- Create a matching table first
CREATE TABLE users (
id SERIAL,
first_name TEXT,
last_name TEXT,
email TEXT,
gender TEXT,
ip_address TEXT,
registration_date DATE
);
-- Import the CSV (skip the header row)
COPY users(id, first_name, last_name, email, gender, ip_address, registration_date)
FROM '/path/to/sample-users.csv'
DELIMITER ','
CSV HEADER;How to Create Your Own CSV File
Creating a CSV file manually or programmatically is simple, but getting the quoting rules right is essential. A single unescaped comma inside a field value will break the column alignment for every row that follows it.
Creating a CSV File Manually in a Text Editor
Open any plain text editor and save the file with a .csv extension. The first line is the header row. Each subsequent line is one data record. Wrap any field that contains a comma, a newline, or a double-quote in double quotation marks. Escape a literal double-quote inside a quoted field by doubling it.
id,name,department,salary
1,Alice Johnson,Engineering,125000
2,Bob Smith,"Sales, EMEA",85000
3,Carol White,"HR & ""People"" Dept",105000Generating a CSV File in Python
Python's built-in csv module handles all quoting and escaping automatically. Use the csv.writer class and let it decide when to apply quotes.
import csv
rows = [
["id", "name", "department", "salary"],
[1, "Alice Johnson", "Engineering", 125000],
[2, "Bob Smith", "Sales, EMEA", 85000],
[3, "Carol White", 'HR & "People" Dept', 105000],
]
with open("output.csv", "w", newline="", encoding="utf-8") as f:
writer = csv.writer(f)
writer.writerows(rows)
print("CSV file created successfully.")Generating a CSV File in JavaScript (Node.js)
const fs = require("fs");
const rows = [
["id", "name", "department", "salary"],
[1, "Alice Johnson", "Engineering", 125000],
[2, "Bob Smith", "Sales, EMEA", 85000],
];
// Wrap fields containing commas in double quotes
const escape = (v) => (String(v).includes(",") ? '"' + v + '"' : v);
const csv = rows.map((r) => r.map(escape).join(",")).join("
");
fs.writeFileSync("output.csv", csv, "utf8");
console.log("CSV file created successfully.");Common mistakes to avoid: Never mix line endings (CRLF on Windows versus LF on Linux) within a single file — this causes row-count mismatches in some parsers. Always include the header row as the first line. Never leave trailing spaces after commas, as some parsers include them in the field value. If your data contains commas, always quote the field rather than escaping the comma with a backslash.
Frequently Asked Questions about CSV Files
Why are my commas not separating the data in Excel?
In European locales, Excel defaults to semicolons as the delimiter because commas are used as decimal separators. If our sample CSV opens as a single column, go to Data > From Text/CSV and manually set the delimiter to Comma during the import wizard.
How do I open a CSV file on Mac or Windows?
On Windows, double-clicking a CSV file opens it in Excel by default. On Mac, it opens in Numbers. For a plain-text view, right-click the file and choose Open With > TextEdit (Mac) or Notepad (Windows). For large files over 100 MB, use a dedicated CSV editor like CSVed or open it in VS Code with the Rainbow CSV extension.
What is the difference between CSV and Excel (XLSX)?
CSV is plain text with no formatting, no formulas, and no multiple sheets. Excel XLSX is a binary (ZIP) container that supports formulas, charts, cell styles, multiple worksheets, and macros. CSV is the right choice for data portability and database imports. XLSX is the right choice when you need formatted reports or calculated columns.
Is there a maximum size for a CSV file?
CSV files themselves have no size limit. However, Microsoft Excel is capped at 1,048,576 rows and 16,384 columns per sheet. For datasets with millions of rows, load the CSV into a database (PostgreSQL, MySQL, SQLite) or process it with Python pandas using chunksize to stream data in batches without loading the full file into memory.
How do I validate a CSV file?
Use csvlint.io for online validation, or run pandas.read_csv() in Python and check the resulting DataFrame shape and column names. For schema validation (enforcing data types and required fields), the pandera library works directly on pandas DataFrames and produces clear error reports when data does not match expectations.
Can I convert CSV to JSON?
Yes. Each row of the CSV becomes a JSON object with keys taken from the header row. In Python, pandas.read_csv().to_json(orient="records") performs the conversion in one line. Online tools are also available if you prefer a no-code approach.
Is UTF-8 encoding required for CSV files?
UTF-8 is strongly recommended. It supports all international characters and works without issues on Linux, macOS, and modern Windows. Avoid UTF-8 with BOM (byte order mark) because older tools — particularly some versions of Excel — may display a garbled character () at the start of the first field. All samples on this page use UTF-8 without BOM.
How do I create a CSV file online?
Use Google Sheets to enter your data in a spreadsheet, then go to File > Download > Comma-separated values (.csv). This generates a clean, UTF-8 encoded CSV file. You can also merge multiple CSV files into one using our CSV Merger tool directly in your browser.
Related Resources
These guides and tools will help you do more with CSV data — from choosing the right editor to converting your spreadsheets into other formats.