XlsxSharp 1.0.0

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package XlsxSharp --version 1.0.0
                    
NuGet\Install-Package XlsxSharp -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="XlsxSharp" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="XlsxSharp" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="XlsxSharp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add XlsxSharp --version 1.0.0
                    
#r "nuget: XlsxSharp, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package XlsxSharp@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=XlsxSharp&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=XlsxSharp&version=1.0.0
                    
Install as a Cake Tool

XlsxSharp

NuGet version (XlsxSharp) .NET Build & Test

XlsxSharp is a .NET library for reading, manipulating and writing Excel 2007+ (.xlsx, .xlsm) files. It aims to provide an intuitive and user-friendly interface to dealing with the underlying OpenXML API.

This is a fork of ClosedXML. With the primary goal to update the library to .NET 10 and to maintain it with the latest .NET versions.

For more information see the documentation.

Install XlsxSharp via NuGet

If you want to include XlsxSharp in your project, you can install it directly from NuGet

XlsxSharp is currently published as a prerelease, so the prerelease switch is required. To install XlsxSharp, run the following command in the Package Manager Console

PM> Install-Package XlsxSharp -IncludePrerelease

What can you do with this?

XlsxSharp allows you to create Excel files without the Excel application. The typical example is creating Excel reports on a web server.

Example:

using (var workbook = new XLWorkbook())
{
    var worksheet = workbook.Worksheets.Add("Sample Sheet");
    worksheet.Cell("A1").Value = "Hello World!";
    worksheet.Cell("A2").FormulaA1 = "=MID(A1, 7, 5)";
    workbook.SaveAs("HelloWorld.xlsx");
}

Formula parser

XlsxSharp ships its own Pratt (operator-precedence) formula parser (XlsxSharp.Parser), supporting both A1 and R1C1 reference styles. It is regression-tested against real-world formula corpora, most notably the Enron and EUSES spreadsheet datasets used in academic formula-parsing research:

Dataset Formulas Parsed successfully
Enron 946,320 946,303
EUSES 89,295 89,294

These figures are asserted as a floor in XlsxSharp.Parser.Tests/PrattDataSetTests.cs (EnronDataSetCoverage, EusesDataSetCoverage), so any regression in parser coverage fails CI.

Developer guidelines

The OpenXML specification is a large and complicated beast. In order for XlsxSharp, the wrapper around OpenXML, to support all the features, we rely on community contributions. Before opening an issue to request a new feature, we'd like to urge you to try to implement it yourself and log a pull request.

Please read the full developer guidelines.

Credits

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1-preview.0.1 0 8/26/2026
1.0.0 29 8/25/2026
1.0.0-preview.0.2520 26 8/25/2026
1.0.0-preview.0.2519 28 8/25/2026
1.0.0-preview.0.2518 31 8/25/2026
1.0.0-preview.0.2516 41 8/23/2026
1.0.0-preview.0.2515 38 8/23/2026
1.0.0-preview.0.2514 39 8/23/2026
1.0.0-preview.0.2513 35 8/23/2026
1.0.0-preview.0.2512 55 8/23/2026
1.0.0-preview.0.2511 44 8/23/2026
1.0.0-preview.0.2510 46 8/23/2026
1.0.0-preview.0.2509 45 8/23/2026
1.0.0-preview.0.2508 59 8/22/2026
1.0.0-preview.0.2507 46 8/22/2026
1.0.0-preview.0.2506 47 8/22/2026