NPOI is the .NET port of Apache POI for Excel, Word, and Office Open XML without Microsoft Office or COM interop. It targets .NET Framework and modern .NET on Windows and Linux.
Overview
NPOI lets applications create and parse BIFF and Open XML spreadsheets and documents programmatically. It covers styling, formulas, and import/export flows that mirror much of Excel's feature surface for xls and xlsx, plus docx support.
Recent releases add a foundational PowerPoint XSLF API for creating blank decks, adding slides, and saving packages while preserving unmodeled parts. Maintenance is funded through an open-source maintenance fee for revenue-generating organizations on binary releases from 2.8.0 onward.
The interface-oriented design under the NPOI.SS namespace targets developers building server-side reporting or data exchange without Office installed. SkiaSharp can load for precise column sizing, with an optional estimated-width mode for environments such as IIS deploy that struggle with native Skia dependencies.
Supported runtimes span .NET 8, .NET 10, .NET Standard 2.0/2.1, and .NET Framework 4.0 and above.
Key features
- Excel xls and xlsx read and write
- Word docx support
- PowerPoint foundation APIs
- No Microsoft Office dependency
- Formula and cell styling support
- Runs on Windows and Linux
- Interface-oriented spreadsheet API
Use cases
- Server-side Excel report generation
- Importing spreadsheet uploads in .NET apps
- Automated docx and xlsx pipelines