# MarkItDown vs Pandoc

> MarkItDown 0.1.9 and Pandoc 3.9 on 17 files: Pandoc reads RTF, ODT and TSV that MarkItDown does not; MarkItDown reads PDF. How tables and dates differ.

Source: https://markitdown.dev/compare/pandoc/ · Updated 2026-11-16·Upstream source ↗

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](https://markitdown.dev/data/comparison-pandoc.csv), [pandoc.json](https://markitdown.dev/evidence/T16/pandoc.json), [t16\_pandoc.py](https://markitdown.dev/evidence/T16/t16_pandoc.py)

## Results on 17 files

Characters, headings and table rows per tool; an error shows what the tool said instead
| File | MarkItDown chars | MarkItDown headings | MarkItDown table rows | MarkItDown error | Pandoc chars | Pandoc headings | Pandoc table rows | Pandoc error |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| `report.docx` | 838 | 6 | 6 |  | 914 | 6 | 5 |  |
| `docx-table-header.docx` | 97 | 0 | 4 |  | 124 | 0 | 4 |  |
| `docx-merged-cells.docx` | 121 | 1 | 5 |  | 348 | 1 | 0 |  |
| `deck.pptx` | 622 | 7 | 11 |  | 494 | 5 | 5 |  |
| `workbook.xlsx` | 526 | 3 | 15 |  | 838 | 3 | 13 |  |
| `report.rtf` | 47312 | 0 | 0 |  | 1050 | 0 | 6 |  |
| `report.odt` | 0 | 0 | 0 | UnsupportedFormatException | 1018 | 6 | 6 |  |
| `deck.odp` | 0 | 0 | 0 | UnsupportedFormatException | 0 | 0 | 0 | Unknown input format odp |
| `workbook.ods` | 0 | 0 | 0 | UnsupportedFormatException | 0 | 0 | 0 | Unknown input format ods |
| `book.epub` | 319 | 3 | 3 |  | 382 | 2 | 3 |  |
| `page.html` | 358 | 3 | 4 |  | 428 | 3 | 4 |  |
| `data.csv` | 146 | 0 | 5 |  | 205 | 0 | 5 |  |
| `csv-tab.tsv` | 50 | 0 | 0 |  | 126 | 0 | 5 |  |
| `notebook.ipynb` | 59 | 1 | 0 |  | 204 | 1 | 0 |  |
| `pdf-text.pdf` | 926 | 0 | 0 |  | 0 | 0 | 0 | Unknown input format pdf |
| `pptx-basic.ppt` | 0 | 0 | 0 | UnsupportedFormatException | 0 | 0 | 0 | \[WARNING\] Could not deduce format from file extension .ppt |
| `report.doc` | 0 | 0 | 0 | UnsupportedFormatException | 0 | 0 | 0 | Unknown 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](https://markitdown.dev/formats/)). Pandoc also read the TSV file as a table.

````markdown
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*

## 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:

````markdown
# 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*

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](https://markitdown.dev/formats/excel/)):

````markdown
## 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*

````markdown
## 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*

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.

## Related

- [MarkItDown vs alternatives](https://markitdown.dev/compare/): The wider comparison.
- [Supported formats](https://markitdown.dev/formats/): What MarkItDown converts.
- [Excel (XLSX, XLS)](https://markitdown.dev/formats/excel/): Excel and dates.
- [vs Docling](https://markitdown.dev/compare/docling/): MarkItDown against Docling.

---
Independent guide to the open-source MarkItDown library. Not affiliated with or endorsed by Microsoft. Official source: https://github.com/microsoft/markitdown
