ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Comparisons
  3. CSV vs XLSX: Which File Format to Use

CSV vs XLSX: Which File Format to Use

By ExcelReady Team·Updated November 1, 2026·7 min read

The short answer

Use XLSX for any file people will work in: it keeps formulas, formatting, multiple sheets, tables and charts. Use CSV to move data between systems, because it is plain text that almost any program can read and write. CSV saves only values from one sheet, and opening it in Excel can strip leading zeros and change dates.

Key takeaways

  • CSV is plain text: one sheet, values only, no formulas, formatting or charts.
  • XLSX is Excel's standard workbook format and keeps everything you build.
  • Opening a CSV by double-clicking lets Excel guess data types, which can drop leading zeros and misread dates.
  • Import CSV files with Data > From Text/CSV to choose column types before the data lands.
  • Do your work in XLSX and export a CSV copy only when a system needs one.
On this page+
  1. CSV vs XLSX at a glance
  2. What each file contains
  3. The same data saved both ways
  4. How to open a CSV safely in Excel
  5. When to use CSV
  6. When to use XLSX
  7. Common mistakes with CSV and XLSX
  8. Our recommendation
  9. Practise it

The short answer to CSV vs XLSX: use XLSX for any file people work in, because it keeps formulas, formatting, sheets and charts, and use CSV to move data between systems, because it is plain text that almost any program can read. The catch is that CSV keeps only values, and opening one in Excel can quietly change your data. This comparison is for anyone who downloads reports from a system, uploads lists to one, or has seen zip codes and dates go wrong after opening a CSV.

CSV vs XLSX at a glance#

CSV is a simple text format for data exchange; XLSX is a full workbook format for working in Excel.

FeatureCSVXLSX
What it isPlain text, values separated by commasExcel workbook (compressed XML files)
SheetsOneMany
FormulasNo, only their resultsYes
Formatting, colours, column widthsNoYes
Charts, tables, pivot tablesNoYes
Data types (date, number, text)No, everything is text until openedYes, stored with each cell
Leading zeros (00123)Lost when opened directly in ExcelKept
Opens inAlmost any program, including text editorsExcel and compatible spreadsheet apps
Best forImporting and exporting between systemsWorking files, reports, models

CSV stands for comma-separated values. In some countries where the comma is the decimal separator, Excel uses semicolons instead, but the idea is the same.

What each file contains#

The two formats store the same rows of data in very different ways.

Inside a CSV file#

A CSV file is just text. Open one in Notepad or TextEdit and you see something like this:

EmployeeID,Name,StartDate,Salary
00123,Priya Shah,2024-03-15,52000
00456,Tom Okafor,2024-09-02,48500

Each line is a row and each comma marks a new column. There are no fonts, no formulas and no notion of a "date" or "number": every value is a piece of text. That simplicity is the point. Databases, accounting systems, web apps and scripts can all read and write CSV, which is why exports and imports so often use it.

Inside an XLSX file#

An XLSX file is Excel's standard workbook format, used since Excel 2007. It stores each cell's value and its type, so a date stays a date and text stays text. It also stores formulas, number formats, multiple worksheets, tables, charts, pivot tables, data validation, conditional formatting and comments. Inside, it is a compressed bundle of XML files, which keeps file sizes manageable. If your workbook has macros, the related .xlsm format is used instead.

The same data saved both ways#

Imagine the employee list above as a workbook, with a formula column for annual bonus and a header row in bold. Here is what survives each format:

ItemSaved as XLSXSaved as CSV, then reopened
EmployeeID 0012300123 (stored as text)123
Start date 2024-03-15A real dateUsually a real date, but the format may change, and day-month order can be misread
Salary 520005200052000
Bonus formula =D2*5%FormulaThe value 2600, no formula
Bold headerBoldPlain
Second worksheetKeptGone (only the active sheet was saved)
Column widths, coloursKeptGone

The salary survives fine, because it's a plain number. The ID and date are where CSV causes trouble.

Problem 1: leading zeros disappear#

When you double-click a CSV, Excel sees 00123, decides it's a number, and stores 123. IDs, zip codes, phone numbers and product codes all suffer from this. If the zeros are already gone and every code should have the same length, you can rebuild them:

Excel formula
=TEXT(A2,"00000")

If A2 holds 2134, the result is the text 02134. The format code "00000" means "at least five digits". The text and value lesson explains why the same digits can be stored as text or as a number, and TEXT vs VALUE shows how to convert in each direction.

Problem 2: dates change or arrive as text#

A CSV date like 03/04/2024 can be read as 3 April or 4 March, depending on your computer's regional settings. Some dates won't convert at all and stay as text, aligned to the left of the cell, so date maths fails. To fix text dates, see how to convert text to dates and the comparison of DATE vs DATEVALUE. The date basics lesson explains how Excel stores a real date as a number.

Problem 3: long numbers lose digits#

Excel keeps 15 significant digits. A 16-digit card or account number in a CSV becomes something like 1.23457E+15 on screen, and digits after the 15th turn into zeros. Import such columns as Text.

How to open a CSV safely in Excel#

Don't double-click the file. Import it instead, so you choose each column's type before Excel guesses:

  1. Open a blank workbook.
  2. Go to Data > From Text/CSV (Excel 2016 and later, and Microsoft 365).
  3. Pick the file, then click Transform Data.
  4. Click the header of an ID or code column, and set its type to Text.
  5. Set date columns to Date, choosing the right locale if needed, then click Close & Load.

Recent Microsoft 365 versions also have settings under File > Options > Data to stop some automatic conversions, such as removing leading zeros. These settings affect only your computer, so importing is still the safer habit when sharing instructions with others.

