Excel to CSV
Export one worksheet or every worksheet as CSV files
Excel to CSV — what it does
Export one worksheet — or every worksheet at once — from an Excel workbook to CSV. Formulas leave as their calculated values, formatting falls away, and what remains is the plain, portable text file that databases, scripts and import routines actually want to consume.
Worked example
The single worksheet of staff-5.xlsx exported with the default setting (one sheet); the file arrives as Staff.csv.
Input — staff-5.xlsx › Staff
name | email | department | start_date | salary Ann Lee | ann.lee@example.com | Sales | 2021-03-15 | 52000 Ben Ortiz | ben.ortiz@example.com | Engineering | 2019-11-02 | 88000 Chloe Park | chloe.park@example.com | Sales | 2023-06-01 | 47500 Dev Patel | dev.patel@example.com | Support | 2020-01-20 | 41000 Emma Rossi | emma.rossi@example.com | Engineering | 2022-09-12 | 91000
Output — Staff.csv
name,email,department,start_date,salary Ann Lee,ann.lee@example.com,Sales,2021-03-15,52000 Ben Ortiz,ben.ortiz@example.com,Engineering,2019-11-02,88000 Chloe Park,chloe.park@example.com,Sales,2023-06-01,47500 Dev Patel,dev.patel@example.com,Support,2020-01-20,41000 Emma Rossi,emma.rossi@example.com,Engineering,2022-09-12,91000
The file starts with a UTF-8 byte-order mark (invisible, but it makes Excel read accents correctly). Ticking 'all worksheets' on sales-2026.xlsx instead produced sales-2026-csv.zip containing Orders.csv, Returns.csv and Summary.csv.
When this tool helps
- Preparing workbook data for a system that only imports CSV.
- Extracting every sheet of a multi-tab workbook into separate files in one pass.
- Converting a colleague's formatted spreadsheet into data a script can parse.
How to use it
- Choose the Excel file.
- Select a worksheet, or tick export all worksheets.
- Process the export.
- Download the CSV file or files.
Accuracy, limits, and good practice
- CSV holds one table per file — merged cells, colours, charts and multiple header rows do not survive, by design.
- Check date columns after export: what CSV records is the formatted text, and reimporting tools may parse it differently.
- Long numbers such as card or account identifiers should be verified — the value exported is what Excel held, which may already be truncated.
- Export the sheet you actually need rather than all of them: a folder of CSVs named after forgotten scratch tabs is its own small mess.
Frequently asked questions
Do formulas come through?
Their results do. CSV is a value format, so the calculation logic stays behind in the workbook.
What encoding is the output?
UTF-8, which preserves accents and CJK text. Tell the receiving system the encoding if it asks.
How are multiple sheets delivered?
As one CSV per worksheet, so each file remains a single clean table.
What happens to merged cells?
CSV has no concept of merging, so the value lands in one cell and the rest come through empty.
What are the files named?
A single-sheet export is named after the worksheet (Staff.csv) and starts with a byte-order mark. The CSVs inside the all-sheets ZIP (<workbook name>-csv.zip) are named after each sheet but carry no byte-order mark, so non-ASCII text may need the encoding chosen by hand when Excel opens them.
How are dates and numbers written?
As each cell's displayed text: a date formatted yyyy-mm-dd becomes 2021-03-15, and a cell showing 24 becomes 24. Values containing commas, quotes or line breaks are wrapped in quotes.
Related tools on this site
- CSV to Excel — Convert CSV data into a standard XLSX workbook
- Excel Find & Replace — Find and replace text across one sheet or an entire workbook
- Excel to HTML Table — Convert a selected Excel worksheet into a responsive HTML table and downloadable webpage
Further reading: Cleaning a CSV export before you import it anywhere · CSV, JSON, YAML, XML and Markdown Tables: When Each Fits and How to Convert
Everything above runs inside this page. Excel to CSV needs no account, no upload, and no server round trip — close the tab and nothing is left behind.
Excel 轉 CSV能做什麼
從 Excel 活頁簿匯出單一工作表——或一次匯出全部工作表——成 CSV。公式以計算結果離開、格式全部褪去,留下的就是資料庫、腳本與匯入程式真正想要的純文字可攜檔案。
實際範例
以預設(單一工作表)把 staff-5.xlsx 唯一的工作表轉成 CSV,得到 Staff.csv。
來源:staff-5.xlsx › Staff
name | email | department | start_date | salary Ann Lee | ann.lee@example.com | Sales | 2021-03-15 | 52000 Ben Ortiz | ben.ortiz@example.com | Engineering | 2019-11-02 | 88000 Chloe Park | chloe.park@example.com | Sales | 2023-06-01 | 47500 Dev Patel | dev.patel@example.com | Support | 2020-01-20 | 41000 Emma Rossi | emma.rossi@example.com | Engineering | 2022-09-12 | 91000
產生的檔案:Staff.csv
name,email,department,start_date,salary Ann Lee,ann.lee@example.com,Sales,2021-03-15,52000 Ben Ortiz,ben.ortiz@example.com,Engineering,2019-11-02,88000 Chloe Park,chloe.park@example.com,Sales,2023-06-01,47500 Dev Patel,dev.patel@example.com,Support,2020-01-20,41000 Emma Rossi,emma.rossi@example.com,Engineering,2022-09-12,91000
檔案開頭帶有 UTF-8 位元組順序記號(看不見,但能讓 Excel 正確讀取重音字與中文)。改勾「全部工作表」對 sales-2026.xlsx 跑一次,得到的是 sales-2026-csv.zip,裡面有 Orders.csv、Returns.csv、Summary.csv。
什麼時候用得上
- 為只接受 CSV 匯入的系統準備活頁簿資料。
- 一次把多分頁活頁簿的每個工作表拆成獨立檔案。
- 把同事排版過的試算表轉成腳本能解析的資料。
使用步驟
- 選擇 Excel 檔案。
- 選定工作表,或勾選匯出全部工作表。
- 執行匯出。
- 下載 CSV 檔案。
精確度、限制與實務建議
- CSV 一檔一表——合併儲存格、顏色、圖表與多列標題都不會留下,這是格式本質使然。
- 匯出後請檢查日期欄:CSV 記錄的是格式化後的文字,再次匯入的工具可能以不同方式解析。
- 卡號、帳號等長數字請驗證——匯出的值就是 Excel 裡存的值,可能早已被截斷。
- 請只匯出真正需要的工作表:一整包以被遺忘的暫存分頁命名的 CSV,本身就是另一種混亂。
常見問題
公式會過去嗎?
結果值會。CSV 是數值格式,計算邏輯留在原活頁簿裡。
輸出是什麼編碼?
UTF-8,可保留重音字與中日韓文字。接收系統若詢問編碼,請告知 UTF-8。
多個工作表怎麼交付?
每個工作表各一份 CSV,讓每個檔案都維持單一乾淨表格。
合併儲存格會怎樣?
CSV 沒有合併的概念,值會落在其中一格,其餘幾格則是空白。
檔案怎麼命名?
單一工作表時以工作表名稱命名(Staff.csv),開頭帶位元組順序記號。全部工作表的 ZIP(「活頁簿名-csv.zip」)裡的 CSV 以各工作表命名,但沒有位元組順序記號,含非 ASCII 文字時在 Excel 開啟可能得手動指定編碼。
日期與數字怎麼寫?
寫的是每格顯示的文字:格式為 yyyy-mm-dd 的日期會寫成 2021-03-15,顯示 24 的格子寫成 24。含逗號、引號或換行的值會被引號包起來。
本站相關工具
- CSV 轉 Excel — 將 CSV 資料轉換為標準 XLSX 活頁簿
- Excel 尋找與取代 — 在指定工作表或整個活頁簿中尋找並取代文字
- Excel 轉 HTML 表格 — 將指定 Excel 工作表轉為響應式 HTML 表格與可下載網頁
延伸閱讀: 匯入之前先把 CSV 匯出檔清乾淨 · CSV、JSON、YAML、XML 與 Markdown 表格:各自適用的場合與轉換方法
以上步驟全部在這個頁面內完成,Excel 轉 CSV 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。