MarkItDownvsPandoc

Compare

MarkItDown vs Pandoc

Updated 2026-11-16·Upstream source ↗
Markdown view

Pandoc is a document converter with its own Markdown dialects; MarkItDown is built to feed language models. They overlap on Word, PowerPoint, Excel, EPUB and HTML, and each reads things the other does not. We ran both on 17 files with default settings and compare what came out.

Short answer

  • Pandoc reads, MarkItDown does not: RTF, ODT and TSV (MarkItDown printed the RTF's control codes back unchanged).
  • MarkItDown reads, Pandoc does not: PDF.
  • Neither reads: legacy .doc and .ppt, and OpenDocument presentations and spreadsheets (.odp, .ods).
  • Tables and dates differ: Pandoc kept a merged-cell table as HTML; for Excel it printed dates as serial numbers.

Tested with markitdown 0.1.9 · Python 3.13, Pandoc 3.9 (the binary from the pypandoc_binary package), output as GitHub-flavoured Markdown with default settings, one run per file (T16) · 2026-11-16 · evidence: comparison-pandoc.csv, pandoc.json, t16_pandoc.py

Results on 17 files

Characters, headings and table rows per tool; an error shows what the tool said instead
FileMarkItDown charsMarkItDown headingsMarkItDown table rowsMarkItDown errorPandoc charsPandoc headingsPandoc table rowsPandoc error
report.docx8386691465
docx-table-header.docx970412404
docx-merged-cells.docx1211534810
deck.pptx62271149455
workbook.xlsx526315838313
report.rtf4731200105006
report.odt000UnsupportedFormatException101866
deck.odp000UnsupportedFormatException000Unknown input format odp
workbook.ods000UnsupportedFormatException000Unknown input format ods
book.epub3193338223
page.html3583442834
data.csv1460520505
csv-tab.tsv500012605
notebook.ipynb591020410
pdf-text.pdf92600000Unknown input format pdf
pptx-basic.ppt000UnsupportedFormatException000[WARNING] Could not deduce format from file extension .ppt
report.doc000UnsupportedFormatException000Unknown input format doc
Characters, headings and table rows per tool; an error shows what the tool said instead Source: Test T16 · MarkItDown 0.1.9 · Pandoc 3.9 · 2026-11-16 · comparison-pandoc.csv · Download CSV

Where Pandoc reads more

An RTF file went in as 47,312 characters of control codes from MarkItDown and 1,050 characters of text from Pandoc; an ODT file was refused by MarkItDown (UnsupportedFormatException) and converted by Pandoc with six headings and a table (formats). Pandoc also read the TSV file as a table.

Pandoc on the RTF file
Pilot Report: Field Station Alpha

**1. Summary**

This report covers **three sites** during *spring 2026*<u> with underlined</u> ~~and struck text.~~

**1.1 Key findings**

- Rainfall rose 12% year on year
pandoc__report.rtf.md · 1,063 bytes · first 10 of 45 lines shown output (.md)

Where they differ on the same file

A table with merged cells came out of Pandoc as an HTML <table> with colspan and rowspan, which keeps the merge and is not a Markdown table:

Pandoc, merged cells
# Merged cells test

<table>
<colgroup>
<col style="width: 33%" />
<col style="width: 33%" />
<col style="width: 33%" />
</colgroup>
<thead>
<tr>
<th colspan="3">Merged header across three columns</th>
</tr>
pandoc__docx-merged-cells.docx.md · 348 bytes · first 12 of 27 lines shown output (.md)

For Excel, Pandoc printed the date column as serial numbers (46082.0) and bolded a column; MarkItDown printed dates but filled blanks with NaN (Excel):

Pandoc on the workbook
## Rainfall

| Station | Date    | Rainfall (mm) | Cost        | Share |
|---------|---------|---------------|-------------|-------|
| Alpha   | 46082.0 | 412.5         | **1200.5**  | 0.33  |
| Bravo   | 46083.0 | 388.0         | **980.0**   | 0.31  |
| Charlie | 46084.0 | 451.3         | **1410.25** | 0.36  |
|         |         |               |             |       |
pandoc__workbook.xlsx.md · 838 bytes · first 8 of 21 lines shown output (.md)
MarkItDown on the workbook
## Rainfall
| Station | Date | Rainfall (mm) | Cost | Share |
| --- | --- | --- | --- | --- |
| Alpha | 2026-03-01 | 412.5 | 1200.50 | 0.33 |
| Bravo | 2026-03-02 | 388.0 | 980.00 | 0.31 |
| Charlie | 2026-03-03 | 451.3 | 1410.25 | 0.36 |
| NaN | NaT | NaN | NaN | NaN |
| Total | NaT | 1251.8 | 3590.75 | NaN |
markitdown-all__workbook.xlsx.md · 526 bytes · first 8 of 20 lines shown output (.md)

For PowerPoint both gave a heading per slide; MarkItDown adds a slide-number comment before each, which Pandoc does not.

Which to use

Use Pandoc when your input is RTF, ODT or other text formats it reads, or when you want a particular Markdown dialect. Use MarkItDown for PDF and when you want one tool across Office files with predictable slide and sheet markers for models. We did not compare output quality beyond the counts and the cases shown.