# MarkItDown vs Docling

> We ran MarkItDown 0.1.9 and Docling 2.150 on the same PDFs and Office files, CPU only: tables, headings, scans, speed and memory, with every output shown.

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

MarkItDown reads the text that is in a file; Docling runs layout-analysis models to work out what the page looks like. On our test files that difference decided the PDF results: Docling found headings and tables MarkItDown missed, and MarkItDown was far faster and lighter. We ran both on the same machine with default settings and show the outputs.

> **Short answer**
>
> -   **Scanned PDFs, headings, and borderless or ruled tables:** Docling did better in our runs; MarkItDown has no layout analysis.
> -   **Speed and memory:** MarkItDown took 15 seconds and 263 MB on a 184-page report; Docling took 791 seconds and about 5.5 GB on four CPU cores.
> -   **Word and PowerPoint:** about equal on our small files; Docling avoided Excel's `NaN`.
> -   Neither read our 12-column table correctly.

Tested with markitdown 0.1.9 · Python 3.13.18, 4 CPU cores, no GPU, Linux lab container; markitdown 0.1.9, docling 2.150.1, pymupdf4llm 2.1; default settings; one run per file (T16) · 2026-11-16 · evidence: [comparison.csv](https://markitdown.dev/data/comparison.csv), [comparison-office.csv](https://markitdown.dev/data/comparison-office.csv), [comparison-tools.csv](https://markitdown.dev/data/comparison-tools.csv), [docling.json](https://markitdown.dev/evidence/T16/docling.json)

## Two different approaches to the same job

MarkItDown converts through the file's own structure: it extracts text from PDFs and turns Office files into HTML and then Markdown, with no models. Docling runs machine-learning models for layout and tables, which is why it downloaded about 506 MB of model files on first use and needs PyTorch. Both are MIT licensed ([MarkItDown formats](https://markitdown.dev/formats/)). Docling's own documentation is at [docling.org](https://docling.org/), another site of ours.

The tools as installed for this test
| Tool | Version | Released | Licence | Python | Models | Install footprint |
| --- | --- | --- | --- | --- | --- | --- |
| MarkItDown | 0.1.9 | 2026-10-21 | MIT | \>=3.10,<3.15 | None (rule-based; optional OCR plugin and vision model) | 196 MB bare, 407 MB with \[all\] (T01) |
| Docling | 2.150.1 | 2026-11-14 | MIT | \>=3.10 | About 506 MB of models downloaded on first use (Hugging Face cache); PyTorch in the environment | Environment with torch 2.15 was 6.5 GB for all three tools together |
| pymupdf4llm | 2.1 | 2026-11-02 | Package metadata has no licence field; depends on PyMuPDF (AGPL-3.0 or commercial) | \>=3.11 | None downloaded by us; OCR on scans came from an engine already installed in our environment | Small next to Docling; PyMuPDF only |

*The tools as installed for this test Source: Test T16 · 2026-11-16 · licences read from package metadata · comparison-tools.csv · Download CSV*

## Results on PDFs

Twelve PDFs: ten of ours with known content (tables, columns, a scan, CJK text) and two real documents. "Tables" counts Markdown tables in the output.

Every PDF through MarkItDown, Docling and pymupdf4llm: seconds, output size, headings and tables found
| Tool | File | Pages | Seconds | Characters | Headings | Tables | Table rows |
| --- | --- | --- | --- | --- | --- | --- | --- |
| markitdown | `pdf-text.pdf` | 1 | 0.04 | 926 | 0 | 0 | 0 |
| markitdown | `pdf-table-bordered.pdf` | 1 | 0.02 | 332 | 0 | 0 | 0 |
| markitdown | `pdf-table-borderless.pdf` | 1 | 0.01 | 452 | 0 | 1 | 4 |
| markitdown | `pdf-table-merged-cells.pdf` | 1 | 0.01 | 33 | 0 | 0 | 0 |
| markitdown | `pdf-wide-12-column-table.pdf` | 1 | 0.02 | 770 | 0 | 1 | 9 |
| markitdown | `pdf-two-column.pdf` | 1 | 0.15 | 3529 | 0 | 0 | 0 |
| markitdown | `pdf-header-footer.pdf` | 3 | 0.04 | 959 | 0 | 0 | 0 |
| markitdown | `pdf-bullets-numbered.pdf` | 1 | 0.01 | 111 | 0 | 0 | 0 |
| markitdown | `pdf-cjk.pdf` | 1 | 0.07 | 66 | 0 | 0 | 0 |
| markitdown | `pdf-scanned-300dpi.pdf` | 1 | 0.01 | 0 | 0 | 0 | 0 |
| markitdown | `real-pdf-cfr-21-sec-1-1.pdf` | 1 | 0.14 | 4715 | 0 | 0 | 0 |
| markitdown | `real-pdf-budget-fy2024.pdf` | 184 | 15.06 | 580166 | 0 | 70 | 149 |
| docling | `pdf-text.pdf` | 1 | 14.19 | 908 | 3 | 0 | 0 |
| docling | `pdf-table-bordered.pdf` | 1 | 1.86 | 486 | 1 | 1 | 4 |
| docling | `pdf-table-borderless.pdf` | 1 | 1.84 | 488 | 1 | 1 | 4 |
| docling | `pdf-table-merged-cells.pdf` | 1 | 1.47 | 151 | 0 | 1 | 3 |
| docling | `pdf-wide-12-column-table.pdf` | 1 | 0.8 | 548 | 1 | 0 | 0 |
| docling | `pdf-two-column.pdf` | 1 | 0.82 | 3527 | 0 | 0 | 0 |
| docling | `pdf-header-footer.pdf` | 3 | 2.58 | 826 | 3 | 0 | 0 |
| docling | `pdf-bullets-numbered.pdf` | 1 | 0.79 | 89 | 1 | 0 | 0 |
| docling | `pdf-cjk.pdf` | 1 | 0.91 | 66 | 1 | 0 | 0 |
| docling | `pdf-scanned-300dpi.pdf` | 1 | 2.1 | 127 | 1 | 0 | 0 |
| docling | `real-pdf-cfr-21-sec-1-1.pdf` | 1 | 0.9 | 4137 | 4 | 0 | 0 |
| docling | `real-pdf-budget-fy2024.pdf` | 184 | 791.34 | 789587 | 130 | 41 | 1104 |
| pymupdf4llm | `pdf-text.pdf` | 1 | 0.72 | 938 | 4 | 0 | 0 |
| pymupdf4llm | `pdf-table-bordered.pdf` | 1 | 0.21 | 361 | 1 | 1 | 4 |
| pymupdf4llm | `pdf-table-borderless.pdf` | 1 | 0.19 | 363 | 1 | 1 | 4 |
| pymupdf4llm | `pdf-table-merged-cells.pdf` | 1 | 0.17 | 50 | 0 | 1 | 3 |
| pymupdf4llm | `pdf-wide-12-column-table.pdf` | 1 | 0.18 | 555 | 1 | 0 | 0 |
| pymupdf4llm | `pdf-two-column.pdf` | 1 | 0.21 | 3532 | 0 | 0 | 0 |
| pymupdf4llm | `pdf-header-footer.pdf` | 3 | 0.31 | 990 | 3 | 0 | 0 |
| pymupdf4llm | `pdf-bullets-numbered.pdf` | 1 | 0.12 | 104 | 1 | 0 | 0 |
| pymupdf4llm | `pdf-cjk.pdf` | 1 | 0.11 | 69 | 1 | 0 | 0 |
| pymupdf4llm | `pdf-scanned-300dpi.pdf` | 1 | 1.6 | 130 | 1 | 0 | 0 |
| pymupdf4llm | `real-pdf-cfr-21-sec-1-1.pdf` | 1 | 0.3 | 4370 | 4 | 0 | 0 |
| pymupdf4llm | `real-pdf-budget-fy2024.pdf` | 184 | 100.5 | 556742 | 158 | 37 | 898 |

*Every PDF through MarkItDown, Docling and pymupdf4llm: seconds, output size, headings and tables found Source: Test T16 · markitdown 0.1.9 · Docling 2.150.1 · pymupdf4llm 2.1 · 4 CPU cores · one run each · comparison.csv · Download CSV*

Docling's first file took 14 seconds because it loads its models; the timings after that are per file.

## See the same page from both tools

A bordered table. MarkItDown printed the cells one per line; Docling produced a Markdown table:

````markdown
Measurements (bordered table)
Rainfall across the three stations rose steadily through the spring. Sensors reported every ten
minutes and the readings were averaged per day.

Station Rainfall (mm) Uptime Notes

Alpha

412.5

99.2% Battery low

Bravo
````

*markitdown__pdf-table-bordered.pdf.md · 332 bytes · first 14 of 27 lines shown*

````markdown
## Measurements (bordered table)

Rainfall across the three stations rose steadily through the spring. Sensors reported every ten minutes and the readings were averaged per day.

| Station   |   Rainfall (mm) | Uptime   | Notes       |
|-----------|-----------------|----------|-------------|
| Alpha     |           412.5 | 99.2%    | Battery low |
| Bravo     |           388.0 | 97.8%    | OK stable   |
| Charlie   |           451.3 | 99.9%    | New sensor  |

Text after the table.
````

*docling__pdf-table-bordered.pdf.md · 486 bytes*

The same table without borders was found by both. A table with merged header cells came out as a table in Docling and as almost nothing in MarkItDown (33 characters):

````markdown
| Merged header   | Merged header   |
|-----------------|-----------------|
| a               | b c             |
| 1               | 2 3             |
````

*docling__pdf-table-merged-cells.pdf.md · 151 bytes*

The 12-column table was not a table in Docling's output either: it printed the cells as one run of text.

````markdown
## Wide table

C0 C1 C2 C3 C4 C5 C6 C7 C8 C9 C10 C11 r1c0 r1c1 r1c2 r1c3 r1c4 r1c5 r1c6 r1c7 r1c8 r1c9 r1c10 r1c11 r2c0 r2c1 r2c2 r2c3 r2c4 r2c5 r2c6 r2c7 r2c8 r2c9 r2c10 r2c11 r3c0 r3c1 r3c2 r3c3 r3c4 r3c5 r3c6 r3c7 r3c8 r3c9 r3c10 r3c11 r4c0 r4c1 r4c2 r4c3 r4c4 r4c5 r4c6 r4c7 r4c8 r4c9 r4c10 r4c11 r5c0 r5c1 r5c2 r5c3 r5c4 r5c5 r5c6 r5c7 r5c8 r5c9 r5c10 r5c11 r6c0 r6c1 r6c2 r6c3 r6c4 r6c5 r6c6 r6c7 r6c8 r6c9 r6c10 r6c11 r7c0 r7c1 r7c2 r7c3 r7c4 r7c5 r7c6 r7c7 r7c8 r7c9 r7c10 r7c11 r8c0 r8c1 r8c2 r8c3 r8c4 r8c5 r8c6 r8c7 r8c8 r8c9 r8c10 r8c11
````

*docling__pdf-wide-12-column-table.pdf.md · 548 bytes*

### Headings and scans

MarkItDown returned no headings in any PDF. Docling marked the report title and section headings (3 in our one-page report) and the one real regulation page had 4. On the scanned page MarkItDown printed nothing ([OCR](https://markitdown.dev/ocr/)); Docling recognised the text:

````markdown
## SCANNED PAGE: Field Station Alpha

Rainfall rose 12% year on year. Sensor uptime reached 99.2%. This page has no text layer.
````

*docling__pdf-scanned-300dpi.pdf.md · 127 bytes*

## Results on Word, PowerPoint and Excel

One small sample each, default settings
| Tool | File | Seconds | Characters | Headings | Table rows | NaN cells |
| --- | --- | --- | --- | --- | --- | --- |
| markitdown | `report.docx` | 0.37 | 838 | 6 | 6 | 0 |
| docling | `report.docx` | 0.09 | 932 | 7 | 5 | 0 |
| markitdown | `deck.pptx` | 0.02 | 622 | 7 | 11 | 0 |
| docling | `deck.pptx` | 0.04 | 539 | 5 | 11 | 0 |
| markitdown | `workbook.xlsx` | 0.03 | 526 | 3 | 15 | 9 |
| docling | `workbook.xlsx` | 0.01 | 642 | 0 | 14 | 0 |

*One small sample each, default settings Source: Test T16 · one run each · comparison-office.csv · Download CSV*

On our three samples the results were close. The one difference that matters: MarkItDown wrote nine `NaN` cells for the blank cells in the workbook ([Excel](https://markitdown.dev/formats/excel/)), and Docling wrote none. We did not compare the Word table headers or the PowerPoint notes beyond these counts.

## What it costs: time, memory, disk

On the 184-page report (a US federal budget document):

| Tool | Seconds | Peak memory |
| --- | --- | --- |
| MarkItDown | 15 | 263 MB |
| pymupdf4llm | 100 | 902 MB |
| Docling | 791 | about 5.5 GB |

Docling is designed for GPUs and we ran no GPU; with one the time would be different, which we did not test. The memory figure is the process's peak so far while it converted all twelve files in turn, not an isolated per-file measurement.

## Using both: route by file type

For a pipeline that mostly sees text PDFs and Office files, MarkItDown's speed is an advantage, and its fixes for tables and scans are separate steps ([PDF page](https://markitdown.dev/formats/pdf/), [OCR page](https://markitdown.dev/ocr/)). For documents where the tables and headings matter, our results favour Docling. A reasonable split is to send scanned or table-heavy PDFs to Docling and everything else to MarkItDown, but we did not test such a router.

## Our verdict

Pick by the documents you have: MarkItDown for fast, light conversion of text-based files; Docling when you need tables, headings and scans from PDFs and can afford the time and memory. Neither handled our 12-column table. These are one run each on one machine and small test files: if a result matters to you, rerun it on your own documents.

## Related

- [PDF to Markdown](https://markitdown.dev/formats/pdf/): How MarkItDown handles PDFs in depth.
- [OCR and scanned files](https://markitdown.dev/ocr/): Scanned documents and OCR routes.
- [Supported formats](https://markitdown.dev/formats/): Every format MarkItDown converts.
- [MarkItDown vs alternatives](https://markitdown.dev/compare/): The wider comparison.

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