CSV (Comma-Separated Values) is a simple file format used to store tabular data in plain text.
Each line in a CSV file represents a row, and values within a row are separated by commas (,
) or other delimiters like semicolons (;
) or tabs (sometimes called TSV).
- Example CSV File (
data.csv
)
Name, Age, City
John Doe, 30, New York
Jane Smith, 25, Los Angeles
Alice Johnson, 28, Chicago
- Same Data in Table Form:
Name | Age | City |
---|---|---|
John Doe | 30 | New York |
Jane Smith | 25 | Los Angeles |
Alice Johnson | 28 | Chicago |