Written by Allen Wyatt (last updated February 29, 2020)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365
Steve notes that Excel allows saving a worksheet in several different CSV formats. He understands the differences between most of the variants, but he's at a loss as to the difference between the "CSV (Comma delimited)" and "CSV (MS-DOS)" formats.
For most people there is very little difference between these two versions. (There are much bigger differences between these versions and the Macintosh CSV version, which Excel also supports.) The reason is that there is little difference between what the two formats create. With most data, you could create a file in the two formats and compare them byte-for-byte and find no differences.
The difference between the two is important, however, if you have certain special characters in text fields; for example, an accented (foreign language) character. If you export as Windows CSV, those fields are encoded using the Windows-1252 code page. DOS encoding usually uses code page 437, which maps characters used in old pre-Windows PCs. If you export as one and then import with a tool that expects the other, most things will look fine, but you'll get unexpected results if, for example, you know someone with an umlaut (or other foreign character) in their name.
Essentially, CSV comma delimited is used by Windows and CSV MS-DOS is used by older DOS-based operating systems and you would rarely encounter issues except in the circumstances outlined above.
Additional information on code pages can be found at this Wikipedia page:
https://en.wikipedia.org/wiki/Code_page
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (9508) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Comma-Delimited and MS-DOS CSV Variations.
Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!
If you have some legacy data stored in very old spreadsheet files, you may be wondering how to get that data into an ...
Discover MoreNeed to know what the full path name is for the current workbook? With a simple macro you can display the full path name ...
Discover MoreNeed to get the full path of your current workbook into the Clipboard? Excel doesn't make it quite as easy as it used to ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2021-02-06 16:31:10
Profesor Yeow
Thanks for this. I never know about CP437.. and it's very useful for convert to UTF-8
2020-03-27 12:50:05
Gonzalo
Hi Allen
I've tried saving a CSV (Windows) in Excel for Mac, and it doesn't change the encoding (it still uses MacRoman), the difference is the newline characters. Can you verify that?
I've tried also using a macro, saving the file with the xlCSVWindows FileFormat and got the same result: MacRoman encoding.
2020-03-02 05:33:42
Richard Curtis
A database app that I use expects a CSV file in UTF-8 format. I use Excel to create such CSVs but how can I get Excel to save in this format by default?
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.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2023 Sharon Parq Associates, Inc.
Comments