When to use CSV#

Use CSV when data must travel between systems. It fits:

  • Uploading lists to a CRM, payroll, email or e-commerce system.
  • Exporting from a database or app so you can analyse the data.
  • Sharing data with people who don't use Excel, or with scripts and programming tools.
  • Very large raw data, where a simple, universal format matters more than features.

When saving, choose CSV UTF-8 (Comma delimited) if the data has accented letters or non-English characters, so they come through intact.

When to use XLSX#

Use XLSX for anything a person works in. It fits:

  • Reports, models and dashboards with formulas, charts or pivot tables.
  • Files with several sheets, such as data, lookups and a summary.
  • Anything that must keep formatting, such as an invoice or a timesheet.
  • Data with IDs, codes or dates that must not change when the file is reopened.

Formulas like TODAY vs NOW only keep updating in XLSX; in a CSV they freeze as the values shown when you saved. The same goes for date calculations such as adding days, months and years.

Common mistakes with CSV and XLSX#

  1. Working in a CSV. Formulas and formatting look fine until you save and reopen. Then they are gone. Save as XLSX first.
  2. Double-clicking CSV exports. Excel guesses types and can drop zeros or change dates. Import with Data > From Text/CSV.
  3. Saving over the original export. Once Excel has changed 00123 to 123 and you save the CSV, the zeros are gone from the file too.
  4. Expecting every sheet in the CSV. Only the active worksheet is saved.
  5. Ignoring the warning on save. When Excel says some features might be lost, it means formulas, formatting and other sheets.
  6. Uploading the wrong delimiter. If a system expects commas and your settings produce semicolons, the upload fails. Check the system's requirements.

Our recommendation#

Treat XLSX as your working format and CSV as a shipping format. Keep your real file as XLSX, with formulas, formatting and every sheet. When a system needs data, save a CSV copy for that upload. When you receive a CSV, import it with Data > From Text/CSV and set ID and date columns deliberately, then save your work as XLSX.

In short: work in XLSX, exchange in CSV, and import CSV files instead of double-clicking them.

Practise it#

Try the exercise on this page: rebuild zip codes that lost their leading zeros. Then practise converting text and numbers in a live spreadsheet and the date basics lesson, so imported data never catches you out. You type each formula, and it checks your answer instantly.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

These zip codes lost their leading zeros when a CSV was opened. In C2, use TEXT to show the zip code in A2 as five digits again.

fx
ABCD
1
Zip (from CSV)
City
Fixed zip
2
2134
Boston
3
7030
Hoboken
4
10001
New York
5
6
7

Tip: The format "00000" tells TEXT to show at least five digits, adding zeros at the front when needed.

Practise this in a lesson

LessonTEXT and VALUE: numbers to text and backFormat dates and dollar amounts inside sentences with TEXT, and turn digits stored as text into real numbers with VALUE.LessonHow Excel stores dates: DATE, YEAR, MONTH, DAYLearn why every date is secretly a number, then build dates with DATE and take them apart with YEAR, MONTH and DAY.

Frequently asked questions

What is the difference between CSV and XLSX?

+

CSV is a plain text file with values separated by commas, holding one sheet of data and nothing else. XLSX is Excel's workbook format, which stores formulas, formatting, several sheets, tables, charts and more.

Why does Excel remove leading zeros from my CSV?

+

When you open a CSV directly, Excel treats values that look like numbers as numbers, and numbers can't start with zero. Import the file with Data > From Text/CSV and set that column to Text, or rebuild the zeros with =TEXT(A2,"00000").

Does saving as CSV keep my formulas?

+

No. A CSV stores only the values your formulas show at the moment you save. Keep an XLSX copy as your working file.

Why did my CSV only save one sheet?

+

CSV has no concept of multiple sheets, so Excel saves only the active worksheet. Save each sheet as its own CSV if a system needs all of them.

Which is better for large data, CSV or XLSX?

+

CSV has no row limit of its own and is easy for databases and scripts to read, but Excel can only load 1,048,576 rows per sheet. For analysis inside Excel, XLSX is more convenient; for moving big data between systems, CSV is the usual choice.

Sources

  • Convert numbers stored as text to numbers - Microsoft Support
  • TEXT function - Microsoft Support
  • Date systems in Excel - Microsoft Support

Written and checked by the ExcelReady Team. First published November 1, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. CSV vs XLSX at a glance
  2. What each file contains
  3. The same data saved both ways
  4. How to open a CSV safely in Excel
  5. When to use CSV
  6. When to use XLSX
  7. Common mistakes with CSV and XLSX
  8. Our recommendation
  9. Practise it

Keep reading

Comparisons· 7 min read

DATE vs DATEVALUE in Excel

DATE builds a real Excel date from three numbers: year, month and day, as in =DATE(2024,3,15). DATEVALUE converts text that looks like a date, such as "2024-03-15", into a real date. Use DATE whenever you can split out the parts, because it never depends on regional settings. Use DATEVALUE for a quick fix on clean date text.

Dates· 5 min read

How to Convert Text to Dates in Excel

To convert text to a date in Excel, use =DATEVALUE(A2) or =VALUE(A2) when the text matches your computer's date format, then format the result as a date. For a whole column, use Data > Text to Columns and choose Date. For formats Excel can't read, like 20240315, rebuild the date with DATE, LEFT, MID and RIGHT.

Comparisons· 7 min read

TODAY vs NOW in Excel

Use TODAY() when you need the current date, such as for ages, days overdue or due-date checks. Use NOW() only when the time of day matters too, such as hours since a ticket was opened. TODAY returns a whole number; NOW adds the time as a decimal, which can make date comparisons and day counts come out wrong.

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free