This is an n8n community node that converts DOCX files to plain text using Mammoth.js.
n8n is a fair-code licensed workflow automation platform.
- Go to Settings > Community Nodes in your n8n instance
- Click Install a community node
- Enter
n8n-nodes-docx-converter - Click Install
cd ~/.n8n/nodes
npm install n8n-nodes-docx-converter
# Restart n8n- Add a node that provides binary data (e.g., Read Binary File, HTTP Request, Google Drive)
- Connect it to the DOCX to Text node
- Configure the node:
- Input Binary Field: The field containing the DOCX file (default:
data) - Output Field Name: Where to store the extracted text (default:
text)
- Input Binary Field: The field containing the DOCX file (default:
The extracted text will be available in the output JSON under the field name you specified.
- Convert DOCX file binary data to plain text
No credentials required.
- Requires n8n version 1.0.0 or higher
- Requires Node.js 22+
- Node.js 22+
- pnpm 9.1+
- Docker (for local testing with n8n)
git clone https://github.com/cre8tiv/n8n-docx-converter.git
cd n8n-docx-converter
pnpm installpnpm build # Build the node
pnpm test # Run tests
pnpm lint # Lint code
pnpm pack # Build and create .tgz package
pnpm dev # Start n8n with this node in dev modeThe quickest way to test changes is using the reload scripts:
Windows:
reload.bat [container_name]Linux/Mac:
./reload.sh [container_name]These scripts will:
- Run tests
- Build the node
- Create a .tgz package
- Copy and install it in your n8n Docker container
- Restart n8n
Default container name is n8n. Pass a different name if needed:
./reload.sh my-n8n-container# Build the package
pnpm pack
# Copy to container and install
docker cp n8n-nodes-docx-converter-*.tgz n8n:/tmp/
docker exec -u root n8n npm install -g /tmp/n8n-nodes-docx-converter-*.tgz
docker restart n8n- Update to latest n8n SDK (@n8n/node-cli)
- Add unit tests with Vitest
- Improve error handling with continueOnFail support
- Add data lineage tracking (pairedItem)
- Use binary field input instead of file paths
- Initial release