PPTX Parsing API

Parse PowerPoint presentations to structured JSON. Slide text, speaker notes, tables and shapes are kept, slide by slide.

Presentations Are Visual Containers That Defeat Text Extraction

A .pptx file is a zip archive of PresentationML, the XML format that records slides, shapes, text, tables and speaker notes. Many parsers turn slides into images or plain text, so you can no longer tell title, body, notes and table apart.

AILANG Parse reads PresentationML directly. Each slide becomes a section, and its title, body text, tables and speaker notes are separate blocks. Content comes out in reading order: title first, then the rest by position on the slide.

Speaker notes often say more than the slide itself: talking points, data sources, follow-up actions. A parser that converts slides to PDF first loses them, because notes are not part of the slide image.

Raw PresentationML vs Structured Output

Raw slide1.xml + notesSlide1.xml
<p:sld>
  <p:cSld>
    <p:spTree>
      <p:sp>
        <p:nvSpPr><p:nvPr>
          <p:ph type="title"/>
        </p:nvPr></p:nvSpPr>
        <p:txBody>
          <a:p><a:r>
            <a:t>Q1 Results</a:t>
          </a:r></a:p>
        </p:txBody>
      </p:sp>
      <p:sp>
        <p:nvSpPr><p:nvPr>
          <p:ph idx="1"/>
        </p:nvPr></p:nvSpPr>
        <p:txBody>
          <a:p><a:r>
            <a:t>Revenue up 15% YoY</a:t>
          </a:r></a:p>
          <a:p><a:r>
            <a:t>New markets: APAC, LATAM</a:t>
          </a:r></a:p>
        </p:txBody>
      </p:sp>
    </p:spTree>
  </p:cSld>
</p:sld>

<!-- notesSlide1.xml -->
<p:notes>
  <p:cSld>
    <p:spTree>
      <p:sp><p:txBody>
        <a:p><a:r>
          <a:t>Mention APAC expansion
timeline: Q3 launch</a:t>
        </a:r></a:p>
      </p:txBody></p:sp>
    </p:spTree>
  </p:cSld>
</p:notes>
Structured output
{
  "metadata": {
    "title": "Q1 Results",
    "author": "Marketing Team",
    "slides": 24
  },
  "blocks": [
    {
      "type": "section",
      "kind": "slide",
      "blocks": [
        {
          "type": "heading",
          "level": 1,
          "text": "Q1 Results"
        },
        {
          "type": "text",
          "text": "Revenue up 15% YoY"
        },
        {
          "type": "text",
          "text": "New markets: APAC, LATAM"
        },
        {
          "type": "text",
          "style": "speaker-notes",
          "text": "Mention APAC expansion
timeline: Q3 launch"
        }
      ]
    }
  ]
}

What Gets Extracted

Slide Text & Titles

Titles and subtitles become headings. Body text becomes text blocks. Text is ordered title first, then by position on the slide.

Speaker Notes

Notes, which PowerPoint stores in notesSlide files, come out as text with style: "speaker-notes", placed with the slide they belong to. You get what the presenter says, not only what the audience sees.

Tables within Slides

Tables on slides keep their rows, columns, merged cells and cell text. Each appears as a table block inside its slide's section. Deep dive →

Shape & Text Box Content

Text is read from every shape that holds it: placeholders, free text boxes, callouts. Text inside grouped shapes is placed in reading order.

Slide Ordering

Slides come out in presentation order, as set in presentation.xml. Each slide becomes a numbered section with kind: "slide".

Comments & Metadata

Comments on slides come with their author and date. Presentation metadata (title, author, slide count, created date) comes from the file's properties. Comment details →

Speaker Notes

PPTX stores speaker notes in separate notesSlide files, one per slide. They hold the presenter's talking points, data sources and context that is not on the projected slide. AILANG Parse returns each slide's notes as a section with kind: "notes", holding the note text with style: "speaker-notes". The notes section comes directly after its slide and names it (name: "Slide 3"). Notes are matched to slides by the links inside the file, not by file name, and slides come out in the deck's presentation order (ppt/presentation.xml).

This matters for AI applications, because the notes often hold more usable detail than the bullet points. A training slide says "Security Best Practices"; the notes hold the actual procedures and exceptions.

