EthicalFusion
Data & Developers

Excel vs CSV: What's the Difference and When to Use Each

CSV is plain text holding one table; Excel .xlsx is a zipped workbook with sheets, formulas, formats and types. A side-by-side comparison and when to use each.

By the EthicalFusion team Published Updated 7 min read

A CSV file is plain text: one table, one row per line, values separated by commas, and nothing else. An Excel .xlsx file is a zipped package of XML files that can hold many sheets, formulas, formatting, charts and proper data types. Use CSV to move data between programs, websites and databases. Use .xlsx when people need to work on the data, calculate with it or read a formatted report.

You can switch between the two in a few seconds with the free CSV to Excel converter and Excel to CSV converter. Knowing what each format can and can't hold tells you what you'll lose before you press Save.

Excel vs CSV at a glance

FeatureCSV (.csv)Excel workbook (.xlsx)
What the file isPlain text you can open in NotepadA ZIP package of XML files
SheetsOne table onlyAs many sheets as memory allows
FormulasNo, only the valuesYes, plus the last calculated result
Formatting, colours, column widthsNoYes
Data typesNone: everything is text until a program guessesNumbers, dates, text and TRUE/FALSE are stored as such
Charts, images, comments, filtersNoYes
Size limitNone in the format itself1,048,576 rows by 16,384 columns per sheet
Hindi and other scriptsYes, if saved as UTF-8Yes, always
MacrosNoNo (macros need .xlsm)
Opens inAlmost any program, database or scriptExcel, Google Sheets, LibreOffice, Numbers and libraries that read .xlsx

What a CSV file really contains

Open any CSV in Notepad and you see exactly what is stored. A small file might be:

name,city,amount,remark
Priya,Pune,1500,Paid
"Rao, K.",New Delhi,"2,40,000","Said ""call after 6"""

The closest thing to an official definition is RFC 4180, an informational memo published in October 2005 that also registered the text/csv media type. Its rules are short:

  • Each record is on its own line, ending in a line break (CRLF). The last line may or may not end with one.
  • An optional header line with the column names may come first.
  • Fields are separated by commas, and spaces count as part of a field.
  • Every line should have the same number of fields.
  • A field that contains a comma, a double quote or a line break must be wrapped in double quotes, which is why "Rao, K." and the Indian-format "2,40,000" above are quoted.
  • A double quote inside a quoted field is written twice: ""call after 6"" means the text contains "call after 6" in quotes.

Because RFC 4180 is a description rather than a binding standard, real files vary. Some use semicolons or tabs, some end lines with LF only, and the encoding isn't stored anywhere in the file. RFC 4180 says US-ASCII is common and other character sets can be named in the media type, but a file on your disk carries no such label. That is why Excel sometimes shows Hindi as gibberish: it has to guess. The guide CSV opens wrong in Excel covers those guesses and their fixes.

What an .xlsx file really contains

An .xlsx file is an Office Open XML package, the format standardised as ECMA-376 and ISO/IEC 29500. Make a copy, rename it from .xlsx to .zip and open it, and you'll find a folder of XML files. A two-sheet workbook we saved from Excel held twelve parts, including:

  • xl/workbook.xml: the list of sheets and their order.
  • xl/worksheets/sheet1.xml, sheet2.xml: the cells of each sheet.
  • xl/sharedStrings.xml: every piece of text, stored once and referred to by number.
  • xl/styles.xml: fonts, borders and number formats.

Inside the sheet XML, the date cell that displayed 15-08-2026 held the formula DATE(2026,8,15), the stored value 46249 and a pointer to a date format. Excel counts dates as days since 1900, and the format turns 46249 into a readable date. A CSV has room for only one of those layers, the text you see, which is why converting to CSV keeps the result but drops the formula and format.

File size: which one is bigger?

People often assume a CSV is always smaller. It depends on the data, because an .xlsx is compressed and stores repeated text only once. We generated a 10,000-row order list with six columns (order ID, customer, city, amount, date, status) and saved it each way:

FileSize
CSV, UTF-8502 KB
.xlsx saved by Excel 2021416 KB
.xlsx from our CSV to Excel converter2.4 MB (not compressed)
Same converter file, opened and saved again in Excel413 KB

