What a CSV file actually is
A CSV file is a plain text document where data is organized in rows and columns, with commas separating each piece of information. CSV stands for "comma-separated values." When you open one, you are looking at a list — maybe contacts, sales records, inventory, or survey responses — where each line is one entry and each comma marks where a new column begins.
The reason CSV exists is simplicity. Unlike Excel files or database programs, a CSV file contains no formatting, no formulas, no colors, no hidden sheets. It is just text and commas. This makes CSV files portable: almost any program on any device can read them, and they stay readable even decades later when the software that created them no longer exists.
You will encounter CSV files when you read data from websites, export contacts from your phone, back up your email, or read records from a bank or government agency. They are the standard format for moving data between different programs.
Key Takeaways
- CSV files open in any spreadsheet program — Excel, Google Sheets, Numbers on Mac — and also in plain text editors like Notepad.
- The file extension is always .csv, and your computer may not recognize it by default, so you may need to choose which program to open it with.
- When you open a CSV in a spreadsheet, the program automatically splits the data at each comma into separate columns.
- If your data contains commas within the entries themselves, those entries are wrapped in quotation marks so the program knows not to split at those commas.
- Saving changes to a CSV file in a spreadsheet program requires you to choose "CSV" as the file format, or the program will convert it to its own format instead.
Opening a CSV file on Windows
On Windows, right-click the CSV file and select "Open with." You will see a list of programs. Excel is the most common choice — if you have Microsoft Office installed, it will appear in the list. Click it, and the file opens with the data already organized into columns.
If you do not have Excel, you can open the file with any of these: Google Sheets (free, online), LibreOffice Calc (free, downloadable), or even Notepad (built into Windows). Notepad will show you the raw text with commas visible, which is useful if you want to see exactly how the file is structured. Spreadsheet programs hide the commas and show you a grid instead.
If "Open with" does not appear, or if the program you want is not listed, select "Open with" and then "Choose another app." Scroll down and look for the program name. If it still does not appear, the program may not be installed on your computer.
Opening a CSV file on Mac
On Mac, right-click (or Control-click) the CSV file and select "Open With." You will see a list of programs. Numbers (Apple's spreadsheet program, included with Mac) is one option. Excel (if you have Microsoft Office) is another. Google Sheets is free and works in your web browser.
You can also drag the CSV file directly into Google Sheets in your browser, and it will open and convert automatically. This is often the fastest route if you do not have other spreadsheet software installed.
Like Windows, you can also open a CSV file in a plain text editor — Mac includes TextEdit, though you need to set it to "plain text" mode first (Format menu, then "Make Plain Text"). This shows you the raw data with commas visible.
What happens when you open a CSV in a spreadsheet
When you open a CSV file in Excel, Google Sheets, Numbers, or LibreOffice, the program reads each comma as a column divider. So a line like John,Doe,555-1234,john@example.com becomes four separate columns: one for the first name, one for the last name, one for the phone number, and one for the email.
The first row usually contains headers — labels like "First Name," "Last Name," "Phone," "Email" — that tell you what each column contains. The spreadsheet program treats these like any other row, so you can sort, filter, and edit the data just as you would in any spreadsheet.
One important detail: if any entry in the data contains a comma, that entry is wrapped in quotation marks. For example, if someone's address is "123 Main St, Apt 4," the spreadsheet program knows not to split at that comma because of the quotation marks. When you view it in the spreadsheet, you see the address as one cell, and the quotation marks are usually hidden.
Saving changes to a CSV file
If you open a CSV file in Excel or another spreadsheet program and make changes, you must save it in CSV format to keep it as a CSV file. If you straightforward click "Save," Excel will ask you to choose a format. Select "CSV (Comma delimited)" or "CSV UTF-8" from the dropdown menu.
If you forget and save it as an Excel file (.xlsx), the file is no longer a CSV — it becomes an Excel-only file that some programs cannot read. This matters if you are sharing the file with someone who does not have Excel, or if you are uploading it to a website that expects a CSV.
Google Sheets handles this differently: it stores your file in Google's format by default, but you can read it as a CSV. Go to File, then read, then "Comma Separated Values (.csv)." This creates a new CSV file on your computer while leaving the original Google Sheets file unchanged.
When to use a text editor instead of a spreadsheet
Most of the time, you want to open a CSV in a spreadsheet program because it is easier to read and edit. But sometimes a text editor is more useful. If the CSV file is very large (thousands of rows), a spreadsheet program may slow down or struggle to load it. A text editor like Notepad opens large files when ready because it does no processing — it just displays the raw text.
A text editor is also useful if you want to see the exact structure of the file, including quotation marks and line breaks. This helps you understand why a spreadsheet is displaying data in an unexpected way, or why a website rejected your CSV when you tried to upload it.
To open a CSV in a text editor on Windows, right-click and select "Open with Notepad." On Mac, right-click and select "Open With," then "TextEdit" — but first make sure TextEdit is set to plain text mode, or it may add formatting that corrupts the file.
Common problems when opening CSV files
One frequent issue: you read a CSV file, but your computer opens it in the wrong program by default. The file may open in Notepad instead of Excel, showing you raw text and commas instead of a grid. The fix is to right-click the file, select "Open with," and choose the spreadsheet program you want. You can usually set it as the default so future CSV files open the same way.
Another problem: the data looks jumbled or misaligned when you open it. This usually means the CSV file uses a different delimiter — perhaps tabs or semicolons instead of commas. Most spreadsheet programs have an "Import" or "Text to Columns" feature that lets you specify which character separates the columns. Check the program's help menu for "import CSV" or "text to columns."
A third issue: special characters (accented letters, symbols, emoji) appear as gibberish. This is a character encoding problem. When you save or read the CSV, look for an option to choose UTF-8 encoding, which handles all languages and symbols correctly. If you are opening a file someone else created, try opening it with a different program — Google Sheets often handles encoding better than Excel.
Frequently Asked Questions
Can I edit a CSV file directly without opening it in a spreadsheet?
Yes, you can open it in Notepad or any text editor and edit the text directly. But this is risky if you are not careful with commas and quotation marks — a small mistake can break the file structure. A spreadsheet program is safer because it handles the formatting for you.
What is the difference between CSV and Excel files?
Excel files (.xlsx) can contain multiple sheets, formulas, colors, and formatting. CSV files are plain text with no formatting. Excel is better for complex spreadsheets; CSV is better for sharing data between different programs because almost anything can read it.
If I open a CSV in Excel and add a formula, will it save in the CSV?
No. CSV files cannot store formulas — only the values. If you add a formula in Excel and save as CSV, the formula disappears and only the result is saved. If you need formulas, save as an Excel file (.xlsx) instead.
Why does my CSV file open with line breaks in the wrong places?
This usually means the data contains actual line breaks within some entries, or the file uses a different delimiter than commas. Open it in your spreadsheet program's import dialog and look for options to specify the delimiter or handle line breaks. Google Sheets usually detects this automatically.
Can I open a CSV file on my phone?
Yes. On iPhone, you can open it in Numbers (Apple's spreadsheet app) or upload it to Google Sheets. On Android, Google Sheets is the easiest option. Some file manager apps also display CSV files as text, though editing is limited on a phone.