Comma-separated values (CSV) is a text file format that uses commas to separate values, and newlines to separate records. A CSV file stores tabular data (numbers and text) in plain text, where each line of the file typically represents one data record. Each record consists of the same number of fields, and these are separated by commas in the CSV file. If the field delimiter itself may appear within a field, fields can be surrounded with quotation marks.[1]
The CSV file format is one type of delimiter-separated file format.[2] Delimiters frequently used include the comma, tab, space, and semicolon. Delimiter-separated files are often given a ".csv" extension even when the field separator is not a comma. Many applications or libraries that consume or produce CSV files have options to specify an alternative delimiter.[3]
The lack of adherence to the CSV standard RFC 4180 necessitates the support for a variety of CSV formats in data input software. Despite this drawback, CSV remains widespread in data applications and is widely supported by a variety of software, including common spreadsheet applications such as Microsoft Excel.[4] Benefits cited in favor of CSV include human readability and the simplicity of the format.[5]
Filename extension | .csv |
---|---|
Internet media type | text/csv [6] |
Uniform Type Identifier (UTI) | public.comma-separated-values-text[7] |
UTI conformation | public.delimited-values-text[7] |
Type of format | multi-platform, serial data streams |
Container for | database information organized as field separated lists |
Standard | RFC 4180 |
rfc4180
was invoked but never defined (see the help page).