Use Mammoth when an agent needs to turn a .docx file into simple HTML that preserves semantic structure instead of Word-specific styling. This is for ingestion and publishing workflows, not for full document editing or perfect visual fidelity.
Scanned 6/8/2026
Install via CLI
openskills install agentskillexchange/skills---
name: "Convert DOCX documents into clean HTML for publishing workflows with Mammoth"
slug: "convert-docx-documents-into-clean-html-for-publishing-workflows-mammoth"
description: "Use Mammoth when an agent needs to turn a .docx file into simple HTML that preserves semantic structure instead of Word-specific styling. This is for ingestion and publishing workflows, not for full document editing or perfect visual fidelity."
github_stars: 6167
verification: "security_reviewed"
source: "https://github.com/mwilliamson/mammoth.js"
author: "mwilliamson"
category: "Data Extraction & Transformation"
framework: "Multi-Framework"
tool_ecosystem:
github_repo: "mwilliamson/mammoth.js"
github_stars: 6167
npm_package: "mammoth"
npm_weekly_downloads: 18347789
---
# Convert DOCX documents into clean HTML for publishing workflows with Mammoth
Use Mammoth when an agent needs to turn a .docx file into simple HTML that preserves semantic structure instead of Word-specific styling. This is for ingestion and publishing workflows, not for full document editing or perfect visual fidelity.
## Prerequisites
Node.js, DOCX files
## Installation
Use the upstream install or setup path that matches your environment:
- Run make setup
- npm install mammoth
Requirements and caveats from upstream:
- [Python](https://github.com/mwilliamson/python-mammoth).
- Available [on PyPI](https://pypi.python.org/pypi/mammoth).
- In node.js and the browser, mammoth can be required in the usual way:
Basic usage or getting-started notes:
- ## Other supported platforms
- [WordPress](https://wordpress.org/plugins/mammoth-docx-converter/).
- [Java/JVM](https://github.com/mwilliamson/java-mammoth).
- Source: https://github.com/mwilliamson/mammoth.js
- Extracted from upstream docs: https://raw.githubusercontent.com/mwilliamson/mammoth.js/HEAD/README.md
## Documentation
- https://mike.zwobble.org/projects/mammoth/
## Source
- [Agent Skill Exchange](https://agentskillexchange.com/skills/convert-docx-documents-into-clean-html-for-publishing-workflows-mammoth/)
No comments yet. Be the first to comment!