What is a CSV file?
A CSV file is a plain-text table: one line per row, fields separated by a delimiter, usually a comma. Fields that contain the delimiter, quotes or line breaks are wrapped in double quotes. There are no sheets, formulas, styles or data types: every value is text until the reading program interprets it.
The format is described in RFC 4180 but implementations vary: European locales often use a semicolon because the comma is the decimal separator, and files may be encoded in UTF-8, Windows-1252 or another code page. Those two details cause most CSV import problems.
When CSV is the right choice
Strengths
- Universally readable: spreadsheets, databases, scripts and text editors
- Small and simple; easy to generate and to diff in version control
- The standard exchange format for imports and exports in web services
Limitations
- No formatting, formulas, multiple sheets or column types
- Delimiter and character encoding are not stored in the file
- Leading zeros and long numbers are mangled when opened carelessly in Excel
How to open a CSV file
Any text editor shows the raw rows. For a table view, open the file in Excel, LibreOffice Calc, Google Sheets or Numbers; use the import dialog rather than a double-click when the delimiter is a semicolon or the text is not UTF-8, so that columns and accented characters come out right.
How to convert to or from CSV
Tables locked in a PDF report come out as data with PDF to CSV; when you want formulas and formatting around them, PDF to Excel is the better target. For tables printed in a scan or a screenshot, Image to Excel recognizes the cells first.