With repeated names, cities and status words, Excel's file came out smaller than the CSV. Our converter writes an uncompressed package, so if a website limits upload size, open its output in Excel or Google Sheets and save it again. Zipped, the CSV itself would shrink too, so for emailing large tables either format works once compressed.

What changes when you convert

Excel to CSV

  • Only one sheet is saved: the active sheet in Excel, the first sheet in our converter.
  • Formulas become their last calculated values.
  • Formatting, colours, merged cells, comments, charts, filters and frozen panes are dropped.
  • Values are written as displayed, so a date shown as 15-08-2026 is saved as that text and a 12-digit number in General format can be saved as 1.23457E+11.

CSV to Excel

  • Nothing is added that wasn't in the file, but every value is guessed: numbers, dates and TRUE/FALSE are converted.
  • That guessing removes leading zeros (011 becomes 11), rounds numbers longer than 15 digits and can turn codes like 1-5 into dates.
  • Importing with chosen column types avoids it, as explained in how to convert CSV to Excel.

When to use which

TaskBetter formatWhy
Uploading data to a website, portal or appWhatever its template asks forUpload forms check the exact format and columns
Importing into a database or scriptCSVSimple to read with any language; no library needed
Sending data to an API or web appCSV or JSONPlain text; JSON keeps structure
A report with totals, charts and formatting.xlsxCSV would drop all of it
Several related tables in one file.xlsxCSV holds one table per file
Long-term archive of raw dataCSV (UTF-8)Readable by any software, decades from now
Data with IDs, phone numbers or long numbers.xlsx with Text columns, or CSV opened carefullyAvoids zeros and digits being lost on opening

For developers, a CSV is easy to parse, but JSON keeps types and nesting. Our guide on converting CSV to JSON shows how the two compare.

Other spreadsheet formats you may meet

  • .xls: the older binary Excel format (Excel 97–2003). It opens in current Excel and in our Excel to CSV converter, but .xlsx is the better choice for new files.
  • .xlsm: an .xlsx that may contain macros. Open it only from people you trust.
  • .xlsb: Excel's binary workbook, fast for very large files.
  • .ods: the OpenDocument spreadsheet used by LibreOffice.
  • .tsv or .txt: like CSV but separated by tabs, which is also what you get when you copy cells from Excel.

Frequently asked questions

Is a CSV file an Excel file?

No. A CSV is a plain text file that Excel can open, which is why Windows often shows it with an Excel icon. Saving it in Excel keeps it as text unless you choose Excel Workbook (.xlsx) in Save As.

Can a CSV file have more than one sheet?

No. Each CSV holds one table. To share a workbook with three sheets as CSV, save each sheet as its own file.

Does CSV keep formulas?

No, only the values a formula produced. If a CSV cell contains text that starts with =, Excel turns it back into a formula when the file is opened, which is why you should be careful with CSVs from unknown sources.

Which is better for large data?

CSV, if the data goes to a database or script, because there is no row limit and any tool can stream it. Excel can't show more than 1,048,576 rows on one sheet, so a larger CSV won't fit on a single sheet.

Can I edit a CSV without Excel?

Yes. Notepad or any text editor works for small changes, and Google Sheets or LibreOffice Calc can open and save CSV for free. If you'll edit in a text editor, keep the quoting rules above in mind.

Sources: IETF RFC 4180, Common Format and MIME Type for Comma-Separated Values (CSV) Files, October 2005; Microsoft Support: Excel specifications and limits; File formats that are supported in Excel. File sizes measured in October 2026 with Excel 2021 and the converter's own code.

  • #excel vs csv
  • #xlsx vs csv
  • #what is a csv file
  • #csv format
  • #rfc 4180

Tools used in this guide

Free, no sign-up, and they run in your browser.

About EthicalFusion

EthicalFusion offers 321 free online tools for money, documents, images, writing and code. This guide was written by the team that builds them. Calculators give estimates, so confirm important figures with your bank, CA or doctor.

About us Suggest a correction

Keep reading

All articles