Clean CSV
A clean, well-formed CSV with a header and 20 rows — the baseline case for CSV parser testing.
id,name,city,amount
1,Grace,Paris,516.7
2,Alan,Berlin,950.96
3,Katherine,Toronto,152.72
4,Linus,Austin,949.16
5,Radia,Oslo,318.71
6,Tim,Tokyo,429.09
7,Barbara,Nairobi,829.43
8,Dennis,London,415.11
9,Margaret,Paris,554.1
10,Ada,Berlin,37.28
11,Grace,Toronto,755.98
12,Alan,Austin,542.76
13,Katherine,Oslo,336.43
14,Linus,Tokyo,790.54
15,Radia,Nairobi,310.16
16,Tim,London,458.96
17,Barbara,Paris,142.7
18,Dennis,Berlin,409.08
19,Margaret,Toronto,211.42
20,Ada,Austin,269.69
Specifications
- Rows
- 20
- Columns
- 4
- Delimiter
- comma
- Encoding
- UTF-8
- Quoting
- minimal
What is a .csv file?
CSV (Comma-Separated Values) is a plain-text tabular format where rows are lines and fields are separated by commas, with quoting rules for values that contain delimiters, quotes, or newlines. It has no formal type system and depends on encoding and dialect conventions. It is the most portable format for tabular data exchange.
How to use this file
Use an example CSV to test parsers against quoting and embedded-delimiter edge cases, header handling, encoding detection, and import pipelines into databases or spreadsheets.
Related files
- csv10,000-Row CSVA CSV with 10,000 data rows — for testing streaming parsers, memory handling, and import performance.
- csvHeaderless CSVA CSV with no header row — for testing parsers that must infer or be told the column names.
- csvLatin-1 Encoded CSVA CSV encoded in Latin-1 (ISO-8859-1) with accented names — for testing encoding detection and mis-decoding (it will look wrong if read as UTF-8).
- csvMessy CSV (quoted commas, newlines, ragged rows)A deliberately messy CSV: a quoted field with a comma, a quoted field with an embedded newline, escaped double-quotes, and ragged rows with too few and too many fields — the cases that break naïve parsers.
- csvSemicolon-Delimited CSVA CSV that uses semicolons as the delimiter (common in European locales) — for testing delimiter detection.
- tsvTab-Separated Values (TSV)A tab-separated values file with a header and 20 rows — for testing TSV parsing and delimiter handling.
Generated by generation/data_tabular.py. Free for any use, no attribution required — license.