About this tool
Convert an Excel (XLSX) worksheet to CSV or TSV, choosing the sheet, comma, semicolon or tab delimiter, UTF-8 BOM and formula protection, with a preview first. Files are processed in your browser.
Typical uses
- Turn an Excel report into CSV for a database or system import
- Export one worksheet as TSV for a script
- Guard against CSV injection when exporting
How to use
Upload XLSX, select a worksheet and inspect the preview. Formulas use cached results from the file.
Choose comma, semicolon or Tab, UTF-8 BOM and formula protection. Convert and download, or continue to table cleanup.
XLSX: 10 MB, 50 MB expanded, 20,000 records, 200 columns and 200,000 cells. Missing formula caches and unsafe numbers raise errors. CSV drops styling and prefixes risky cells with an apostrophe by default. Excel may auto-convert IDs when opening CSV.
What each kind of Excel cell becomes in the CSV
A CSV holds text only, so the tool writes the value that is stored in each cell, not what Excel shows through its number format. The left column is what the .xlsx file stores (value · number format); the middle column is the exact CSV text. Every row was produced from a real workbook:
Date and time cells follow three rules, all evaluated in UTC: (1) a date at midnight becomes YYYY-MM-DD; (2) a time-only cell, whose date part is Excel’s 1899-12-30 base, becomes HH:MM:SS; (3) any other date-time keeps the full ISO 8601 timestamp, such as 2024-03-01T18:00:00.000Z. The same applies when a formula’s cached result is a date.
| Stored in the XLSX · format | Text in the CSV / message | Notes |
|---|---|---|
| 45352 · yyyy-mm-dd | 2024-03-01 | Rule 1: a date at exactly UTC midnight is written as YYYY-MM-DD |
| 45352.75 · yyyy-mm-dd hh:mm | 2024-03-01T18:00:00.000Z | Rule 3: any other date with a time keeps the full ISO 8601 UTC timestamp (the fraction 0.75 = 18:00) |
| 0.6041666… · hh:mm | 14:30:00 | Rule 2: a time-only cell sits on Excel’s 1899-12-30 base date and is written as HH:MM:SS |
| 0.125 · 0.0% | 0.125 | Percentage formatting is dropped; the underlying decimal is written |
| 1234 · "¥"#,##0.00 | 1234 | Currency symbols, thousands separators and fixed decimals are display formatting and are not written |
| TRUE | true | Booleans become lowercase true / false |
| Q1 · A1:C1 | Q1,Q1,Q1 | Every cell of a merged range receives the top-left value, not just the first one |
| site → https://example.com | site | A hyperlink keeps only its display text; the URL is not exported |
| A + B | AB | Partly bold or coloured text is joined into plain text |
| =1+1 · 2 | 2 | The result saved in the file is used; nothing is recalculated |
| =A2 | A formula has no cached result. Recalculate and save in Excel before converting. | Formulas written by a script and never calculated and saved in Excel have no result |
| 12345678901234567890 | A long numeric ID exceeds safe precision. Store it as text in the source workbook. | Integers above 9,007,199,254,740,991 are already altered when read, so the tool refuses instead of writing a wrong number. Excel itself keeps only 15 significant digits |
| #DIV/0! | The worksheet contains error cells. Correct them first. | An error value such as #DIV/0! or #N/A stops the whole sheet |
- Hidden rows and columns are exported too, and an active filter does not change the result. If you only want visible data, delete the hidden part in Excel first or filter after exporting.
- The “Worksheet” list shows every sheet; one sheet is exported at a time. The file is named after the sheet: “Sales 2024” → Sales 2024.csv, “Q1 "final"” → Q1 _final_.csv, “.hidden” → hidden.csv (\ / : * ? " < > | become _, leading dots are removed).
- After reading, the “rows × columns” line counts the heading row as a row. The preview shows the first 20 rows and 15 columns and cuts cells after 240 characters; the export is complete.
Formula protection, delimiters and the BOM
“CSV formula protection” is on by default. It targets what OWASP calls CSV injection: cells starting with = + - @, a tab or a line break may be treated as formulas when a spreadsheet program opens the file. With protection on, the tool puts an apostrophe in front of such cells, but plain numbers, including signed numbers and scientific notation, are left alone. The results below come from the tool's own function:
| Cell text | Written to the CSV | Why |
|---|---|---|
| =SUM(A1:A3) | '=SUM(A1:A3) | A formula |
| +86 138 0013 8000 | '+86 138 0013 8000 | Starts with + and contains spaces, so it is not a number: phone numbers get the apostrophe too |
| -12.5 | -12.5 | A signed number is unchanged |
| +1 | +1 | Same |
| 1e5 | 1e5 | Scientific notation counts as a number |
| - | '- | A lone minus sign is protected |
| -1-2 | '-1-2 | An ID that looks like arithmetic is protected |
| @channel | '@channel | A mention starting with @ |
| ␠=1+1 | ' =1+1 | Leading spaces are skipped before checking (␠ marks a space) |
| 2024-03-01 | 2024-03-01 | Date text starts with a digit and is not touched |
| =1+1 | '=1+1 | Full-width = + - @ are protected the same way |
- The apostrophe becomes part of the data. When the CSV is meant for a database or script rather than for people opening it in a spreadsheet, turn protection off; otherwise a phone number such as +86 138… is stored as '+86 138….
- Following the OWASP list, the check covers ASCII = + - @, the full-width = + - @ (last row above) and cells starting with a tab, carriage return or line feed.
- “Output delimiter” offers comma, semicolon or Tab; with Tab the extension becomes .tsv. Lines end in CRLF. Cells containing the delimiter, a double quote, a line break or a leading/trailing space are wrapped in double quotes and inner quotes are doubled, as RFC 4180 describes.
- UTF-8 BOM is ticked by default: the file starts with the three bytes EF BB BF (the UTF-8 byte order mark). Untick it when the receiving system rejects a BOM.
For example, this four-row, three-column sheet exports with the default settings to 106 bytes including the BOM, line by line:
- name,note,phone
- Ada," padded ",'+86 138 0013 8000
- 小明,"a,b","say ""hi"""
- Zoé,"line1↵line2",'=1+1
The line break inside the last record stays inside its quotes (shown as ↵), so the file has five physical lines but four records. Anything that counts records by counting lines will be off by one; read it with a CSV parser that understands quotes.
Messages and what to do about them
After “Read and preview” the tool checks the file type, size, the archive inside the XLSX and the number of sheets, then reads the chosen sheet cell by cell. Any problem stops it with one of these messages; it never writes a CSV with cells missing:
| Message | Cause and fix |
|---|---|
| Supported files: CSV, TSV, TXT and XLSX. | Only files ending in .xlsx are read. Save .xls, .xlsm or .ods files as .xlsx in your spreadsheet program first |
| Each XLSX file must be at most 10 MB. | The file is over 10 MB. Remove unneeded sheets and images and try again |
| The XLSX expands beyond 50 MB or contains too many entries. | An XLSX is a ZIP package. It is refused when it expands beyond 50 MB or holds more than 500 parts, for example because of many embedded images |
| A workbook must contain 1–50 worksheets. | The workbook has more than 50 sheets |
| Limit: 20,000 rows, 200 columns and 200,000 cells including headers. | The chosen sheet has more than 20,000 records plus one heading row, 200 columns or 200,000 cells. A single stray value far away, even a space, also extends the range; delete the extra rows and columns and save |
| The table has no content to convert. | The chosen sheet is empty. Pick another sheet |
| A formula has no cached result. Recalculate and save in Excel before converting. | Open the file in Excel or compatible software, let it recalculate, save it so the results are stored, and read it again |
| A long numeric ID exceeds safe precision. Store it as text in the source workbook. | Format that column as Text in the source and re-enter the IDs, or type them with a leading apostrophe |
| The worksheet contains error cells. Correct them first. | Fix error values such as #DIV/0! or #N/A in the source, or replace them with blanks |
| The worksheet contains an invalid date. | A date cell holds a value that cannot be turned into a valid date; check that cell’s number |
| The workbook contains an unsupported cell type. Convert it to plain text and retry. | A cell holds an object type the tool does not read. Paste it back as a plain value |
| Output exceeds 10 MB. Use smaller batches. | The CSV would be larger than 10 MB |
| Could not read or convert this file. Check the format, selected encoding and data size. | The file is damaged or is not really an XLSX package, for example an .xls file whose extension was changed |
After converting you can choose “Continue to table cleanup”: the current rows are handed to the table cleanup tool as an XLSX, together with the “First row contains headings (XLSX / cleanup)” setting.
Sources
Frequently asked questions
How are formulas handled?
The cached results saved in the file are used. Formulas without cached results raise an error; nothing is recalculated.
Why do IDs change when Excel opens my CSV?
Excel may auto-convert long numbers and drop leading zeros. Import as text or keep XLSX when IDs matter.
File size limits?
XLSX up to 10 MB (50 MB expanded), 20,000 records, 200 columns and 200,000 cells.
Suggest an improvement to this tool
Missing an option, something awkward to use, or a wrong result? Let us know.