Skip to content
NewTable editing in 0.4New in 0.4: table editing

Open, edit, and save .pptx without leaving the browser

Composable React primitives for viewing and editing PowerPoint decks.

No presentation open

Pick a .pptx file to render it here, then edit, reorder, and save it back.

Lossless save

Edit one slide.
Save the same file.

Only the parts you edit are rewritten. Everything else is saved byte-for-byte.

Live: edit the slide above and this list updates

after-the-needle-drops-mat.pptx
  • ppt/presentation.xmlsameunchanged2.4 KB
  • ppt/slides/slide1.xmlsameunchanged9.8 KB
  • ppt/slides/slide2.xmlsameunchanged32.2 KB
  • ppt/slides/slide3.xmlsameunchanged40.6 KB
  • ppt/theme/theme1.xmlsameunchanged4.5 KB
  • + 50 more, unchanged+ 50 more parts, unchanged
0 of 55 parts changedawait store.save()

Everything a deck needs

Renders like PowerPoint.
Edits like PowerPoint.

Faithful rendering

Shapes, fills, shadows, and images, inherited through layouts and themes.

Charts

Bar, line, area, pie, scatter, and more, drawn from the deck's data.

Direct manipulation

Move, resize, rotate, and snap, with PowerPoint's shortcuts.

Inline text editing

Edit text in place and format it with useSelection.

Table editing

Add rows and columns, merge cells, and style borders.

Embedded fonts

Fonts packed in the file load, so slides keep their type.

OOXML coverage

Measured against
ECMA-376.

preset geometries
187
built-in table styles
74
chart types
9
image formats
6
AreaWhat rendersStatus
  • Shapes and geometryAll 187 presets, custom geometry, groups, and connectorsSupported
  • Fills, lines, and effectsSolid, gradient, pattern, and picture fills, plus shadowsSupported
  • TextBullets, autofit, vertical text, and embedded fontsSupported
  • TablesMerges, borders, and 74 built-in stylesSupported
  • ChartsNine types; 3-D charts render flatPartial
  • SmartArt, EMF, and OLEDrawn from the fallback stored in the filePartial
  • Transitions and animationsSlides render as static framesNot yet
  • Notes, comments, 3-D, and WMFKept on save, not renderedNot yet
import { Presentation } from "@diceui/pptx";

export function Editor({ file }) {
  return (
    <Presentation.Root file={file}>
      <Presentation.ThumbnailList />
      <Presentation.Viewport>
        <Presentation.Slide>
          <Presentation.Selection />
        </Presentation.Slide>
      </Presentation.Viewport>
    </Presentation.Root>
  );
}

Composable API

Compose your editor.

Unstyled, accessible parts you arrange and style like shadcn/ui.

Root
Loads the file and owns the store
ThumbnailList
Lazy slide previews
Viewport
Zoom, fit, and scroll navigation
Slide
Renders the active slide
Selection
Box, handles, snap guides, marquee

Architecture

React is optional.

The engine runs on its own. React adds the components.

With React

Your appNext.js, Vite
@diceui/pptxComponents and hooks
RootViewportSlideSelection
@diceui/pptx-coreThe engine
ParseRenderEditSave

Without React

Your appVue, Svelte, plain JS
Your bindingsCall the core directly
PptxViewerrenderSlide()applyEdit()writePptx()
@diceui/pptx-coreThe engine
ParseRenderEditSave