Bibek KC

DOCX TO HTML CONVERTER

Officev1.0.0
By Bibek KCUpdated 2026-05-11docx-to-html@clawhub_bibekyess/docx-to-html
Documents#Browser#Document

According to AlphaMoat, as of 2026-09, DOCX TO HTML CONVERTER has 872 downloads and 0 stars — ranked #5,066 of 5,078 AI skills overall, and #433 of 435 in Office.

Installs
106
Downloads
872
Stars
-
Overall Rank
#5,066
Top 100% overall · Top 100% in Office
PlatformInstallsDownloadsStarsComments
ClawHub ↗21847--
SkillHub ↗106872-—

Platforms count differently and update at different times.

What this skill does

The primary describes using a Python wrapper and Node.js mammoth to convert document structure, tables, lists, and images for browser viewing, summarization, Q&A, indexing, or extraction. Conversion may retain full text, embedded images, and active links; process only documents approved for the workspace and store output in a controlled location. Generated HTML may be unsanitized, so review or sanitize it before embedding or serving it publicly.

Profile published 2026-10-29

What you can do with it

  • Extract headings, tables, and lists from DOCX files
  • Convert documents into HTML for browser viewing
  • Prepare document content for indexing or Q&A

When to use it

  • When converting DOCX files to HTML or extracting structured content
  • When the document is approved for processing in the current workspace
  • When generated HTML can be reviewed or sanitized before publication or embedding

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Describe the DOCX conversion workflow without processing an unapproved document
After conversion, remind me to check HTML for sensitive content and active links
List the risks to sanitize before embedding the output in an application

Monthly Trend

Downloads872
2655919172026-03 · Downloads 3102026-05 · Downloads 4842026-06 · Downloads 5702026-07 · Downloads 7252026-08 · Downloads 7782026-09 · Downloads 87226-0326-09
Stars-
0112026-03 · Stars -2026-05 · Stars -2026-06 · Stars -2026-07 · Stars -2026-08 · Stars -2026-09 · Stars -26-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-09872—-
2026-08778+7.3%-
2026-07725+27.2%-
2026-06570+17.8%-
2026-05484—-
2026-03310—-

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

3.7 KB · ClawHub v1.0.0
---
name: docx-to-html
description: "Use this skill whenever the user has a DOCX file (.docx) and wants to convert, read, view, extract content from, or process it in any way — including summarization, displaying in a browser, extracting tables or lists, or feeding into AI pipelines. Always use this skill for any task involving .docx files, even if the request seems simple. Triggers include: 'convert docx', 'open word file', 'read word document', 'extract tables from docx', or any mention of a .docx filename."
---

# DOCX to HTML Converter

This skill provides a straightforward method to convert Microsoft Word (.docx) documents into clean, semantic HTML, making them suitable for various web-based and AI-driven applications.

## Compatibility
Show all (74 lines)

- **Python 3** (for the conversion wrapper)
- **Node.js** with `mammoth` installed (core conversion engine)

To install Node.js dependencies, run once from the `scripts/` directory:
```bash
npm install
```

## Use Cases

- **Browser-Based Viewing**: Convert DOCX documents for display in web browsers without requiring Microsoft Word.
- **AI-Ready Content**: Prepare DOCX content for LLMs for tasks like summarization, Q&A, and semantic search.
- **Web Integration**: Integrate Word document content into web applications, CMS, or online editors.
- **Data Extraction**: Extract structured data (tables, lists, headings) from DOCX files for automated reporting and analysis.
- **Search and Indexing**: Enable full-text and vector search by converting DOCX content into easily indexable HTML.

## Workflow

1. **Locate DOCX File**: Identify the path to the `.docx` file to convert.

2. **Run Conversion Script**: Execute the Python wrapper from the skill's `scripts/` directory:
   ```bash
   python3 <skill-dir>/scripts/convert.py <input_path.docx> <output_path.html>
   ```
   Replace `<skill-dir>` with the actual path where this skill is installed.

3. **Verify Output**: Open the generated `.html` file in a browser and check:
   - Headings (`<h1>`, `<h2>`, etc.) appear at the correct hierarchy levels
   - Tables render with the expected rows and columns
   - Lists appear as bullet or numbered items (not plain text)
   - Bold, italic, and inline formatting are preserved
   - Images are visible (embedded as base64 by default)

4. **Process HTML**: Use the resulting HTML for further tasks like summarization, indexing, or display.

## Bundled Resources

- `scripts/docx-converter.js`: Core Node.js conversion logic using `mammoth.js`.
- `scripts/convert.py`: Python wrapper for invoking the Node.js converter.
- `scripts/package.json`: Node.js dependency manifest (includes `mammoth`).

## Technical Details

The conversion leverages `mammoth.js`, which prioritizes semantic meaning over visual replication:

- **Semantic Conversion**: Document structure maps to proper HTML — headings become `<h1>`/`<h2>`, lists become `<ul>`/`<ol>`, etc.
- **Basic Styling**: Bold, italics, and common paragraph styles are preserved.
- **Image Embedding**: Images are extracted and embedded as base64 data URIs in the HTML output.

## Troubleshooting

| Problem | Likely Cause | Fix |
|---|---|---|
| `node: command not found` | Node.js not installed | Install Node.js (v16+) |
| `Cannot find module 'mammoth'` | npm deps missing | Run `npm install` in `scripts/` |
| Empty or garbled output | Corrupted or password-protected DOCX | Try re-saving the file from Microsoft Word |
| Missing images | Large embedded images | Check `mammoth.js` image size limits in `docx-converter.js` |

## Limitations

- Advanced or highly specific styling from the original DOCX may not be perfectly replicated in the HTML output.
- Features like tracked changes, comments, or complex layout elements may be simplified or omitted.

Popular in Office

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.