Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The Syncfusion .NET Excel (XlsIO) Library provides comprehensive support for converting Excel workbooks to CSV format. With it, you can convert workbooks from xlsx, xls, xlsm, and xltm formats. Also, you can save CSV documents with custom separators instead of the default comma separator.

Excel-to-CSV conversion code example

This example code shows how to save an Excel workbook as a CSV file by using the Syncfusion® .NET Excel Library with just a few lines of C#.

// Initialize Excel engine and application.
using ExcelEngine excelEngine = new ExcelEngine();
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
// Open an existing workbook.
using FileStream inputStream = new FileStream("InputTemplate.xlsx", FileMode.Open, FileAccess.Read);
IWorkbook workbook = application.Workbooks.Open(inputStream);
// Save the workbook in CSV format with comma (,) as delimiter.
using FileStream outputStream = new FileStream("Excel to CSV.csv", FileMode.Create, FileAccess.ReadWrite);
workbook.SaveAs(outputStream, ",");

Explore Excel-to-CSV conversion references

Read our knowledge base articles to learn more about converting Excel workbooks to CSV format:

How to convert Excel file to CSV in C#, VB.NET

Knowledge base

How to convert Excel file to CSV in C#VB.NET

How to export Excel data to CSV file

Knowledge base

How to export Excel data to CSV file

Syncfusion .NET Excel Library Resources

Explore these resources for comprehensive guides, knowledge base articles, insightful blogs, and ebooks.

Frequently Asked Questions

The Syncfusion Excel Library allows a maximum of 1,048,576 rows and 16,384 columns when loading or saving a CSV document. However, these limits can be adjusted by modifying the MaximumRowsForCsv and MaximumColumnsForCsv properties.

Yes. The Syncfusion Excel library provides support for both reading and writing CSV documents, so you can open any CSV file and save it after changing it.

As per the CSV document specification, only text content can be preserved. The Syncfusion Excel Library preserves number formatting in cells when converting an Excel workbook to CSV.

Yes, it is possible to merge multiple Excel workbooks into a single CSV file by using the Syncfusion Excel Library.

Double quotation marks (“) are used as the qualifier value in CSV files produced by the Syncfusion Excel Library.

Yes, you can convert Excel workbooks that include calculated values to CSV files. The Syncfusion Excel Library calculates the formula values and includes them in the exported CSV file.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion® reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Want to create, View, and edit Excel files in C# or VB.NET?

Start a free 30-day evaluation today!
DOWNLOAD FREE TRIAL

No credit card required.

Mobile Free Evaluation Section

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.

Scroll up icon