Excel is a spreadsheet application and workbook format that can store multiple sheets, formulas, formatting, and other features; CSV is a plain-text format for tabular data, usually with one table per file. Use Excel format when you need to work with a feature-rich workbook, and CSV when you need a simple data table that is easy to exchange with other systems.
What Excel and CSV Mean
Excel is Microsoft’s spreadsheet program. Its modern default workbook format, .xlsx, stores workbook content such as worksheets, cell values, formulas, styles, charts, and other supported objects. The file is a structured package rather than a plain-text table. Older Excel workbooks may use the .xls format, which has different technical limits and compatibility considerations.
CSV stands for comma-separated values. A .csv file is plain text containing rows of fields separated by a delimiter, commonly a comma. For example, a tiny contact table might look like this:
Name,City,Visits
Amina,Leeds,3
Ben,Cardiff,5
CSV is not an Excel-only format. Text editors, databases, programming languages, and many spreadsheet programs can read or create it. Conversely, Excel can open and save CSV files, but doing so does not turn CSV into a full Excel workbook.
How the Formats Store Data
An .xlsx workbook can contain several worksheets, each with cells arranged in rows and columns. It can also preserve formulas, number formats, cell colors, merged cells, charts, tables, data validation, and other workbook features. The exact features retained depend on the file type and the software that opens it.
A CSV file stores text arranged as records and fields. It does not define spreadsheet formulas, cell formatting, sheet names, column widths, or multiple worksheets. A CSV may contain text that looks like a date or number, but the file itself does not specify a reliable data type for that field. When a program imports the file, it decides how to interpret the text.
Although the name says “comma-separated,” CSV files do not always use commas. Some systems use semicolons or another delimiter, often because commas are used as decimal marks in local number formats. A well-formed CSV also needs rules for fields that contain delimiters, quotation marks, or line breaks. A common convention is to enclose such a field in double quotes and double any quotation marks inside it. This is why a CSV should be parsed as structured text, not split blindly at every comma.
What You Keep—and Lose—When Converting
Saving an Excel workbook as CSV is a one-way simplification unless you keep the original workbook. Excel writes the active worksheet as text; other worksheets and workbook features are not included. Formulas are represented by their calculated results rather than as reusable formulas, and formatting such as bold text, colors, and currency display is discarded. If you need to preserve formulas, several sheets, charts, or presentation details, keep an .xlsx copy.
Opening a CSV in Excel can also change how values appear or are interpreted. A value such as 00127 may be treated as a number and displayed as 127. A string such as 03/04/2026 may be interpreted as a date, with the month and day depending on regional settings. Long digit strings, including some account or product identifiers, may be converted to numbers and lose leading zeros; very long numbers can also lose precision in spreadsheet software.
These changes are not necessarily changes to the original text file. They can happen during import or when Excel later saves the data. If exact text matters, import the CSV and specify the relevant columns as Text rather than relying on automatic detection. In Microsoft 365 for Windows, use Data > From Text/CSV to preview the data and choose import settings. The Excel for Mac interface and available import options can vary by release, so check the options in that version rather than assuming the Windows ribbon path is identical.
Compatibility and Practical Limits
CSV’s simplicity makes it useful for exchanging basic tables between different programs. It is often accepted by databases, reporting tools, web services, and data-analysis software. But “CSV” does not guarantee that two systems will agree about encoding, delimiter, decimal marks, date interpretation, or line endings. Confirm the receiving system’s requirements, especially when a file will be processed automatically.
An .xlsx file is usually the better handoff when recipients need to see the workbook as designed or continue calculations in Excel. Other spreadsheet programs can often open .xlsx files, but some features may be changed or unsupported. If a recipient only needs a flat data table, CSV may be more portable and less ambiguous about workbook-specific features.
Excel worksheets have fixed limits: up to 1,048,576 rows and 16,384 columns in current versions. CSV as a text format does not impose those worksheet dimensions, but the program importing it still has its own memory, size, and row limits. A file being valid CSV does not mean Excel can display every row in it.
When to Choose Excel or CSV
Choose a format based on what the next person or program needs to do with the data, not just on the file’s extension. These factors are a useful guide:
- Choose .xlsx for a workbook with multiple sheets, formulas, charts, formatting, filters, or instructions for a human reader.
- Choose CSV for a single, straightforward table that another application expects as delimited text, or when a simple, widely supported data export is needed.
- Keep both when you need a polished or formula-driven working file and a plain-data export for a separate system. Treat the CSV as an export, not as a complete backup of the workbook.
- Check the recipient’s specification for delimiter, encoding, column order, headers, date format, and required file extension. A technically valid file can still fail an import if these details do not match.
For example, a monthly budget with formulas, category colors, and separate sheets for each month belongs in .xlsx. A list of order IDs and quantities uploaded to an inventory system may need to be CSV, provided the system’s required column names and delimiter are followed.
A Safer Workflow for Opening and Exporting CSV
If you are working with important data, keep an untouched copy of the source and make conversion choices deliberately. A dependable workflow is:
- Check the destination’s requirements, including encoding, delimiter, headers, and date conventions.
- In Excel, use Data > From Text/CSV when automatic conversion could damage identifiers, dates, or long numeric strings. Review the preview and set sensitive columns to Text where appropriate.
- Verify a few representative records after import, including leading-zero codes, blank fields, non-English characters, and fields containing commas.
- Keep the working workbook as .xlsx if it contains features you need to preserve.
- When exporting, use Save As and select the requested CSV option. Check which worksheet is active first, then inspect the resulting file or import it into the receiving system to confirm the output.
Excel’s CSV save options can include different encodings or delimiters depending on the version and locale. For an international dataset, UTF-8 is often a sensible choice, but the receiving application must also support it. If Excel warns that some workbook features are incompatible with CSV, that warning reflects real information loss; retain the workbook if those features matter.
Common Problems and Security Considerations
A common source of confusion is assuming that changing a file extension converts its format. Renaming report.xlsx to report.csv does not create a valid CSV, just as renaming a CSV to .xlsx does not add sheets or formulas. Use the application’s export or Save As function to create the intended format.
Another frequent issue is a CSV that appears to have too many columns because the delimiter does not match the program’s expectation. A comma may be correct for one system and a semicolon for another. Characters that display incorrectly can point to an encoding mismatch. When a file looks wrong, check these settings before editing the data itself.
CSV also deserves care when it comes from an untrusted source. Spreadsheet programs may interpret a field beginning with characters such as =, +, – or @ as a formula when the file is opened. This can create a risk if the content is malicious. CSV is plain text, but opening it in a spreadsheet can trigger interpretation. For untrusted files, use your organization’s safe-import process, inspect suspicious content, and avoid treating a CSV as harmless merely because it is not an .xlsx workbook.
Alternatives to Consider
For a spreadsheet that needs to remain editable but may be used outside Excel, OpenDocument Spreadsheet (.ods) is one option, though compatibility for advanced features should be checked. Tab-separated values (.tsv) is similar to CSV but uses tabs as separators; it can help when text fields commonly contain commas, but it still does not preserve workbook features. For very large or analytical datasets, a database export or a column-oriented format such as Parquet may fit better than either Excel or CSV, depending on the tools involved.
Frequently Asked Questions
Is CSV an Excel file?
No. CSV is a plain-text data format that Excel can open and create. It does not hold the workbook features found in .xlsx files, such as multiple sheets, formatting, and formulas.
Does CSV keep formulas?
No, not as working spreadsheet formulas. When Excel saves a worksheet as CSV, formula cells are exported as their calculated values. Keep an .xlsx copy if you need to edit or recalculate the formulas later.
Why did Excel remove the leading zeros from my CSV?
Excel may have interpreted a value such as 00042 as a number rather than text. Import the file with the column set to Text, or otherwise preserve the identifier as text before saving. Simply changing the number format after zeros are lost may not restore the original value.
Can a CSV file have more than one sheet?
Not in the usual CSV format. A CSV represents a single table, so exporting from a workbook produces the active worksheet rather than all its sheets. Use a workbook format such as .xlsx when multiple sheets must travel together.
Which is better for sharing data?
CSV is often best for transferring a plain table into another system, while .xlsx is usually better for sharing a workbook that people need to read, format, or calculate with. The recipient’s requirements should decide the choice.
Related
- Excel Absolute References on Windows: How to Use Them
- Excel Name Box: Change a Range or Named Range
- How to See Named Ranges in Excel and Check Their Cells
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- How to Find Excel Spreadsheets on Your ComputerOn Windows, open File Explorer with Windows key + E, select This PC, and search for *.xlsx to…
- Excel Mode With Text: Find the Most Frequent Text ValueExcel’s MODE.SNGL and MODE.MULT functions work with numbers, not words. To find the most frequent text value, count…
- Excel Go To Special Shortcut: How to Select Cells FastIn Excel for Microsoft 365 on Windows, press Ctrl+G or F5 to open Go To, choose Special, select…
- Excel Row and Column AutoFit: Steps, Limits, and FixesTo auto-adjust Excel row or column size, select the relevant rows or columns, then choose Home > Cells…
- How to Autofill in Excel From the Cell Directly AboveTo fill cells from the one above in Excel, select the source cell and the cells below it,…
- Excel Keyboard Shortcut to Resize a Column or AutoFitIn Excel for Microsoft 365 on Windows, select a cell in the column and press Alt, H, O,…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.