Definition
dom-to-pptx
dom-to-pptx is a client-side JavaScript library that converts any HTML element (or array of elements) into a fully editable PowerPoint .pptx file. Released in 2026, it is built on top of PptxGenJS and preserves gradients, shadows, rounded images, and SVG vectors with high fidelity.
Unlike screenshot-based exporters, dom-to-pptx walks the DOM, reads each element's computed styles, and maps them to native PowerPoint shapes via PptxGenJS — so the resulting deck is editable, not a flattened image. It depends on PptxGenJS for PPTX writing, html2canvas for raster fallbacks, fonteditor-core and opentype.js for font embedding, and JSZip plus pako for the underlying ZIP container. WebToSlides covers the URL / pasted HTML workflow on the server side; dom-to-pptx covers the browser-rendered HTML workflow on the client.
Related tools & guides
Authoritative sources: github.com · npmjs.com
Turn any webpage or HTML into editable slides
WebToSlides converts a URL, HTML, or Markdown into a native, editable PPTX you can open in PowerPoint, Keynote, or Google Slides.