Skip to main content
DocumentFormat.OpenXml package icon

DocumentFormat.OpenXml

The Open XML SDK provides tools for working with Office Word, Excel, and PowerPoint documents. It supports scenarios such as: - High-performance generation of word-processing documents, spreadsheets, and presentations. - Populating content in Word files from an XML data source. - Splitting up (shredding) a Word or PowerPoint file into multiple files, and combining multiple Word/PowerPoint files into a single file. - Extraction of data from Excel documents. - Searching and replacing content in Word/PowerPoint using regular expressions. - Updating cached data and embedded spreadsheets for charts in Word/PowerPoint. - Document modification, such as removing tracked revisions or removing unacceptable content from documents.

Total Downloads
418.2M
418,240,271
Published
Jan 6, 2018
Latest stable version

Install

.NET CLI
dotnet add package DocumentFormat.OpenXml --version 2.8.1
Package Manager Console
Install-Package DocumentFormat.OpenXml -Version 2.8.1
PackageReference
<PackageReference Include="DocumentFormat.OpenXml" Version="2.8.1" />

Frameworks

.NETFramework3.5 .NETFramework4.0 .NETFramework4.6 .NETStandard1.3

Dependencies

System.IO.Packaging
.NETFramework4.6
[4.4.0, )
NETStandard.Library
.NETStandard1.3
[1.6.1, )
System.IO.Packaging
.NETStandard1.3
[4.4.0, )
[4.3.0, )

Adoption guide

Teams that need maximum format control, deterministic output and deep document customization.

Office guide
Why it appears in the guide: Official Open XML SDK for direct manipulation of Office Open XML document structures. Trade-off: Low-level APIs are powerful but require detailed understanding of Open XML structure.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.

Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.