CSV vs Excel: what is the difference?
Both hold tables. One is a file format, the other is an application — and the distinction decides which one you should hand to your colleague, your script or your accountant.
Last updated: December 1, 2026
The short answer
CSV (Comma-Separated Values) is a plain-text file: rows of values separated by commas, one line per row. It has no formulas, no formatting, no sheets — just data. Excel is the application; the format it saves is .xlsx, a compressed package that can hold formulas, multiple worksheets, charts, colours and cell formatting.
A CSV opens in Excel perfectly well. What you lose is everything Excel adds on top of the data — and what you gain is a file that any program on earth can read.
Side by side
| CSV | Excel (.xlsx) | |
|---|---|---|
| What it stores | Raw values only | Values, formulas, formats, multiple sheets |
| File size | Tiny — plain text | Larger — zipped XML package |
| Formulas | No (saved as results only) | Yes |
| Worksheets | One table per file | Unlimited |
| Formatting | None — no colours or widths | Full formatting |
| Opens in | Everything: Excel, Sheets, scripts, databases | Excel, Sheets, LibreOffice, Numbers |
| Best for | Interchange, imports, automation, archives | Human review, reports, shared workbooks |
When CSV is the right choice
- Moving data between systems. Databases, CRMs, analytics tools and accounting packages all read CSV without complaints — and none of them handle XLSX reliably.
- Automation and scripts. Python's
csvmodule reads a CSV in three lines of code. Parsing XLSX needs a dedicated library. - Huge datasets. A million rows as CSV might be 80 MB; the same data as XLSX can be several hundred because the workbook carries styles and formulas alongside it.
- Archiving. Plain text does not rot. A CSV from 2005 opens today with nothing to install.
- Version control. A CSV is a text file, so Git shows exactly which value changed.
When Excel (.xlsx) is the right choice
- The file will be read by a person. Frozen header rows, colour-coded columns, number formats and conditional highlighting only exist in XLSX.
- You need formulas.
=SUMIF(), lookups and pivot tables require a workbook, not a text file. - Several related tables. Month tabs, assumptions, a summary sheet — CSV can only ever be one flat table.
- You are sending it to finance. They will want to audit your formulas. Paste a CSV in and they will rebuild everything by hand.
The gotchas people hit
- The comma is not universal. A CSV using commas opens in one broken column-splitting mess in locales where Excel expects semicolons. The fix is choosing the right delimiter at export — our converter has a Semicolon option for exactly this.
- Encoding. A CSV written in UTF-8 read as Windows-1252 turns
éintoé. Export as UTF-8 and tell your import tool. - Text that looks like a number.
00740becomes740the moment Excel opens a CSV;1-2can become a date. Prepend an apostrophe or import the column as text. - One table per file. Multi-page PDFs exported to CSV need a separator row to show where a page ended — our converter can add
- Page N -lines for this. - No undo. Formatting saved in XLSX survives round-trips; whatever you do to a CSV in Excel is gone when you close it.
A practical rule
Export CSV when a machine will read it next, export XLSX when a human will read it next. If you are not sure, produce both — the converter downloads either in one click, and keeping a CSV alongside an XLSX costs almost nothing in space.
Getting PDF data into either format
Picking the format only matters once you have the data. Drop a PDF into the converter and it detects the table structure, then hands you a CSV or an .xlsx with real rows and columns — no retyping. Start with the PDF-to-CSV walkthrough if you have never done it, or jump straight to PDF to Excel if you already know you need the workbook.