Docx2Html 14.0.0
dotnet tool install --global Docx2Html --version 14.0.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local Docx2Html --version 14.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Docx2Html&version=14.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Docx2Html --version 14.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
docx2html
Convert Word documents (DOCX) to HTML.
Installation
dotnet tool install -g Docx2Html
Usage
# Basic usage - outputs to document.html
docx2html document.docx
# Specify output file
docx2html document.docx output.html
# With custom page title
docx2html document.docx --title="My Document"
# Extract images to separate files instead of embedding as base64
docx2html document.docx --extract-images
# Use inline styles instead of CSS classes
docx2html document.docx --inline-styles
Options
| Option | Description |
|---|---|
--title=<text> |
Page title (default: document title or filename) |
--css-prefix=<text> |
CSS class prefix (default: pt-) |
--inline-styles |
Use inline styles instead of CSS classes |
--extract-images |
Save images to separate files instead of embedding |
-h, --help |
Show help message |
-v, --version |
Show version information |
Features
- Converts paragraphs, headings, lists, tables, and formatting
- Handles images (embedded as base64 or extracted to files)
- Preserves hyperlinks and bookmarks
- Supports bidirectional (RTL) text
- Generates clean, semantic HTML5
Limitations
- Math equations (OMML) are not converted
- Charts and diagrams appear as images (if embedded) or are omitted
- Complex text boxes may not render perfectly
Environment Variables
DOCX2HTML_DEBUG=1: Show detailed error information including stack traces
License
MIT License
| Product | Versions 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.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 14.0.0 | 27 | 10/19/2026 |
| 13.0.0 | 56 | 10/12/2026 |
| 12.6.5 | 87 | 9/29/2026 |
| 12.6.4 | 69 | 9/28/2026 |
| 12.6.3 | 74 | 9/27/2026 |
| 12.6.2 | 66 | 9/16/2026 |
| 12.6.1 | 69 | 9/16/2026 |
| 12.6.0 | 73 | 9/15/2026 |
| 12.5.0 | 72 | 9/12/2026 |
| 12.4.1 | 83 | 9/11/2026 |
| 12.4.0 | 99 | 9/8/2026 |
| 12.3.0 | 89 | 9/8/2026 |
| 12.2.0 | 83 | 9/7/2026 |
| 12.1.0 | 139 | 9/6/2026 |
| 12.0.1 | 86 | 9/5/2026 |
| 12.0.0 | 96 | 9/4/2026 |
| 11.0.0 | 91 | 9/2/2026 |
| 10.0.0 | 98 | 8/27/2026 |
| 9.9.0 | 119 | 8/13/2026 |
| 9.8.0 | 89 | 8/11/2026 |
Loading failed