Different CSV Formats

Written by Allen Wyatt (last updated January 22, 2024)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365


2

Bruce often has to save his Excel worksheets in CSV format for use with other programs. When performing the Save As operation, he noted that there are several different CSV formats listed as possibilities. Bruce is curious about the differences between these CSV formats.

For those unfamiliar with the acronym, CSV is short for "comma-separated values" and refers to a way that data can be saved in a non-Excel format. When you click the down-arrow next to the Save As Type drop-down list in the Save As dialog box, what you see depends on the version of Excel you are using. The version of Excel provided with Office 365 has the largest number of format options, including the largest number of CSV options. (See Figure 1.)

Figure 1. Excel lets you save workbook data in a plethora of formats.

You'll note that you have four CSV-related formats available, as follows:

  • CSV UTF-8 (Comma delimited)
  • CSV (Comma delimited)
  • CSV (Macintosh)
  • CSV (MS-DOS)

There are different CSV formats available because there are different ways of creating CSV files. (Makes sense, huh?) Actually, there are many, many ways of creating CSV files, but Excel supports only these four.

Each format affects character encoding in slightly different ways. For example, the Macintosh format uses a CR (carriage return) as the terminating character for a record or a line, while Windows based formats—in essence, the other three—use CR/LF (carriage return/line feed). So, each format is slightly different.

The difference between the three formats is based on which code page is used with each format. Code pages have to do with the way in which individual characters are encoded, and it typically comes into play if you use extended characters—such as foreign characters or accented characters—in your data. The code pages used by each format can vary, depending on (1) the version of Excel you are using, (2) which language version of Excel you are using, and (3) how your regional settings are configured. In other words, there is no fast-and-hard rule about what code pages will be used with which CSV format you choose for your export.

Rather than get into the technical weeds about the differences about how the code pages are used, you might want to take a look at this web page which I found quite helpful. (Warning: The web page gets quite technical in places, and you'll see programmer frustration with Excel on full display.)

https://donatstudios.com/CSV-An-Encoding-Nightmare

The bottom line is that different formats are provided by Microsoft for different ways of communicating with other, non-Excel programs. If you want to communicate with a different program, you'll need to have a firm understanding of what that other program expects in the way of CSV formatting, and then choose the format in Excel that best matches what is expected. You may also need to do some testing—making sure your workbook contains a wide variety of data, both regular and extended—to ensure your data export and import works as expected.

There is also one other tidbit that I've found helpful—don't store your workbook ONLY in CSV format. Instead, save your "master copy" in Excel's native format, and only use Save As to put it into your desired CSV format as you are preparing the file for the non-Excel program.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (13672) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Dealing with the X of Y Bug

Have you ever printed a document, only to see that the page numbers are incorrect on the printout? If so, it could be due ...

Discover More

Reverse Numbered Lists

Adding numbered lists to your document is a snap; Word provides tools to add them immediately. What Word doesn't do is ...

Discover More

Filtering for Comments (Notes)

Excel makes it easy to filter a data table based on various values in that table. It isn't so easy to filter according to ...

Discover More

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!

More ExcelTips (ribbon)

Finding the Parent Folder

Do you need to figure out the name of the parent folder of whatever folder a worksheet is in? Believe it or not, this can ...

Discover More

Locked File Puzzle

What would you do if every time you opened a workbook Excel told you it was locked? Here's how you can try to recover ...

Discover More

Determining the Length of a Text File

When processing plain text files in a macro, it is often helpful to know how much data the file contains. The normal way ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 6 - 0?

2020-09-17 22:50:37

Rhonda

Thanks Allen. Your explanations are always so clear.


2020-08-19 14:28:20

Laura

Very helpful. Thank you.


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.