// HTML-TO-WORD CONVERTER (DEVELOPER TOOL) REVIEW

DOM-docx Review (2026): Honest Verdict on the Open-Source HTML-to-Word Converter

DOM-docx review 2026. Honest scoring on conversion fidelity, feature coverage, dependency footprint, maturity, license — and who floodtide's HTML-to-.docx library is for.

KompozyTurn one idea into a week of content — across every platform, published for you.
Get Started →
Last verified · 2026-07-13 · by Moe Ameen
The verdict
4.0 / 5

DOM-docx is a clean, well-scoped open-source library that does one thing well: convert semantic HTML into native, editable Word (.docx) documents — real paragraphs, lists, tables, and images, not a screenshot. Judged as what it is, a developer conversion tool, it is genuinely useful, with a light dependency core, three delivery modes, and solid document controls. It is also early — a v0.1.x release with documented limits — and, by design, it generates no content and publishes nothing. Reach for it when you need the Word file; look elsewhere when you need the content made.

Most quick takes on DOM-docx will call it "an HTML-to-Word tool," which is accurate but hides the important part: DOM-docx is a developer library, not an app you open and click around in. It converts semantic HTML fragments into native, editable Word documents in the OOXML (.docx) format — and it does that job with more structural fidelity than the usual screenshot-or-layout-hack approaches, emitting real paragraphs, runs, lists, tables, and images that a person can keep editing in Word.

What makes it worth a serious look is the engineering discipline. Published by floodtide on GitHub under the MIT license, it keeps a light dependency core — docx, cheerio, and fflate — needs no browser on its default path, and ships three ways: a CLI, a Node API, and an in-browser bundle. Its authors describe building it against a visual-regression loop (render HTML, convert, rasterize, score fidelity, iterate), which is a more rigorous quality bar than most small converters bother with.

This review scores DOM-docx as a document-conversion library, the only fair frame. I will not mark it down for not writing copy or scheduling posts, because it never claimed to — it is a converter. But I will be clear about the boundary, since "turns HTML into documents" can read, to a non-developer, like a finished content tool, and it is not one. Every claim here is grounded in the public GitHub repo as of the authoring date; it is an early project, so treat specifics as a fast-moving snapshot.

What DOM-docx is

DOM-docx is an open-source library for converting HTML fragments into native Word documents. Its main function, `convertHtmlToDocx(html, options?)`, resolves to a Buffer on Node (a Blob in the browser bundle), and a CLI wraps the same engine (`npx dom-docx input.html -o output.docx`, with stdin/stdout piping for pipelines). On the input side it handles headings, paragraphs, ordered and unordered lists, tables, links, inline formatting, blockquotes, horizontal rules, simple flex rows, block backgrounds, page breaks, `data:` images, and remote images via an `imageResolver`. On the document side it can configure page size, orientation, margins, a default font, metadata, header and footer HTML, page numbers, a table of contents, language and direction, and a cover page. It runs on Node.js 20 or newer with a deliberately small core (docx, cheerio, fflate). Playwright and Chromium are optional, needed only for a "computed" style mode — which resolves `<style>` blocks and CSS classes through `getComputedStyle` — or for rasterizing `<canvas>` and complex SVG to PNG. It is a v0.1.x release with explicit limits: no external stylesheets on the inline path, no web fonts, no CSS grid or float layout, no forms, and no table `rowspan`. It generates no content and publishes nothing; its job begins after the HTML exists and ends when the .docx is written.

Who DOM-docx is for

The clear fit is a developer who needs to turn HTML into editable Word files — inside a reporting feature, a document-export button, a CMS, or a build pipeline — and wants a focused, open, self-hostable tool rather than a heavyweight service. Teams that generate HTML content and need a clean .docx deliverable (proposals, reports, lead magnets) are the natural audience, as are engineers who value the MIT license and the light footprint. It is a poor fit for anyone who is not a developer, since it is a library, not an app, and it is the wrong tool entirely for someone whose real goal is producing and distributing content — there is nothing in it for generation or publishing.

