A comma-separated values (CSV) file stores information you usually find in a spreadsheet in a plain text file. The values are separated by a comma. Each line of the file is a data record. Each record consists of one or more fields that are separated by commas.