Why export Excel to CSV
CSV is the universal import format. Databases, CRMs, email marketing tools, accounting software and scripts all read it, while many of them cannot open an Excel workbook. Exporting to CSV is usually the first step in moving spreadsheet data anywhere else.
This converter reads .xlsx files, older .xls files and OpenDocument .ods files with SheetJS, takes the first sheet and writes each row as a CSV line. Cells are exported as Excel displays them, so formulas contribute their results and formatted numbers keep their appearance.
XLSX vs CSV at a glance
| Feature | XLSX | CSV |
|---|---|---|
| Full name | Excel Open XML Spreadsheet | Comma-Separated Values |
| Type | Spreadsheet workbook | Tabular data |
| Introduced | 2007 (Excel 2007) | Early 1970s; described by RFC 4180 in 2005 |
| Created by | Microsoft; standardized as ECMA-376 and ISO/IEC 29500 | No single owner |
| Structure | Several sheets of cells, stored as zipped XML | Flat rows and columns |
| Comments | Yes, as cell comments and notes | No |
| Data types | Numbers, text, dates, booleans and formulas | Text only, no built-in types |
| Best for | Spreadsheets with formatting, formulas and several sheets | Spreadsheet exports and database imports |
| Support | Excel, Google Sheets, LibreOffice and Numbers | Excel, Google Sheets, databases and every language |
| MIME type | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | text/csv |
How to convert XLSX to CSV
Step 1: Put the right sheet first
Only the first sheet is exported, so move the sheet you need to the first tab if necessary.
Step 2: Drop the workbook
Select the .xlsx, .xls or .ods file.
Step 3: Convert to CSV
The first sheet is read and written as comma-separated values.
Step 4: Download the CSV
Import it into your database, app or script.
Export details
Displayed values
Numbers and dates are exported in the format shown in Excel.
Formula results
Cells with formulas export their last calculated values.
Blank rows skipped
Empty rows are left out of the CSV.
Proper quoting
Values containing commas, quotes or line breaks are quoted.
Common reasons to export CSV
Database imports. Load spreadsheet data into MySQL, PostgreSQL or SQLite.
Marketing and CRM tools. Upload contact lists to email platforms.
Data processing. Read the data with Python, R or command-line tools.
Version control. Track changes to tabular data as plain text.
Only the first sheet is exported
CSV holds one table, so a multi-sheet workbook cannot fit in a single file. The converter exports the first sheet in tab order. To export another sheet, drag it to the first position in Excel or Google Sheets and save, or copy it into a new workbook.
Merged cells keep their value in the top-left cell of the merged area, and the other cells are empty, which is how CSV represents them.
Formatting, formulas and encoding
Formulas are not exported, only their results as stored in the file. If a workbook was never recalculated, for example one generated by a script, formula cells may be empty.
The CSV is saved as UTF-8 without a byte order mark, which suits databases and scripts. If Excel shows garbled accents when you reopen the CSV, use Data, From Text/CSV and choose UTF-8.
- Kept: values as displayed, text, formula results.
- Dropped: formulas, colors, fonts, comments, charts.
- Other sheets: move them first to export them.
Tips for Excel to CSV
- Remove title rows and notes above the header before converting.
- Set number formats in Excel first if you need a specific decimal or date style.
- Unmerge cells to avoid gaps in the exported table.
- Need JSON instead? Choose JSON as the target for an array of row objects.
XLSX to CSV questions
Which sheet is exported?
The first sheet in the workbook's tab order.
Are formulas kept?
No. CSV stores values only, so each formula cell exports its calculated result.
Does it support .xls and .ods files?
Yes. Older Excel files and OpenDocument spreadsheets are read as well.
What delimiter is used?
A comma, with double quotes where values need them.
Why do dates look like they do in Excel?
Cells are exported as displayed, so the date format set in the workbook is used.
Is the workbook uploaded?
No. SheetJS reads the file in your browser.