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

Deleting Styles

As documents evolve, so do your needs for various styles. You may create new ones and, invariably, old ones need to be ...

Discover More

Jumping to a Line Number

Need to jump to a specific line number in your document? It's easy to do using the Go To command, as described in this tip.

Discover More

Selecting a Field

Do you need to select a field? It is as simple as selecting a single character, as this tip explains.

Discover More

Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!

More ExcelTips (ribbon)

Stopping Date Parsing when Opening a CSV File

Excel tries to make sense out of any data that you import from a non-Excel file. Sometimes this can have unwanted ...

Discover More

Faster Text File Conversions

Want to make your importing of text data faster than ever? Here are some ideas you can apply right away.

Discover More

Saving in Two Locations

When you save a workbook to disk, you may want to automatically save a duplicate workbook in a separate location. This ...

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 five more than 3?

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.