Media editor: build vs buy in the age of AI
Polotno

Developer tool

PPTX to JSON converter

Convert a PowerPoint file to structured JSON in your browser. Every slide becomes a page of editable text, shapes, pictures and tables, with a preview and a list of import warnings.

Drop a PPTX file here to convert it to JSON

or

Runs entirely in your browser. Your file never leaves your device.

Quick answer

Drop a .pptx, get JSON describing every slide as editable elements, a rendered preview, and the warnings for anything the import approximated.

Formula: PPTX → Polotno JSON (browser-only via @polotno/pptx-import)

Drop a PowerPoint file and get it back as a design document in the Polotno design schema: one page per slide, and every text box, shape, picture and table as its own element with a position, a size and a style. The slides open in the live editor below the JSON, next to the list of what the import could not reproduce exactly.

The output shape

The JSON has a top-level width / height in pixels at 96 dpi, taken from the slide size, a fonts array, and a pages array. Each page has a children array of typed elements:

  • type: "text": text boxes with their runs, paragraphs and bullets, font family, size, colour and alignment.
  • type: "figure" and type: "line": basic shapes and straight lines, with fill and stroke.
  • type: "svg": every other shape, such as stars, arrows and freeform shapes, as vector artwork.
  • type: "image": pictures, inlined as data URLs.
  • type: "table": tables with their cells, borders and cell text.
  • type: "group": grouped shapes, and charts drawn as shapes and text.

The shapes of the slide master and layout are copied onto every page, behind the slide's own shapes. A hidden slide is imported too, and its page is marked as hidden in its custom field.

Import warnings

PowerPoint can draw things a browser canvas cannot draw the same way. The import still succeeds, and each difference is reported: the panel above the editor lists every warning with its code and page. The codes cover substituted fonts, unusable embedded fonts, unsupported text, fill and shape features, pictures in formats such as EMF or WMF, linked media, and objects that import as a placeholder. The full list is in the PPTX import docs.

What is not imported

  • Animations, transitions and speaker notes.
  • Text outlines, highlights, underline colours, custom tab stops and WordArt warps. Custom bullet glyphs draw as a disc.
  • Chart types other than 2-D bar, column, line, area, scatter, pie and doughnut: these import as their fallback picture or a placeholder.
  • Legacy .ppt files and password-protected decks, which are rejected.

The same conversion in code

pptx-to-json.ts
import { pptxToJson } from "@polotno/pptx-import";

const json = await pptxToJson({
  pptx: await file.arrayBuffer(),
  onWarning: (w) => console.warn(w.code, w.message, w.details),
});

// json is a Polotno design - load into a store, edit, re-export
import { createStore } from "polotno/model/store";
const store = createStore({ key: "YOUR_KEY" });
store.loadJSON(json);

Full API reference: PPTX Import docs. The output follows the Polotno design format.

How it works

  1. Step 1

    Drop the .pptx

    pptxToJson() unzips and parses the deck in your browser. Nothing is uploaded.
  2. Step 2

    Read the JSON and the warnings

    One page per slide, with typed elements at explicit coordinates. The warnings list names every feature that was approximated or dropped, by code and page.
  3. Step 3

    Check the preview

    The slides open in the live Polotno editor, rendered from the same JSON. Copy or download the JSON when it looks right.

Frequently asked questions

Q: What does PPTX to JSON give me?

A design document in the Polotno design schema: top-level width, height, unit and dpi, a fonts array, and a pages array with one page per slide. Each page holds typed elements with explicit position, size and rotation: text, figures, lines, images, tables, groups and SVG shapes. It is the object store.loadJSON() in the Polotno SDK accepts.

Q: Are the slides flattened into images?

No. Text boxes arrive as text with their runs, paragraphs and bullets. Shapes, pictures and tables are separate elements, and 2-D bar, column, line, area, scatter, pie and doughnut charts become editable shapes and text. Other chart types, embedded (OLE) objects, equations, ink and SmartArt saved without its cached drawing import as a picture or a placeholder, each with a warning.

Q: What are the import warnings?

Everything the importer approximated or dropped, as it reports it: a substituted font, a fill or shape effect that cannot be drawn the same way, a text feature such as a custom bullet glyph, a picture in a format browsers cannot draw. Each warning has a stable code, a message and the page it is on. When nothing was approximated, the panel says "No import warnings".

Q: What is not imported?

Animations, transitions and speaker notes. Text outlines, highlights, underline colours, custom tab stops and WordArt warps are dropped, and custom bullet glyphs draw as a disc. Audio clips keep only their icon picture.

Q: What happens to the fonts?

A font with a Google Fonts family of the same name uses that family, and a font the deck embeds is used itself when its licence allows. Calibri, Cambria, Arial, Helvetica, Times New Roman and Courier New map to metric-compatible families, so lines break where PowerPoint breaks them. Anything else is replaced by the closest available family and reported as a FONT_SUBSTITUTED warning.

Q: Can I convert a .ppt file?

No. Legacy binary .ppt files are rejected. Open the file in PowerPoint, Keynote or Google Slides, save it as .pptx, and convert that. Password-protected decks are rejected too: remove the password in PowerPoint first.

Q: Why is the JSON so much larger than my deck?

Pictures, videos and embedded fonts are inlined as data URLs, so the design loads with nothing else to fetch. Every element carries its own copy of its picture, so a picture on the slide master is repeated on every slide that shows it. In your own app, replace the data URLs with hosted files after the import.

Q: Is my file uploaded?

No. The deck is unzipped and parsed in your browser, and the JSON is built there. The only exception is the optional "Report issue" button, which sends the file only if you choose to.

Q: Is this the same as the @polotno/pptx-import package?

Yes. This page is a UI on top of pptxToJson() from @polotno/pptx-import, which runs in the browser and in Node.js 22.13 or newer. Install the package to run the same conversion in your own code.

Want this in your app? Embed Polotno SDK.

TRUSTED BY

100,000+

CREATORS

300+

BUSINESSES

ExpediaUnbounceLovePopPostGridPredis.ai