Formats
Converting PowerPoint (PPTX) to Markdown with MarkItDown
A deck becomes one Markdown document with a marker before each slide; titles, text, tables, speaker notes and even chart data come through. Layout, animation and anything that is only a picture do not. We built one small deck per behaviour and recorded what version 0.1.9 did with each.
Short answer
Install the extra, convert, save with -o:
pip install "markitdown[pdf]"markitdown report.docx -o report.md(Use pptx instead of pdf in the first command, and a .pptx file in the second.) Slide numbers, titles, text, tables, notes and chart data are kept. Bullet indentation is flattened, and pictures become file-name placeholders unless you add an LLM.
Tested with markitdown 0.1.9 · Python 3.13 · markitdown[all] 0.1.9 · Linux lab (LibreOffice 24.2 for legacy files); vision models run by Ollama 0.40 on a CPU-only Ubuntu runner (T10) · 2026-11-15 · evidence: office-features.csv, llm-providers.csv, pptx-features.jsonl, llm-providers.json
Anatomy of a converted slide
This is the output for a two-slide deck with a title slide, bullets at three levels and speaker notes:
<!-- Slide number: 1 -->
# Deck title
A subtitle
<!-- Slide number: 2 -->
# Key points
Level one
Level two
Level three
Back to one
### Notes:
These are the speaker notes.Deck title
A subtitle
<!-- Slide number: 2 -->Key points
Level one Level two Level three Back to one
Notes:
These are the speaker notes.
- The HTML comment
<!-- Slide number: N -->opens every slide. - The slide title is a first-level heading, so a deck has one
#per slide. For chunking that means every slide is a natural section (split recipe below). - Body text is one line per paragraph, with no bullet marker.
### Notes:precedes the speaker notes.- Tables, pictures and charts follow in the same way, shown below.
Behaviour by behaviour
| Behaviour | Result | What came out | Note |
|---|---|---|---|
| Slide markers and titles | kept | <!-- Slide number: 1 -->↵# Deck title↵A subtitle↵↵<!-- Slide number: 2 -->↵# Key points↵Level one↵Level two↵Level three↵Back to one↵↵### Notes:↵These are the speaker notes. | Every slide opens with <!-- Slide number: N --> and the title is a # heading. |
| Nested bullets | changed | Level one↵Level two↵Level three↵Back to one↵↵### Notes:↵These are the speaker notes. | Every level comes out as a flush plain line: no list marker, no indentation. |
| Speaker notes | kept | ### Notes:↵These are the speaker notes. | Notes follow a ### Notes: heading. |
| Empty notes pane | kept | <!-- Slide number: 1 -->↵# Empty notes↵body | No empty ### Notes: heading. |
| Table | changed | <!-- Slide number: 1 -->↵# A table↵| Station | Rainfall | Notes |↵| --- | --- | --- |↵| Alpha | 412.5 | OK | stable |↵| Bravo | 388.0 | line one line two | | A proper header row (unlike Word); check how the pipe and the two-paragraph cell came out. |
| Merged table cells | changed | <!-- Slide number: 1 -->↵# Merged↵| Merged header | | |↵| --- | --- | --- |↵| a | b | c | | The merged text appears once. |
| Pictures with and without alt text | changed | <!-- Slide number: 1 -->↵# Pictures↵↵↵↵ | Each picture becomes an image reference to a file name that is not written anywhere; the alt text is the only content. |
| keep_data_uris on slide pictures | kept | <!-- Slide number: 1 -->↵# Pictures↵↵ | changed | <!-- Slide number: 1 -->↵Title written in a text box↵Body text box | No heading is produced: the text is a plain line. |
| Reading order of shapes | changed | <!-- Slide number: 1 -->↵Created second but placed at the top↵Created first but placed at the bottom | Order observed in the output: see the excerpt (positional or creation order). |
| Text inside a grouped shape | kept | <!-- Slide number: 1 -->↵Text inside a group | Text in groups is read. |
| Legacy .ppt | lost | UnsupportedFormatException: Could not convert stream to Markdown. No converter attempted a conversion, suggesting that the filetype is simply not supported. | No converter for .ppt. |
| .ppt converted to .pptx with LibreOffice first | kept | <!-- Slide number: 1 -->↵# Deck title↵A subtitle↵↵<!-- Slide number: 2 -->↵# Key points↵Level one↵Level two↵Level three↵Back to one↵↵### Notes:↵These are the speaker notes. | Identical to the original conversion |
| .odp (OpenDocument presentation): directly and through LibreOffice | kept | directly: UnsupportedFormatException: Could not convert stream to Markdown. No converter attempted a conversion, suggesting that the filet | via .pptx: <!-- Slide number: 1 -->↵# Deck title↵A subtitle↵↵<!-- Slide number: 2 -->↵# Key points↵Level one↵Le | Directly: refused. Through LibreOffice to .pptx: identical to converting the original. |
| .odp (OpenDocument presentation) | lost | UnsupportedFormatException: Could not convert stream to Markdown. No converter attempted a conversion, suggesting that the filetype is simply not supported. | No converter for .odp. |
Text, titles and reading order
- Titles: the slide's title placeholder becomes the
#heading. A slide that uses a big text box instead of a title placeholder gets no heading: the text is a plain line. - Order: shapes are output by position, top to bottom, not by creation order. Our deck with a box created first but placed lower came out in visual order.
- Bullets: every level is a flush plain line, with no marker and no indentation. If hierarchy matters, parse the deck with
python-pptxyourself. - Grouped shapes: the text inside a group is read.
Speaker notes
Notes follow a ### Notes: heading; a notes page that was opened but is empty produced no heading. To drop them or keep only them:
import re
from markitdown import MarkItDown
markdown = MarkItDown().convert("samples/pptx-basic.pptx").markdown
without_notes = re.sub(r"\n### Notes:\n.*?(?=\n<!-- Slide number|\Z)", "", markdown, flags=re.S)
only_notes = re.findall(r"### Notes:\n(.*?)(?=\n<!-- Slide number|\Z)", markdown, flags=re.S)
print("with notes:", len(markdown), "characters; without notes:", len(without_notes), "characters")
print("only the notes:", [n.strip() for n in only_notes])with notes: 172 characters; without notes: 132 characters
only the notes: ['These are the speaker notes.'] Tables
A slide table becomes a pipe table with a proper header row, unlike Word. A | in a cell is not escaped and a two-paragraph cell is joined with a space; a merged header's text appears once:
<!-- Slide number: 1 -->
# A table
| Station | Rainfall | Notes |
| --- | --- | --- |
| Alpha | 412.5 | OK | stable |
| Bravo | 388.0 | line one line two |A table
| Station | Rainfall | Notes |
|---|---|---|
| Alpha | 412.5 | OK |
| Bravo | 388.0 | line one line two |
Charts become data tables
The differentiator: a native chart is output as its underlying category and series table, with its title:
<!-- Slide number: 1 -->
# column chart
### Chart: Column of revenue
| Category | Revenue | Cost |
|---|---|---|
| Q1 | 10.5 | 6.0 |
| Q2 | 14.0 | 7.5 |
| Q3 | 9.0 | 5.0 |
| Q4 | 12.0 | 8.0 |column chart
Chart: Column of revenue
| Category | Revenue | Cost |
|---|---|---|
| Q1 | 10.5 | 6.0 |
| Q2 | 14.0 | 7.5 |
| Q3 | 9.0 | 5.0 |
| Q4 | 12.0 | 8.0 |
Column, bar, line, pie, stacked and scatter charts all produced such a table, with the chart title and the series names. Charts pasted as pictures are pictures (next section). Sample deck with a chart.
Pictures on slides: three outcomes
- Default. The picture becomes an image reference using its alt text, pointing at a name like
Picture2.jpgthat is not written anywhere; a picture with no alt text uses its file name. Only the alt text is useful:
<!-- Slide number: 1 -->
# Pictures

