ClosedXML wraps OpenXML to manipulate Excel 2007+ XLSX and XLSM files with a higher-level API for cells, ranges, formatting, and save/load operations.
Overview
ClosedXML is a .NET library for reading, manipulating, and writing Excel 2007 and newer workbook formats. It presents an interface above the underlying OpenXML API for common spreadsheet tasks in application code.
Documentation covers performance characteristics for large save and load scenarios, frequent answers about fonts on Linux, thread-safety limitations inherited from OpenXML, and migration guides between major releases. Public API stability notes warn that early releases may still change.
Consumers add the package through NuGet. Typical uses include generating reports, filling templates, and extracting tabular data without automating the Excel desktop application itself.
Key features
- XLSX and XLSM read and write support
- Cell and range manipulation API
- Workbook save and load operations
- NuGet distribution
- Documented migration guides between releases
- Performance notes for large sheets
- OpenXML-based implementation
- Linux font fallback guidance
Use cases
- Generating Excel reports from .NET apps
- Filling predefined spreadsheet templates
- Importing workbook data for processing
- Server-side exports without Excel installed