Docx2Html 16.1.0

dotnet tool install --global Docx2Html --version 16.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Docx2Html --version 16.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Docx2Html&version=16.1.0
                    
nuke :add-package Docx2Html --version 16.1.0
                    

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 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
16.1.0 0 11/16/2026
16.0.0 53 11/13/2026
15.1.0 75 11/5/2026
15.0.0 74 11/1/2026
14.3.0 79 10/29/2026
14.2.0 76 10/26/2026
14.1.0 79 10/21/2026
14.0.0 83 10/19/2026
13.0.0 75 10/12/2026
12.6.5 97 9/29/2026
12.6.4 80 9/28/2026
12.6.3 87 9/27/2026
12.6.2 77 9/16/2026
12.6.1 84 9/16/2026
12.6.0 84 9/15/2026
12.5.0 82 9/12/2026
12.4.1 92 9/11/2026
12.4.0 115 9/8/2026
12.3.0 108 9/8/2026
12.2.0 107 9/7/2026
Loading failed