How to Convert XLSX to CSV

The simplest way to convert XLSX to CSV is in Excel itself: **File → Save As → CSV UTF-8 (Comma delimited)**. If Excel isn't available or you need to convert in bulk, Google Sheets, Python, or `xlsx2csv` from the command line all work.

Generate matching mock data right now

No sign-up, runs 100% in your browser, exports straight to CSV.

In Excel

  1. Open the XLSX file.
  1. Click the tab of the sheet you want (CSV stores one sheet).
  1. **File → Save As → CSV UTF-8 (Comma delimited) (*.csv)**.
  1. Acknowledge the warning that formulas/formatting will be lost.

In Google Sheets

Upload the XLSX to Google Drive, double-click to open in Sheets, then File → Download → Comma-separated values (.csv).

In Python (pandas)

import pandas as pd
pd.read_excel('input.xlsx').to_csv('output.csv', index=False)

Command line (xlsx2csv)

pip install xlsx2csv
xlsx2csv input.xlsx output.csv

Add -a to export every sheet into separate CSV files.

Frequently asked questions

Will I lose formulas?

Yes — CSV stores only values. The formula evaluates and only the result is saved.

How do I convert all sheets?

Use `xlsx2csv -a` from the command line, or loop with pandas: `for s in pd.ExcelFile(f).sheet_names: ...`.

Related guides

Start generating free mock CSVs

High-fidelity mock tables for tests, demos, or models. No sign-ups, completely local.