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

Changing Strikethrough Lines

Want to change the way a strikethrough line appears? It's not as easy as you think, as you find out in this tip.

Discover More

Applying the All Caps Format

Want your text to always appear in upper-case, regardless of how you type it? Word allows you to add formatting to your ...

Discover More

Indirect References to a DSUM Parameter

Indirect references can be very helpful in formulas, but getting your head around how they work can sometimes be ...

Discover More

Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!

More ExcelTips (ribbon)

Adding a File Path and Filename

If you need to stuff the current workbook's filename and path into a cell or a header or footer, you'll appreciate the ...

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

Appending to a Non-Excel Text File

Does your macro need to add information to the end of a text file? This is called appending and is done using the ...

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 less than 5?

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.