Unzip
parser / opc
A .pptx is an Open Packaging Convention archive. The ZIP central directory is read in memory and relationship parts are followed to reach slides, layouts, masters, and the theme.
pptx2html-turbo is a from-scratch ECMA-376 renderer written in Rust and compiled to WebAssembly. Drop a deck below and it is unzipped, parsed, resolved against its layout and master, and drawn as positioned HTML. Nothing is uploaded.
The file is read into memory, converted by the WebAssembly module, and rendered into a sandboxed frame with an opaque origin. Reload the page and it is gone.
Whole-slide scaling keeps rendered coordinates proportional; it does not promote approximate text layout to exact.
Each pass is a crate module, and the same code runs in the CLI, the Python bindings, and here.
parser / opc
A .pptx is an Open Packaging Convention archive. The ZIP central directory is read in memory and relationship parts are followed to reach slides, layouts, masters, and the theme.
parser / xml
quick-xml walks every part as a stream of SAX events rather than building a document tree, which keeps a large deck inside a small, predictable memory envelope.
resolver
Every property walks the inheritance chain in order: shape, layout placeholder, master placeholder, txStyles, defaultTextStyle, then the specification default. Colours resolve through the slide colour map into the theme.
model / units
English Metric Units become CSS pixels at 914400 EMU to the inch. Geometry stays absolute, so whole-slide scaling keeps coordinates proportional. Initial text layout and font metrics remain approximate.
renderer
Shapes, text runs, tables, and preset geometry are emitted as positioned HTML with inline SVG paths. Anything the renderer cannot resolve is recorded as a coded diagnostic instead of being dropped.
These rows are highlights, not the full support contract. The generated ledger tracks semantic, visual, and behavioral status for 56 features. v2.1.0 has zero exact dimensions; every current status is approximate or fallback. Read the Browse all 56 capabilities Pages catalog, or the full capability guide.
| Area | Behaviour |
|---|---|
| Theme colours | Twelve modifiers resolved through the slide colour map, including tint, shade, lumMod, and satMod, with layout-level overrides honoured. |
| Inheritance | Slide to layout to master to theme, with placeholders matched by type and index at every level. |
| Preset shapes | 187 geometries rendered as SVG with adjust values. An unresolved custom guide formula is preserved verbatim and reported rather than substituted with zero. |
| Text | Runs, paragraph properties, bullet definitions, body insets, and autofit hints. Explicit breaks and absolute boxes are preserved where supported; automatic wrapping and font metrics remain approximate. |
| Tables and groups | Cell spans, direct borders and fills, plus nested group shapes with their own child coordinate spaces. Package table-style definitions and unsupported primitives remain fallback-tier and diagnostic. |
| Images | Embedded parts are inlined as base64 by default with source cropping applied, or written alongside the document when external mode is selected. |
| Diagnostics | Every fallback carries a stable code and an order, so coverage gaps stay countable instead of silent. Convert a deck above to see the ones your own file produces. |
This page and the npm package convert PPTX in the browser. The native CLI and Python API support seven inputs: PPTX, DOCX, DOC, XLSX, XLS, PPT, and PDF. See the universal document guide for runtime requirements and format-specific limits.
# install npm i @briank-dev/pptx-to-html // render into a sandboxed frame import { pptxToHtml } from '@briank-dev/pptx-to-html'; frame.srcdoc = await pptxToHtml(file);
# binaries ship with each release pptx2html deck.pptx -o deck.html pptx2html deck.pptx --slides 1,3,5-8 pptx2html deck.pptx --scale 2.0 pptx2html deck.pptx --diagnostics d.json
# bindings built with maturin import pptx2html html = pptx2html.convert_file( "deck.pptx") out = pptx2html.convert_with_metadata( "deck.pptx") print(len(out.diagnostics))