Scoring breakdown

DimensionScoreWhy
Conversion fidelity (HTML → editable Word)4.3 / 5Emits real Word constructs — paragraphs, lists, tables, images — not a screenshot, and is tested against a visual-regression loop.
Feature coverage (input HTML)4.0 / 5Handles headings, lists, tables, links, blockquotes, images, and simple layouts; complex CSS and graphics have documented gaps.
Document controls (page setup, headers, TOC)4.2 / 5Page size, margins, fonts, metadata, headers/footers, page numbers, table of contents, and cover pages are all configurable.
Developer experience (CLI, Node, browser)4.3 / 5Three delivery modes and a simple API; stdin/stdout piping suits build pipelines well.
Dependency footprint4.5 / 5Light core (docx, cheerio, fflate) with no browser needed by default; Playwright is optional and lazy-loaded.
License & openness (MIT)4.5 / 5Free, MIT-licensed, and self-hostable, with no lock-in on the conversion step.
Maturity & stability2.5 / 5A v0.1.x release with several documented limits; capable but young, and moving quickly.
Content production & publishing1.0 / 5Out of scope by design — no generation, no images or video beyond conversion, no scheduler, no publishing.

Pros and cons

Pros

  • Produces native, editable Word documents rather than screenshots or layout hacks
  • Light dependency core (docx, cheerio, fflate) with no browser needed on the default path
  • Three delivery modes — CLI, Node API, and an in-browser bundle
  • Solid document controls: page setup, headers/footers, page numbers, table of contents, cover pages
  • MIT-licensed, free, and self-hostable, with no vendor lock-in on the conversion step
  • Tested against a visual-regression loop, an unusually rigorous bar for a small converter

Cons

  • A developer library, not an app — unusable without integration effort
  • Early v0.1.x with documented limits: no external stylesheets on the inline path, no web fonts, no CSS grid/float, no forms, no table rowspan
  • Advanced style resolution and complex-graphics support require the optional Playwright/Chromium dependency
  • Generates no content — it converts HTML you already have
  • No publishing or scheduling; it cannot reach any platform
  • Its single output is a Word file, one endpoint when most content needs many formats

Pricing analysis

DOM-docx is free and open source under the MIT license, so there is no price tag on the library — and for a converter with this level of fidelity and testing discipline, that is a genuinely good deal for developers. The funding model is the standard open-source one; there is no hosted tier, no seats, and no per-document metering.

The honest cost is engineering, not money. Adopting DOM-docx means wiring it into a product or pipeline and maintaining that integration, and at v0.1.x it also means absorbing some risk of a moving target — documented limits around CSS, and the optional Playwright dependency if you need computed styles or complex graphics rasterized. For a team that wants an open, self-hostable Word-export step and is comfortable tracking an early project, that trade is fair.

The framing to keep straight: this is infrastructure pricing, not product pricing. There is no content output to pay for, because DOM-docx is a building block. If you were weighing it against a paid HTML-to-Word API, the library can be far cheaper at scale — provided you have the engineering to run it and can live with its current gaps.

Use-case fit

Use caseFitWhy
Turning HTML content into an editable Word fileStrongThis is DOM-docx's entire purpose, and it does it with real Word constructs, not a screenshot.
Adding a document-export feature to a productStrongThe Node API and browser bundle drop cleanly into an app that already has HTML to export.
Batch conversion in a build pipelineStrongCLI with stdin/stdout piping makes automated, headless conversion straightforward.
Complex-CSS or grid/float layoutsOKThe inline path has documented limits; computed styles need the optional Playwright dependency and still may not cover every case.
A non-developer who just wants a Word docWeakIt is a library, not an app; there is no interface to open without integrating it first.
Generating the content itselfWeakDOM-docx converts existing HTML; it writes nothing.
Publishing content to social platformsWeakNo generation or distribution at all — it is a converter, not a content maker.

