mygems

How to save an Excel file as CSV without losing data (2026 guide)

Save As, CSV UTF-8, done. Except only one sheet is saved, numbers are written as displayed, and some locales get semicolons. What to check before sending.

By mygems ·

File → Save As, choose CSV UTF-8 (Comma delimited), save. That's the whole procedure, and it works. What it doesn't tell you is what the CSV leaves behind: every sheet except the one you're looking at, every formula, and in some cases the precision of your numbers, because Excel writes values the way they're displayed, not the way they're stored. Here's what to check before you send the file to anyone.

The fast answer

  • Windows: File → Save As → Browse, then Save as type: CSV UTF-8 (Comma delimited) (*.csv).
  • Mac: File → Save As, File Format: CSV UTF-8 (Comma-delimited).
  • Pick the UTF-8 one, not plain CSV (Comma delimited), or accented and non-Latin characters can turn into ?.
  • Only the active sheet is saved. Repeat for each sheet.
  • Formulas are saved as their results. Keep the .xlsx as your working copy.

Which CSV option to pick

Excel offers several, and the names don't say what differs.

OptionWhat it writesUse it when
CSV UTF-8 (Comma delimited)UTF-8 with a byte order markAlmost always
CSV (Comma delimited)Your system's legacy code page, often Windows-1252An old system asks for it by name
CSV (Macintosh) / CSV (MS-DOS)Old Mac or DOS code pages and line endingsPractically never

The plain CSV option can't represent characters outside its code page: Chinese, Japanese, Cyrillic, many emoji, sometimes even a curly quote. They are written as ?, and the original is gone from the file. UTF-8 holds everything.

The byte order mark that the UTF-8 option adds is three invisible bytes at the start of the file. Excel needs it to read the file back correctly. A few other programs show it as junk in the first column name, id; that's a two-minute fix.

What doesn't survive

A CSV is plain text: rows, columns, commas. Excel will warn that "some features might be lost". Specifically:

  • Other sheets. Only the active one is written. There's no warning about the others.
  • Formulas. Each cell holds its last calculated result. Reopen the CSV and =SUM(B2:B90) is just a number.
  • Formatting. Colours, bold, column widths, merged cells, borders, conditional formatting.
  • Charts, images, comments, data validation, filters. All gone.
  • Multiple values per cell. Merged cells keep their value in the top-left cell and leave the others empty.

None of this is a bug. It's what CSV is. The CSV vs XLSX comparison covers when that's a feature.

The displayed-value trap

This one catches people who've saved CSVs for years. Excel writes each cell as it appears on screen, using its number format:

  • A cell holding 3.14159 formatted to two decimals is saved as 3.14.
  • A long ID displayed as 1.23457E+15 is saved as 1.23457E+15, and the original digits are lost.
  • A date formatted as Mar-26 is saved as Mar-26, which nothing can read back as a date reliably.
  • A number formatted as currency is saved with the symbol and thousands separator: "$1,234.50".

The fix: before saving, format the columns to show exactly what you want in the file. Use General or Number with enough decimals for numbers, Text for IDs and codes, and a custom yyyy-mm-dd format for dates, which every system reads.

Semicolons instead of commas

In countries where the decimal separator is a comma (Germany, France, Spain, Brazil and many others), Excel saves "comma delimited" files with semicolons, because a comma would collide with the decimals. That's correct locally and breaks most imports elsewhere.

On Windows, the delimiter comes from the system list separator: Settings → Time & language → Language & region → Administrative language settings → Change system locale formats → Additional settings → List separator. Change it to a comma for the save, and change it back after. Or save from Google Sheets, which always uses commas.

Saving every sheet

Excel has no built-in "save all sheets as CSV". Options:

Python, which writes one file per sheet:

import pandas as pd

for name, sheet in pd.read_excel("book.xlsx", sheet_name=None, dtype=str).items():
    sheet.to_csv(f"{name}.csv", index=False)

dtype=str keeps the values as the file has them, so IDs don't become floats on the way through.

csvkit, one sheet at a time, from the terminal:

in2csv --sheet "Sales" book.xlsx > sales.csv

LibreOffice, headless, as UTF-8 (the 76 is the encoding):

soffice --headless --convert-to "csv:Text - txt - csv (StarCalc):44,34,76" book.xlsx

In Google Sheets and Numbers

Google Sheets: File → Download → Comma Separated Values (.csv). It saves the current sheet only, always as UTF-8 with commas and no byte order mark. It also writes values as displayed, so the same formatting check applies.

Numbers: File → Export To → CSV, where you can pick the text encoding. A spreadsheet with several tables exports one CSV per table, into a folder.

Check the file before you send it

Open the CSV in something that isn't Excel, because Excel will reformat it again on the way in and hide the problems you're checking for. A text editor works. Look for:

  • the header row, and the right number of columns on each row;
  • leading zeros still present in IDs and postcodes;
  • dates in one consistent format;
  • numbers without currency symbols or rounding you didn't intend.

If you're on a phone when the question comes up, a CSV app shows the file as it really is, cell by cell, rather than as a spreadsheet's interpretation of it.

CSV Editor - Smart CSViPhone & iPad

Opens the CSV exactly as written on iPhone and iPad, so you can check the delimiter, leading zeros and dates before sending, and fix a cell if needed.

What it does

And if the CSV is going to be opened in Excel again at the other end, here's how to stop Excel changing it on the way back in.

Questions

How do I save an Excel file as CSV?
Choose File → Save As, then pick CSV UTF-8 (Comma delimited) as the file type, and save. Only the active sheet is saved, and formulas are saved as their current results.
What is the difference between CSV and CSV UTF-8 in Excel?
CSV UTF-8 can store every character, including accents and non-Latin scripts, and adds a byte order mark so Excel can read it back. Plain CSV uses your system's legacy code page, and characters outside it are saved as question marks.
Why does Excel save my CSV with semicolons?
Because your system uses a comma as the decimal separator, so Excel uses the system list separator, a semicolon, between fields. Change the list separator in Windows region settings, or export from Google Sheets, which always uses commas.
How do I save all sheets in Excel as CSV?
Excel only saves the active sheet. Save each sheet separately, or use a script: pandas read_excel with sheet_name=None returns every sheet, and each can be written with to_csv.
Why did my numbers change when I saved as CSV?
Excel writes values as they are displayed. A number formatted to two decimals is saved rounded, and long numbers shown in scientific notation lose their digits. Set the columns to General, Number or Text before saving.
Does saving as CSV keep formulas?
No. Each formula cell is saved as its last calculated value. Keep the original .xlsx if you need the formulas.

mygems — Builds CSV Editor and Smart CSV Viewer, two apps that exist because spreadsheets give up on big files.