Pictures
[image]
[image]
- Keep the image data. With
keep_data_uris=Truethe picture is embedded as base64: the output of that two-picture deck grew from 114 to 22,542 characters (image page). - Describe it with an LLM. When an LLM client is configured, the description is merged with the alt text. We ran this with two small vision models served by Ollama on a CPU-only machine (no hosted service, no key):
<!-- Slide number: 1 -->
# Nested bullets
Level 0
Level 1
Level 2
Level 3
<!-- Slide number: 2 -->
# Hidden slide
<!-- Slide number: 3 -->
# Picture without alt text
Nested bullets
Level 0 Level 1 Level 2 Level 3
<!-- Slide number: 2 -->Hidden slide
<!-- Slide number: 3 -->Picture without alt text
[image]
| Model | Image | Seconds | Description starts |
|---|---|---|---|
moondream | chart.png | 8.9 | # Description: The image features a bar graph that displays the quarterly revenue of a company. The graph is divided into four bars, each representing a quarter of the year. The bars are colored in red, with the first ba |
moondream | photo-exif.jpg | 7.9 | # Description: The image features a bar graph that displays quarterly revenue (Q4) for a company. The graph is divided into four bars, each representing a quarter of the year. The bars are colored in red, with the first |
moondream | scan-page.png | 7.0 | # Description: The image shows a page of a document that has been marked as "scanned" and "field station Alpha". The page is white and has a gray border. The text on the page is in black, and it appears to be a list of i |
qwen2.5vl:3b | chart.png | 31.9 | # Description: "Quarterly revenue (sample chart) shows a significant increase in Q4 compared to the other quarters, indicating a strong performance in the fourth quarter." |
qwen2.5vl:3b | photo-exif.jpg | 27.9 | # Description: "Quarterly Revenue Growth: A Sample Chart Showing a Steady Increase from Q1 to Q4" |
qwen2.5vl:3b | scan-page.png | 91.0 | # Description: "Field Station Alpha: A Milestone in Environmental Monitoring - Rainfall Surges by 12% Year-on-Year, Highlighting the Precision and Reliability of Our Sensor Uptime, Which Reached an Exceptional 99.2%." |
moondream was faster (about 8 seconds per image) but gave the same long description for a custom one-sentence prompt, and answered the Spanish prompt in English; qwen2.5vl:3b took 28 to 91 seconds and followed both. Hosted models are described on the LLM page; we did not test them. Slides that are entirely a screenshot of text: OCR.
Hidden slides, sections, animations, video and audio
Hidden slides are included. Animations and transitions are ignored. We did not test sections, embedded video or audio, links on shapes, SmartArt or comments.
When one bad shape stops the whole deck
Upstream reports show a single unusual shape aborting a conversion. We did not reproduce those fixtures, so we cannot say which still fail on 0.1.9; releases 0.1.3, 0.1.7 and 0.1.8 each fixed such cases (version notes).
.ppt, .pps, .odp, Keynote and Google Slides
.ppt and .odp raise UnsupportedFormatException. The tested route is LibreOffice in headless mode to .pptx, then MarkItDown; for our deck the result was identical to converting the original:
soffice --headless --convert-to docx report.doc(Use --convert-to pptx and the .ppt file.) We did not test Google Slides or Keynote exports. Slides saved as PDF lose the slide structure and the notes (PDF page).
Big decks
A synthetic 150-slide deck converted in 1.4 seconds on a CI runner and produced 9,274 characters (format matrix). We did not measure a picture-heavy deck.
Splitting the output per slide
Each slide starts with a predictable comment line, so splitting is a one-line regular expression, and the result feeds chunking directly:
import re
from markitdown import MarkItDown
markdown = MarkItDown().convert("samples/pptx-basic.pptx").markdown
# every slide starts with a comment line: split on it and keep the number
parts = re.split(r"<!-- Slide number: (\d+) -->\n", markdown)
slides = {int(n): body.strip() for n, body in zip(parts[1::2], parts[2::2])}
for n, body in slides.items():
print(f"--- slide {n}: {len(body)} characters, first line: {body.splitlines()[0]!r}")--- slide 1: 23 characters, first line: '# Deck title'
--- slide 2: 97 characters, first line: '# Key points' Version notes for PowerPoint
- since 0.1.3 Fix for shapes without a position.
- since 0.1.7 SVG pictures without a raster fallback, and faster chart conversion.
- since 0.1.8 Many PPTX fixes; empty titles and notes no longer produce headings. A failed LLM image call now raises an error instead of being swallowed.