CSV vs Excel: what is the difference?

CSV is plain text any program can read; an Excel file holds formulas, formatting and types. When to use each and how to convert without damaging data.

Last updated

The two formats look the same when Excel opens them, which is why they get confused. They’re built for different jobs and using the wrong one is behind a lot of lost formatting, broken imports and quietly damaged data.

CSV: plain text, one table

A CSV file is text. Each line is a row and commas separate the values:

name,zip,amount
Ada,02134,19.99

That is all it can hold: no formulas, no formatting, no second sheet and no way to say what kind of value something is. Its strength is that every program can read it, which makes it the standard for moving data between systems.

Excel: a workbook

An .xlsx file is a structured package holding several sheets, formulas, formatting, charts and a type for every cell. It is built for working with data, not for moving it. Other software can read it, but less universally than CSV.

Choosing

  • Sending data to another system (a mailing tool, a database, accounting software): CSV.
  • Sending data to a person to read or work on: Excel, so it opens with nothing changed.
  • Keeping your own working file: Excel, so formulas and formatting survive.

Converting without damage

Going from CSV to Excel is where things break. Excel guesses the type of every CSV value as it opens, dropping leading zeros and rounding long numbers, as covered in why Excel removes leading zeros. CSV to Excel avoids that by writing a real workbook where each value is typed explicitly and several CSVs can become several sheets.

Going from Excel to CSV is simpler but loses everything except values. Excel to CSV gives you each sheet as a CSV, including from old .xls files, which are covered in how to open an .xls file without Excel.

Semicolons and tabs

In much of Europe, Excel writes CSV with semicolons, because the comma is the decimal separator. Tab-separated files are another variant. Good tools detect the separator automatically; if yours shows everything in one column, the separator is the reason.

Common questions

Is a CSV file an Excel file?

No. Excel opens CSV files and Windows often shows them with an Excel icon, but a CSV is plain text with commas between values. It has no formulas, formatting or multiple sheets.

Which is better for importing data into another system?

CSV, almost always. Databases, mailing tools, accounting software and scripts all read it and it contains nothing but the data.

Why does my CSV lose formatting when I save it?

Because CSV can’t store formatting. Colours, column widths, bold text and formulas exist only in the Excel file. Saving as CSV keeps the values and discards the rest.

Can a CSV have more than one sheet?

No. A CSV is a single table. A workbook with several sheets becomes several CSV files, one per sheet.

Tools for this

More guides