PrivateCSV

How to convert XLS or XLSX to CSV

To convert an Excel file to CSV, open it in Excel, choose File > Save As (or Save a Copy), pick CSV UTF-8 (Comma delimited) as the file type and click Save. Excel saves only the sheet that is open, so repeat for each sheet you need. The same works for old .xls files and for newer .xlsx files. Below: the steps for Mac, Google Sheets and LibreOffice, how to convert without Excel, and what to check before you send the CSV anywhere.

Last updated

In Excel for Windows

  1. Open the .xls or .xlsx file and click the tab of the sheet you want to export.
  2. Go to File > Save As (File > Save a Copy in Microsoft 365) and choose where to save.
  3. In Save as type, choose CSV UTF-8 (Comma delimited) (*.csv).
  4. Click Save. Excel warns that only the active sheet is saved and that some features may be lost: click OK or Yes.

Close the CSV without saving it again from Excel. If you reopen the CSV in Excel and save it, Excel may change dates and long numbers on the way.

In Excel for Mac

  1. Open the workbook and select the sheet.
  2. Choose File > Save As.
  3. In File Format, choose CSV UTF-8 (Comma-delimited) (.csv).
  4. Click Save, then confirm that only the current sheet is saved.

Online, without Excel

Drop the file in Excel to CSV (for .xlsx, .xls and .ods) or XLS to CSV (for old Excel 97-2003 files). You choose the sheet and the delimiter (comma, semicolon or tab), dates are written as 2024-03-04 and the CSV is UTF-8. The conversion runs in your browser, so the workbook is never uploaded, which matters for client lists, payroll or bank exports.

In Google Sheets

  1. Upload the Excel file to Google Drive and open it with Google Sheets (or use File > Import in a blank sheet).
  2. Select the sheet you want.
  3. Choose File > Download > Comma-separated values (.csv).

Google Sheets exports the current sheet in UTF-8 with commas. It does not let you pick another delimiter.

In LibreOffice Calc

  1. Open the file and select the sheet.
  2. Choose File > Save As, set the file type to Text CSV (.csv) and tick Edit filter settings.
  3. Click Save, then Use Text CSV Format.
  4. In the export options, set Character set to Unicode (UTF-8), the Field delimiter to a comma (or semicolon) and click OK.

Check the CSV before you use it

Common problems after saving an Excel file as CSV
What you seeWhyFix
Accents or € shown as ? or éSaved as CSV (Comma delimited), not UTF-8Save again as CSV UTF-8
Semicolons instead of commasRegional list separatorChoose the delimiter in a converter
Only one sheet in the CSVCSV holds one tableSave each sheet as its own CSV
1.23457E+15 instead of the full IDCells saved as displayedWiden the column or format it as Text first
Leading zeros goneLost when the CSV was reopened in ExcelCheck the CSV in a viewer, not in Excel

To see the CSV exactly as it is, open it in the CSV Viewer rather than Excel, and run it through the CSV Validator if the program you import into rejects it.

Many files or a big workbook

  • Several workbooks to merge first: combine them with Merge Excel files, then save the result as CSV.
  • A CSV too big for the target program: cut it into parts with the CSV splitter.
  • Only some columns needed: export the sheet, then keep what you need with Extract columns.

See Merge Excel files, the CSV splitter and Extract columns. Going the other way? Read How to convert CSV to Excel.

Frequently asked questions

How do I convert XLS to CSV without Excel?

Upload the file to Google Sheets and choose File > Download > Comma-separated values, open it in LibreOffice Calc (free) and use File > Save As > Text CSV, or use an online converter. PrivateCSV's Excel to CSV and XLS to CSV tools do it in the browser without uploading the file.

Which CSV format should I pick in Excel?

Pick CSV UTF-8 (Comma delimited). The plain CSV (Comma delimited) option uses your system's legacy encoding, so accents, € signs and non-Latin text can turn into question marks. Only pick another option if the program you import into asks for it.

How do I save all the sheets of a workbook as CSV?

A CSV file holds one table, so Excel saves only the active sheet. Select each sheet in turn and save it as its own CSV file, or use a converter where you choose the sheet each time.

Why does my CSV use semicolons instead of commas?

Excel uses the list separator of your regional settings. In many European countries that is a semicolon, because the comma is the decimal mark. Choose the delimiter yourself with a converter, or change the list separator in the Windows region settings.

Are formulas kept when I save as CSV?

No. A CSV file stores text only, so each formula is replaced by its result. Formatting, colours, charts, comments and extra sheets are dropped as well. Keep the original .xls or .xlsx file if you need them.

What is the difference between XLS and XLSX?

XLS is the binary format of Excel 97-2003; XLSX is the zipped XML format used since Excel 2007. Both convert to CSV the same way. Old XLS sheets stop at 65,536 rows, XLSX sheets at 1,048,576.