[
  {"type": "heading", "level": 1, "text": "Security Best Practices"},
  {"type": "text", "text": "Follow the principle of least privilege"},
  {"type": "text", "text": "Rotate credentials every 90 days"},
  {"type": "section", "kind": "notes", "name": "Slide 3", "blocks": [
    {"type": "text", "style": "speaker-notes",
     "text": "Exception: service accounts in prod-critical path use 180-day rotation per SEC-2024-003. Mention the incident from January if anyone pushes back on rotation frequency."}
  ]}
]

Tables in Slides

Slides often contain data tables: quarterly results, comparisons, feature lists. PowerPoint stores them as a:tbl elements and, like Word, marks cells merged across columns with gridSpan and cells merged down rows with vMerge.

{
  "type": "table",
  "headers": [
    {"text": "Feature"},
    {"text": "Free"},
    {"text": "Pro"},
    {"text": "Business"}
  ],
  "rows": [
    [{"text": "API Requests"}, {"text": "1K/mo"}, {"text": "100K/mo"}, {"text": "500K/mo"}],
    [{"text": "File Size"}, {"text": "10 MB"}, {"text": "25 MB"}, {"text": "50 MB"}],
    [{"text": "Support"}, {"text": "Community"}, {"text": "Email"}, {"text": "Dedicated"}]
  ]
}

See Tables & Merged Cells for the full specification.

Use Cases

Training Material Indexing

Parse corporate training decks into structured blocks. Speaker notes hold the detailed procedures and context that the slides only summarize. Index both slide content and notes for enterprise search and knowledge bases.

Meeting Deck Summarization

Give an LLM structured slide JSON to prepare meeting summaries. The model sees titles, bullet points, data tables and speaker notes as separate typed blocks instead of one run of flattened text.

Compliance Presentation Review

Regulatory presentations (board reports, audit findings, risk assessments) need systematic review. With structured output you can automate checks: required sections are present, data tables match the expected format, reviewer comments are captured.

Sales Enablement Search

Sales teams maintain hundreds of decks. Parse them into structured JSON for semantic search: find slides about specific products, pricing tables, competitive comparisons. Speaker notes bring out the positioning and objection handling that is not on the slide.

Presentation-to-Document

Convert PPTX to Markdown, HTML or Quarto for documentation. Slide titles become headings, bullet points become lists, tables are kept, and speaker notes can be included as annotations or footnotes.

AI Slide Analysis

Give LLMs the full context of each slide: title, body, table data and speaker notes as typed blocks. The model can identify key messages, extract action items from notes and cross-reference data tables across slides. These tasks are much harder with flattened text.

Only have the deck as a PDF? PDF to PowerPoint turns it back into editable slides in your own template.

Try It

CLI

# Parse a PPTX file
docparse presentation.pptx

# Convert PPTX to Markdown
docparse presentation.pptx --convert output.md

# Convert PPTX to HTML
docparse presentation.pptx --convert output.html

API

curl -X POST https://docparse.ailang.sunholo.com/api/v1/parse \
  -H "Content-Type: application/json" \
  -d '{"filepath":"sample_pptx_formatting","outputFormat":"markdown","apiKey":"YOUR_API_KEY"}'

Python SDK

from ailang_parse import DocParse

client = DocParse(api_key="YOUR_API_KEY")
result = client.parse_file("presentation.pptx")

# Iterate slides
for block in result.blocks:
    if block.kind == "slide":
        for child in block.blocks:
            if child.type == "heading":
                print(f"Slide: {child.text}")
            if child.style == "speaker-notes":
                print(f"  Notes: {child.text[:80]}...")

Parse in Browser    API Reference

Frequently Asked Questions

How do I parse a PPTX file to JSON?

Send the .pptx file to the AILANG Parse API or use the Python/JS/Go SDK. The parser reads PresentationML directly and returns structured JSON with slide content, notes, and tables.

Are speaker notes extracted from PPTX files?

Yes. Each slide's notes come out as a section with kind: "notes", placed directly after that slide and named after it (name: "Slide 3"). The note text has style: "speaker-notes" and is kept in full. Character formatting inside a note is not kept.

How are tables in slides handled?

Tables on slides keep their rows, columns, merged cells and cell text. See table extraction docs.

Does PPTX parsing preserve slide order?

Yes. Slides are parsed in presentation order from presentation.xml. Each slide becomes a numbered section block.

What about shapes and text boxes in slides?

Text is read from every shape that holds it (titles, subtitles, content placeholders, free text boxes). It is ordered title first, then by position on the slide.

How fast is PPTX parsing?

Typical presentations parse in under 50ms. Nothing is rendered and LibreOffice is not needed. AILANG Parse scores 95.0% on the OfficeDocBench benchmark.