Alternatives worth considering

  • html-to-docx — a widely used open-source Node library for converting HTML to .docx; a direct functional peer.
  • docx — the lower-level library DOM-docx builds on, for constructing Word documents programmatically.
  • html-docx-js — a lightweight, long-standing browser/Node option for HTML-to-Word, though less structurally faithful.
  • Pandoc — the universal document converter; heavier and CLI-first, but handles many formats beyond HTML and Word.
  • Kompozy — a different category entirely: not a converter, but the engine that generates on-brand content and publishes it across platforms — the source you might then hand to a converter.

How Kompozy compares

DOM-docx and Kompozy are not rivals, and scoring one against the other would be a category error — which is why the content-production dimension above is noted as out of scope. DOM-docx is a converter: HTML in, an editable Word document out. Kompozy is a content generation and publishing engine. The two even complement each other in sequence — and Kompozy deliberately does not export .docx files, so if a Word document is the deliverable you need, DOM-docx (or another converter) is the right tool and genuinely wins there.

Where Kompozy lives is the step before the converter. It fans one source into 18 output formats — persona and avatar video, clipped shorts, carousels, quote graphics, infographics, blogs, newsletters, and platform-native text posts — all held to one brand voice through a Persona Brief, then schedules and publishes the whole set across nine platforms plus email and blog from a single queue, on managed Claude and OpenAI models so there is nothing to build or run. A practical pairing: Kompozy writes the blog article or newsletter, and DOM-docx converts that HTML into a downloadable Word lead magnet, while Kompozy publishes the same message everywhere else. If your job is exporting documents, use DOM-docx. If your job is producing and distributing a week of on-brand content, that is the specific gap Kompozy fills — and no converter, however clean, closes it.

Frequently asked questions

What is DOM-docx?

DOM-docx is an open-source (MIT) TypeScript library from floodtide that converts semantic HTML fragments into native, editable Word documents in the .docx (OOXML) format. It emits real paragraphs, lists, tables, and images rather than a screenshot, and ships as a CLI, a Node API, and an in-browser bundle.

Is DOM-docx worth it in 2026?

For a developer who needs to turn HTML into editable Word files, yes — it is a focused, well-tested, MIT-licensed converter with a light footprint and three delivery modes. If you need a settled, mature library or a no-code tool, factor in that it is an early v0.1.x release with documented CSS and layout limits.

How is DOM-docx different from html-to-docx or Pandoc?

They occupy the same "HTML to Word" space with different trade-offs. DOM-docx emphasizes structural fidelity (real Word constructs, tested against a visual-regression loop) and a light core with optional browser-based style resolution. html-to-docx is a popular Node peer; Pandoc is a heavier universal converter covering many formats. The best pick depends on your stack and fidelity needs.

Does DOM-docx need a browser or Playwright?

Not for its default inline path, which runs on Node.js 20+ with just docx, cheerio, and fflate. Playwright and Chromium are optional, needed only for the "computed" style mode (resolving style blocks and CSS classes) or for rasterizing complex SVG and canvas to PNG.

Can DOM-docx generate or publish content?

No. DOM-docx is a converter — it turns HTML you already have into a Word file, and its job ends there. It generates no text, images, or video and publishes to no platform. To create content and distribute it across platforms you would use a content engine like Kompozy, then optionally convert its HTML output with DOM-docx.

Is DOM-docx stable enough for production?

It is capable but young — a v0.1.x release with several documented limits (no external stylesheets on the inline path, no web fonts, no CSS grid/float, no forms, no table rowspan). For straightforward HTML it works well; for complex layouts, test against your real documents and check the GitHub repo for the current feature set before depending on it.

Who should use DOM-docx versus Kompozy?

Developers who need an HTML-to-Word conversion step should use DOM-docx (or html-to-docx or Pandoc). Creators and founders who want to generate content and publish it across platforms should use Kompozy — it is a content generation and publishing engine, not a converter. They sit at different points in the workflow and can be used together.

Related deep guides

See DOM-docx vs Kompozy comparison → · Get Started →