What is a CSV file?
CSV is a plain text table. Each line is a row, and a separator (usually a comma or a semicolon) splits the columns. Spreadsheets, databases and online shops import and export it, because any program can read text. It stores values only: no formulas, colours or several sheets.
Drop your file here
or select file
Images, video, audio, documents, data, archives, fonts and more.
About CSV file:
01CSV at a glance
- Full name
- Comma-separated values
- Type
- Plain text table
- Extension
- .csv
- MIME type
- text/csv
- Described in
- RFC 4180 (2005), which documents what most programs do
- Stores
- Values only: no formulas, formatting or several sheets
02What is a CSV file
A CSV file is plain text. Every line is one row, and a separator splits the row into columns. The first line often holds the column names. Any program can read it, which is why spreadsheets, databases, online shops and accounting tools use it to exchange tables.
There is no single official standard. RFC 4180 says so itself: there is no formal specification, and there are considerable differences among implementations. The RFC describes what most programs do: a line break ends a record, and a field that holds a comma, a double quote or a line break goes in double quotes, with an inner quote written twice.
The separator is the usual trouble. Despite the name, many files use a semicolon or a tab. Excel splits columns by the list separator of your regional settings, so a comma file may open as one column on a computer set to a region that uses a decimal comma, and the other way round. The second trouble is the text encoding: letters outside basic English break when the program guesses the wrong one.
This tool reads the whole file in your browser, follows the quote rules, and counts rows and columns. It tells you the separator it found, the rows that have a different number of columns, repeated column names, a quote that is never closed and whether the text is UTF-8.
03Good and bad sides
Good
- Every spreadsheet, database and programming language reads it
- Small, and you can read it in any text editor
- Good for moving a table between two programs
Bad
- No formulas, colours, several sheets or column types: everything is text
- The separator and the encoding are not stored in the file, so programs guess
- Excel may open it in one column or show wrong letters, depending on region and encoding
04Best for
Moving a table between programs
The common denominator. Check the separator and the UTF-8 encoding on both sides.
Importing into online tools
Many shops and mailing tools import from CSV. The first line should hold the column names and the text should be UTF-8.
Opening in a spreadsheet
Opens, but a spreadsheet may show one column or wrong letters, depending on region and encoding. Check the separator and the encoding.
Text in other languages
Save it as UTF-8, or the letters can break in another program.
05How to open it
- Windows and macOS
- Excel (use Data, From Text/CSV to choose the separator and the encoding), Numbers, LibreOffice Calc
- Browser
- Google Sheets (File, Import)
- Any system
- A text editor shows the raw text
- Phones
- Excel, Numbers and Google Sheets apps
06Convert and compare
Sources