How to export an Excel sheet to CSV without losing the text
People ask for a CSV when they need something a program can read: a Python script, a database import, a git-friendly diff, or a colleague who does not have Excel. The useful question is not “can I click Save As.” It is “what actually gets written, and will the next program read it the way I expect?”
This page reads an .xlsx or legacy .xls workbook in your browser, shows a preview of one sheet, and writes a UTF-8 CSV (or TSV) back to you. The workbook is not uploaded. Password-protected files cannot be opened, because the decrypting would have to happen here with a password you should not be typing into a random website anyway.
- Choose the workbook. Drop it on the box above or use the file picker. The Excel engine is loaded from this site the first time you pick a file, not before.
- Pick a sheet if the file has more than one. A CSV file can only hold a single grid. Workbooks often have a summary sheet and a detail sheet; export them one at a time. The sample workbook has an Orders sheet and a Regional sales sheet so you can try the switcher.
- Check the preview. Look at dates, Chinese or other non-ASCII text, and any long identifiers. What you see is what will be written.
- Download CSV or TSV. Leave “Excel-safe long numbers” on if a person might open the CSV in Excel later. Turn it off if a script should see raw digits rather than a
="…"formula.
Use the button to build a small two-sheet workbook in memory, with a long order ID, a leading zero, and the name 张伟, then export it.
Values, not formulas
An Excel cell can hold a formula such as =B2*1.1 and a cached result such as 110. This exporter writes the calculated value it finds in the file, not the formula text. That is usually what a CSV consumer wants: the number that was on the screen. If the workbook was last saved without letting Excel recalculate, you will get the last cached value, which is also what Excel itself would have shown at that moment.
Dates need similar care. Internally, Excel often stores a date as a serial number, for example 44927 for a calendar day. Writing that serial into a CSV would be technically faithful and practically useless. When a cell is a date, or uses a date format, this tool writes the formatted date text from the workbook rather than the raw serial. If a date looks wrong in the preview, the cell was probably stored as a plain number with no date format; you will see the serial, and you can decide whether to fix the workbook first.
Encoding: making the CSV usable the second time
CSV is just text. It has no official encoding field. This download is always UTF-8, and it starts with a UTF-8 BOM (U+FEFF). Excel on Windows uses that signature to treat the file as UTF-8, which is how 张伟 and 上海 stay readable when someone double-clicks the result. Apple Numbers and Google Sheets also open this form.
The BOM is a compatibility convention. Most modern parsers skip it. A few strict ones will show  in front of the first header. If you are feeding the file to such a parser, strip the first character, or read the file as UTF-8-sig in Python. The alternative — writing UTF-8 with no BOM — makes those parsers happier and makes Excel on Windows more likely to garble Chinese again. This page sides with Excel compatibility, because that is the failure people write in about.
If you need to go the other way, from a CSV you already have into a workbook, use the CSV to Excel converter.
Sheets, merged cells, and file flavours
Only one sheet is written per download. Hidden sheets still appear in the list; a hidden sheet is hidden in Excel’s UI, not absent from the file. Very hidden VBA sheets, if they contain a grid, may also show up. Macro-enabled .xlsm workbooks are read for their cells, not for their macros; the CSV will not contain VBA.
Merged cells are flattened into a rectangular grid. The text stays in the origin cell, and the continuation cells are empty. That matches how most CSV exports behave and is easier for a program to read than a repeated value in every spanned cell.
Legacy .xls (Excel 97–2003) is supported by the same engine. If a file will not open, it may be password-protected, a worksheet that is actually a wrapper for something else, or a damaged archive. This page will not try to bypass a password.
What this page does not do
It does not combine every sheet into one CSV, and it does not export charts, pivot caches, or images. If the table you want is not in a file at all but on a web page in front of you, the Table to Excel & CSV Chrome extension can export it from the live page. This converter is for a workbook you already have on disk.
Frequently asked questions
Is my workbook uploaded?
No. The file is read in your browser. After the page and the Excel engine have loaded, you can work offline.
Why does the CSV start with a strange character in some editors?
That is the UTF-8 BOM, written so Excel can detect the encoding. Use a UTF-8-aware editor, or open the file with UTF-8-sig in Python.
Will long IDs stay intact if I open the CSV in Excel?
If you leave “Excel-safe long numbers” on, identifier-like values are written as ="123456789012345678", which Excel treats as text. Turn the option off for a raw-digit CSV meant for a script. The safest way to keep IDs intact inside Excel is to stay with .xlsx and text cells, or to use the scientific notation fixer if damage has already been done.
Can I export TSV instead?
Yes. TSV uses tabs and is convenient for pasting back into a spreadsheet. It does not include a BOM.
Is there a row limit?
No hard cap is imposed here, but a very large sheet can make the browser sluggish. The preview shows the first twelve rows; the download includes the whole sheet.
Is this affiliated with Microsoft Excel?
No. “Excel” refers to the common workbook formats. This is an independent tool.