Work with CSV Files in Microsoft Office
What happens to your data when you open, edit and save CSV files in Excel and other Office apps, what is lost, and when plain-text handling is the safer choice.
CSV (comma-separated values) is one of the most common ways to move tabular data between programs, and Microsoft Office, especially Excel, is where many people open, edit and save these files. Moving between a CSV file and an Office workbook is a text transformation. Some things survive it and some do not. This review explains what changes, what stays usable after you share the file, and when you should work with the file as plain text instead.
Is converting between CSV and Office formats right for your task?
Opening a CSV file in Excel is suitable when you want to view, sort, filter or lightly edit tabular data and then save the values back out for another system. The main benefit is convenience: a CSV file with consistent delimiters is laid out as a grid, and most other applications can read the saved result.
The main tradeoff is that Excel interprets the text it reads. It may turn values that look like numbers or dates into actual numbers or dates. That can change identifiers such as ZIP codes, product codes, account numbers or long numeric IDs before you have edited anything. If the exact characters in the file matter more than having a grid view, the safer route is to open the file in a plain-text editor or to import it with every column set to text.
Plain-text handling is usually the better choice in these cases:
- The file feeds a system that validates exact formats, such as an import into a database, accounting tool or contact manager.
- Columns contain leading zeros, long digit strings, or codes that resemble dates.
- You only need to inspect or fix a few rows, and reformatting the whole file is unnecessary risk.
- You need to check the delimiter, quoting or encoding that another program will actually see.
What a CSV round trip actually changes
A CSV file stores only characters. Each line is a row, and a delimiter separates the fields. The delimiter is usually a comma, but semicolons and tabs are also common. A field that contains the delimiter, a line break or a double quote is normally wrapped in double quotes, and any quote inside it is doubled. The file contains no fonts, colors, column widths or formulas.
id,name,zip,note
001,"Smith, Jordan",02134,"Said ""call back"""
002,Lee,90210,
In this example, the second field of the first data row contains a comma, so it is quoted. The note field contains quotation marks, so they are doubled inside the quoted field. The id and zip values have leading zeros. A spreadsheet that treats those columns as numbers can drop the zeros when it reads them, and the zeros will be missing when the file is saved again.
It helps to keep stored content separate from presentation. A workbook stores formatting and structure along with values. A CSV file stores only the text of the values. Bold text, cell colors and fonts are presentation applied by the spreadsheet. They are not part of the data, so a CSV file cannot keep them. Right-to-left text such as Arabic or Hebrew works the same way. The characters are stored in reading order, and the direction you see on screen comes from the program displaying them. A file that looks correct in one viewer can look scrambled in another even though the stored characters are identical.
When you save a workbook as CSV, expect the following. Exact output can vary by Office version and regional settings, so check your own result.
| Workbook element | Kept in CSV? |
| Cell values | Yes, written as text |
| Formulas | No; only the resulting values are written |
| Fonts, colors, borders, column widths | No |
| Multiple worksheets | No; a CSV file holds one sheet's data |
| Charts, images, comments | No |
| Number and date appearance | Depends on cell formatting and regional settings; check the saved file |
Will the file stay readable and usable after you share it?
CSV is portable because it is plain text, but the receiving program has to make the same assumptions you did. Three points need checking before you send a file.
- Delimiter: in some regional settings, Office uses a semicolon instead of a comma as the list separator. A file saved on one machine may open as a single column on another.
- Encoding: accented letters, non-Latin scripts and emoji depend on character encoding. Saving with a UTF-8 option, where your version offers one, generally improves compatibility, but confirm that the receiving system expects UTF-8.
- Type conversion: values that Excel has already turned into dates or numbers are saved in that converted form. The original text cannot be recovered from the CSV file.
For accessibility, the plain-text nature of CSV has two sides. When a file is opened in a spreadsheet, assistive technology can use the program's table navigation. When the raw file is opened as text, a reader encounters every delimiter and quote mark, which makes long rows hard to follow. If people will read the content rather than process it by machine, give them a properly structured table in a document or workbook alongside the CSV file. This review includes no tests of specific screen readers, so check with the tools your readers actually use.
Search and editing are usually straightforward, because every value is literal text. The main exception is data that was converted during import. A search for a code with leading zeros will not match a value that has lost them.
Where to find CSV import and save options in Office
In Excel, you can usually open a CSV file directly, which applies default type detection. Alternatively, you can use the text or CSV import command on the Data tab. The import route lets you choose the delimiter, the file encoding and the data type of each column before the data reaches the sheet, and it is the better choice when you need to protect codes and identifiers. To write a CSV file, use Save As or Export and pick a CSV file type. Some versions offer more than one CSV variant, including a UTF-8 option.
Command names and menu locations differ between Excel versions, platforms and subscription types, and these paths have not been verified for every edition. If a label does not match, search your version's help for terms such as "import text file," "text import," "get data from text," "save as CSV UTF-8" or "list separator." Outside Excel, CSV files commonly serve as a data source for mail merge and as an import or export format for contacts. Check the documentation for your specific app before relying on these uses, because the details are not covered by the evidence for this review.
Gaps in this review
No version-specific documentation, measurements or test results were available for this review. The behavior described here reflects general, widely documented properties of CSV files and spreadsheet import, not observations of a particular Office release. Before relying on the output, run a small sample file through your own version and destination system and compare the saved text with the original.