Excel to CSV ConverterExcel to CSV
No workbook open
Drop an .xlsx, .xlsm or .xls file here
Drop an .xlsx, .xlsm or .xls here, or click to pick one. It opens inside this tab and the workbook goes to no server.
What a spreadsheet loses on the way to CSV
CSV is the oldest export format any spreadsheet program has, and it is still the one every loader, mainframe job and command-line tool understands without an argument. Converting a worksheet to it is mostly bookkeeping: read the grid, write each row back out with commas between the fields, quote what needs quoting. The part worth slowing down for is what a cell actually holds before that happens, because the type it had in Excel does not survive the trip.
Dates are the easier half. Behind every date cell Excel keeps a serial day count with a display format painted on top: the raw value is 46243, the text you see is 8/9/26, which is either August 9th or September 8th depending on whose regional settings opened the file. This page reads the underlying value and writes ISO 8601, 2026-08-09T12:34:56.000Z, into the CSV cell as plain text, so the ambiguity does not travel with it.
Long identifiers are where CSV genuinely differs from converting the same workbook to JSON. A cell Excel stored as text still comes through byte-for-byte here: 8901240544102066246 keeps every digit, 007 keeps its zeros. A cell stored as a number already lost precision before this page ever opened the file: a numeric cell holds only about 15 significant digits, so a 19-digit account number typed into a General column had its last four digits zeroed the moment it was entered, and no converter, this one included, can put those digits back. JavaScript numbers being IEEE-754 doubles just means the rounding happens a second time on the way through, which is why this page counts and names the cells where it can tell.
Here is the part that only matters for CSV. In the JSON output of the sibling page, a text cell and a number cell still look different once they land: one is quoted, one is not, so the type survives in the shape of the file. CSV has no such marker. Quotes in a CSV field mean "this value contains a comma, a quote or a line break," not "this value is text," so once 8901240544102066246 and 007 are written out, they are both just digits on a line with nothing to tell a later reader which one was supposed to stay exact. That is not a defect in this converter: it is what CSV is. Anyone consuming the file downstream has to be told separately which columns are identifiers, or has to guess.
Converting a workbook
- Choose or drop your file – Drop an .xlsx, .xlsm or .xls on the left pane, or press Upload and choose one. Parsing happens in the browser, which is what you want when the sheet is a customer list headed for a CSV loader. To try it first, Sample builds a two-tab subscriber and cell-site workbook in memory and converts its first tab.
- Pick the sheet – Every tab in the workbook appears in the Sheet dropdown. Only the tab you pick is turned into CSV rows, and choosing another one rebuilds the output from that tab.
- Choose how much gets quoted – Only where needed follows RFC 4180 and adds quotes only around a value that contains a comma, a double quote or a line break, which keeps the file small. Every field wraps every value, for the older import tools that reject a file without them.
- Check the warning if one appears – An amber panel under the row and column counts means a numeric cell carried more digits than Excel holds. It lists up to four addresses, such as C2, plus a count of any others, so you know where to look in the original workbook.
- Copy or download – Comma-separated text with plain LF line endings. From here CSV to Table and CSV Formatter are one click away if you want to look at it differently or reshape the delimiter.
Set an ID column to Text in Excel before any values go in. Switching a column that already holds numbers over to Text changes nothing about what is stored: the digits Excel dropped stay dropped, and the cell just displays what survived, which is why the column can look repaired when it is not.
Four columns, and two you can no longer tell apart
The first two columns hold identical-looking digits in the workbook (one cell was formatted as Text, the other as a number) but by the time they are CSV, both are just unquoted digits on a line. The number column already lost its tail in Excel before this page ever saw it; the text column did not, and CSV has no way left to say which is which.
| iccid_text | iccid_num | postcode | activated |
|---|---|---|---|
| 8901240544102066246 | 8901240544102066246 | 007 | 09/08/2026 |
Column 1 formatted as Text · column 2 as a number
iccid_text,iccid_num,postcode,activated 8901240544102066246,8901240544102066000,007,2026-08-09T00:00:00.000Z # iccid_num flagged: digits lost before the file was saved
When you would use this
Loading into a database or a bulk import tool
A warehouse staging table, PostgreSQL's COPY, MySQL's LOAD DATA INFILE: nearly every bulk loader wants a flat delimited file, not JSON, and CSV is the format all of them agree on. The precision warning matters most here, because a mangled identifier will not fail the import: it will just quietly attach to the wrong row.
Feeding a system that has no JSON parser
Plenty of the tooling that still runs a business (mainframe batch jobs, older ETL pipelines, EDI-adjacent formats) reads delimited text and nothing structured. The workbook usually starts life in Excel regardless, so this conversion sits between the two more often than anyone plans for.
Turning a workbook into something you can diff
Unzip an .xlsx and you find a dozen XML parts and a shared-strings table, none of which reads sensibly in a pull request. A CSV export of the one sheet that matters can sit in version control next to the code that reads it, and CSV Formatter normalises quoting afterwards if two exports need to line up byte for byte.
Checking an export by reopening it
Double-clicking a CSV hands it straight back to Excel, which re-guesses every column's type from the digits alone: the same guessing that caused the original rounding, run again on the way back in. A column that came through this page as exact text can still get reinterpreted as a number the next time someone opens it carelessly; the FAQ below covers how to stop that.
What this converter does carefully
- Quoting follows RFC 4180, and only wraps a field when it actually needs it: a comma, a quote or a line break inside the value. Every field is there for loaders that insist on quotes regardless.
- Text cells are written as they were typed.
007keeps both zeros and a text-formatted ICCID keeps all 19 digits, unquoted, because nothing about them needs quoting. - Date cells come out as ISO 8601 text, so a reader in Berlin and a reader in Boston load the same day from the same line.
- Damaged numbers are reported, not hidden. A numeric cell too long to have survived Excel is counted and its address shown, because the digits cannot be recovered and you should know which rows to check.
- A field with leading or trailing spaces is quoted even though RFC 4180 allows it bare: every spreadsheet strips that whitespace on import otherwise, so quoting is the only way to say the space is data.
- One sheet per file. CSV has no notion of tabs, so you pick the sheet and that sheet alone becomes the file.
- Blank cells stay blank rather than collapsing the row, so the field count stays consistent line to line.
- The workbook stays on your machine. It is unzipped and read in this tab.
Questions people actually ask
Why is my ID wrong by a few digits?
The damage was done in Excel, the moment the value went into a numeric cell, and not by this converter. Excel holds roughly fifteen significant figures per number, so a 19-digit account number keeps its leading digits and the rest turn to zeros when the file is saved. The amber panel lists the cells this happened to. To get the real values back, format the column as Text and enter them again from wherever they originally came from.
Does the CSV still say which columns were text and which were numbers?
No, and this is different from converting the same file to JSON. A CSV field is just characters between delimiters: quoting a field marks it as containing a comma or a line break, not as being text rather than a number. Once 007 and 42 are written out, nothing in the file itself says one started life as a number and the other did not. If that distinction matters downstream, it has to be documented separately, or the destination system has to be told which columns to treat as identifiers.
If I open the CSV back in Excel, will the numbers round again?
Possibly, and this catches people who treat the CSV as a safe archive. Double-clicking a CSV runs Excel's ordinary text import, which guesses each column's type from what the digits look like: a long ID gets reinterpreted as a number and re-rounded, a value like 007 can lose its leading zeros, on the way in this time rather than the way out. Import through Data > From Text/CSV and set the identifier columns to Text explicitly, rather than opening the file directly.
What happens to formulas?
The CSV gets the value Excel cached the last time the formula ran; the formula text itself is not written out. A workbook saved with calculation set to manual can carry an out-of-date cached value, so if the numbers matter, open it in Excel, let it recalculate, save, and convert that copy.
Does this treat the first row as a header?
No, on purpose. Every row, whatever it contains, is written out as one CSV line exactly as it appears in the sheet: CSV does not have a concept of column names, so there is nothing to key by and nothing to ask about. If your sheet's first row happens to be a header, it becomes the first line of the file, which is the convention every CSV reader already expects.
Does it handle .xls as well as .xlsx?
Yes, and .xlsm too. An .xlsx or .xlsm file is a zip archive of XML parts laid out by ECMA-376, while .xls is the binary BIFF format Excel used up to 2003. This page reads both, so the CSV comes out the same whichever one you have.
Related tools
Worth reading
- SheetJS documentation – The parser behind this page; its cell-object docs cover the stored value and type each CSV field is built from