What Is a CSV File? How to Open, Create and Fix Common Problems
You downloaded a report, exported your contacts or got a file from a colleague, and it ends in .csv. CSV is the most common way data moves between apps, and also one of the most commonly mangled. Here's what a CSV file is, how to open and create one, and how to avoid the problems that quietly break your data.
A CSV file is a plain-text file that stores a table. Each line is a row, and commas separate the values in each row. CSV stands for comma-separated values. Because it's just text, almost every program can read it: Excel, Google Sheets, CRMs, email tools, banking portals, databases and code.
What a CSV file looks like inside
Open a CSV in a text editor and you'll see something like this:
name,email,company,deal_size
Priya Shah,[email protected],Brightline,12000
Daniel Okafor,[email protected],"Nordgate, Inc.",8500
Maya Chen,[email protected],Harbor,15000
- The first line is usually the header row with column names.
- A value that contains a comma, like “Nordgate, Inc.”, is wrapped in double quotes so it isn't split into two columns.
- A quote inside a value is written as two double quotes (
"").
There's no formatting, no formulas, no colors and only one sheet. That simplicity is the point: CSV is the lowest common denominator for moving data.
CSV vs. Excel (XLSX)
| CSV | Excel (.xlsx) | |
|---|---|---|
| What it stores | Values only, as plain text | Values, formulas, formatting, charts |
| Sheets | One | Many |
| Who can open it | Almost any app or text editor | Spreadsheet apps |
| Best for | Importing and exporting between systems | Working with, analyzing and presenting data |
How to open a CSV file
- Excel (Windows or Mac): double-click works, but Excel will guess each column's type. For data you care about, use Data > From Text/CSV instead. It shows a preview where you can choose the file encoding and the delimiter, switch off data type detection, or click Transform Data to set the type of each column before anything is loaded.
- Google Sheets: File > Import > Upload, then choose whether to create a new sheet or replace the current one. Turn off “Convert text to numbers, dates and formulas” if you need values kept exactly.
- Apple Numbers: open the file directly from Finder or Numbers.
- Any text editor: Notepad, TextEdit or VS Code show the raw file, which is the best way to check what's really in it.
How to create a CSV file
- Excel: File > Save As, then choose CSV UTF-8 (Comma delimited). Pick UTF-8 if your data contains accents, non-English names or emoji.
- Google Sheets: File > Download > Comma-separated values (.csv). Only the current sheet is exported.
- Numbers: File > Export To > CSV.
- By hand: type the rows in a text editor, separate values with commas, and save the file with a
.csvextension.
Tip: Saving an Excel workbook as CSV keeps only the active sheet and throws away formulas and formatting. Keep the .xlsx as your working copy and export a CSV only when another system needs it.
Common CSV problems and how to fix them
| Problem | Why it happens | Fix |
|---|---|---|
| Leading zeros disappear (ZIP code 02134 becomes 2134) | Excel reads the column as a number | Import with Data > From Text/CSV and set the column to Text |
| Long numbers turn into 1.23E+15 or end in zeros | Excel keeps only 15 significant digits | Import IDs, card-style numbers and tracking codes as Text |
| Values become dates (“3-4” turns into Mar 4) | Automatic date detection | Import the column as Text |
| Strange characters (é instead of é) | The file is UTF-8 but was opened as a different encoding | Import and choose “65001: Unicode (UTF-8)” as the file origin |
| Everything lands in column A | The file uses semicolons or tabs, or your system expects a different separator | Import and choose the right delimiter |
The date problem is more serious than it sounds. Excel's habit of turning gene names like SEPT1 and MARCH1 into dates was common enough that in 2020 the committee that names human genes renamed some of them, partly to stop spreadsheets from corrupting research data. Newer Microsoft 365 versions of Excel let you switch off some of these automatic conversions under File > Options > Data.
Converting between CSV and Excel
- CSV to Excel: open or import the CSV, check the columns, then File > Save As > Excel Workbook (.xlsx).
- Excel to CSV: File > Save As > CSV UTF-8. Repeat for each sheet you need, because each CSV holds one sheet.
- Very large files: Excel stops at 1,048,576 rows. For bigger exports, load the file with Power Query, a database or a short Python script instead.
Where CSV files show up at work
CSV is how contact lists move into an email tool, how leads move between a spreadsheet and a CRM, and how most apps let you export your data. It's also where a lot of manual busywork hides: export, clean, re-import, repeat.
Meeting data is a good example. After sales calls, many teams still copy notes into a spreadsheet and bulk-upload them to the CRM. The Laxis AI note taker skips that step: it records your Zoom, Google Meet, Teams, phone or in-person conversations, writes the summary and decisions, and on the Business plan updates HubSpot or Salesforce for you, so there's no CSV to shuffle around.
And when you do send a CSV to a colleague, the hard part is usually the note that explains it: which columns matter, what was filtered out, what to watch for. Say it out loud with the Laxis voice keyboard, and Polish mode turns it into a clear, well-structured message in Gmail, Slack or Teams.
Less copy-paste, more done
Laxis AI Note Taker: transcript, summary, decisions and follow-up email from every meeting, plus CRM updates on the Business plan, without manual exports.
Laxis Voice Keyboard: speak in any app on iPhone, Android, Mac and Windows and get polished writing, with translation across 60+ languages on Premium.
The Laxis AI note taker and voice keyboard, together in one app. Free on iPhone, Android, Mac and Windows. Download Laxis free
Frequently asked questions
What is a CSV file used for?
A CSV file is used to move table data between programs. Because it's plain text with values separated by commas, almost any app can read and write it: spreadsheets, CRMs, email marketing tools, banks, databases and analytics software.
How do I open a CSV file without breaking the data?
In Excel, use Data > From Text/CSV instead of double-clicking. The import preview lets you choose the encoding and delimiter, and Transform Data lets you set columns such as ZIP codes, IDs and phone numbers to Text, so Excel doesn't remove leading zeros or turn values into dates.
Is a CSV file the same as an Excel file?
No. A CSV file contains only text values for a single table, while an Excel file (.xlsx) can hold multiple sheets, formulas, formatting and charts. Excel can open and save CSV files, but anything beyond plain values is lost when you save as CSV.
Why does my CSV file show strange characters?
The file was saved in one text encoding, usually UTF-8, and opened in another. Re-import it with Data > From Text/CSV and choose “65001: Unicode (UTF-8)” as the file origin, or save CSVs as “CSV UTF-8” in the first place.
How do I make a CSV file?
Create your table in Excel, Google Sheets or Numbers, then export it: in Excel choose File > Save As > CSV UTF-8, in Google Sheets choose File > Download > Comma-separated values. You can also type comma-separated lines in a text editor and save with a .csv extension.
Can a CSV file have multiple sheets?
No. A CSV file always holds a single table. To export a workbook with several sheets, save each sheet as its own CSV file, or keep the data in .xlsx format if you need everything in one file.
Related Product
Laxis Meeting Assistant
Automate your notes today.
- Bot-free notes for Zoom, Google Meet, Teams and in-person meetings
- AI summaries, action items and follow-ups in 60+ languages
- Mac, Windows, iPhone and Android, with a free plan
Start for free, no credit card required.
Learn More ▷