MarkItDownvsDocling

Compare

MarkItDown vs Docling

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

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, comparison-office.csv, comparison-tools.csv, 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). Docling's own documentation is at docling.org, another site of ours.

The tools as installed for this test
ToolVersionReleasedLicencePythonModelsInstall footprint
MarkItDown0.1.92026-10-21MIT>=3.10,<3.15None (rule-based; optional OCR plugin and vision model)196 MB bare, 407 MB with [all] (T01)
Docling2.150.12026-11-14MIT>=3.10About 506 MB of models downloaded on first use (Hugging Face cache); PyTorch in the environmentEnvironment with torch 2.15 was 6.5 GB for all three tools together
pymupdf4llm2.12026-11-02Package metadata has no licence field; depends on PyMuPDF (AGPL-3.0 or commercial)>=3.11None downloaded by us; OCR on scans came from an engine already installed in our environmentSmall 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
ToolFilePagesSecondsCharactersHeadingsTablesTable rows
markitdownpdf-text.pdf10.04926000
markitdownpdf-table-bordered.pdf10.02332000
markitdownpdf-table-borderless.pdf10.01452014
markitdownpdf-table-merged-cells.pdf10.0133000
markitdownpdf-wide-12-column-table.pdf10.02770019
markitdownpdf-two-column.pdf10.153529000
markitdownpdf-header-footer.pdf30.04959000
markitdownpdf-bullets-numbered.pdf10.01111000
markitdownpdf-cjk.pdf10.0766000
markitdownpdf-scanned-300dpi.pdf10.010000
markitdownreal-pdf-cfr-21-sec-1-1.pdf10.144715000
markitdownreal-pdf-budget-fy2024.pdf18415.06580166070149
doclingpdf-text.pdf114.19908300
doclingpdf-table-bordered.pdf11.86486114
doclingpdf-table-borderless.pdf11.84488114
doclingpdf-table-merged-cells.pdf11.47151013
doclingpdf-wide-12-column-table.pdf10.8548100
doclingpdf-two-column.pdf10.823527000
doclingpdf-header-footer.pdf32.58826300
doclingpdf-bullets-numbered.pdf10.7989100
doclingpdf-cjk.pdf10.9166100
doclingpdf-scanned-300dpi.pdf12.1127100
doclingreal-pdf-cfr-21-sec-1-1.pdf10.94137400
doclingreal-pdf-budget-fy2024.pdf184791.34789587130411104
pymupdf4llmpdf-text.pdf10.72938400
pymupdf4llmpdf-table-bordered.pdf10.21361114
pymupdf4llmpdf-table-borderless.pdf10.19363114
pymupdf4llmpdf-table-merged-cells.pdf10.1750013
pymupdf4llmpdf-wide-12-column-table.pdf10.18555100
pymupdf4llmpdf-two-column.pdf10.213532000
pymupdf4llmpdf-header-footer.pdf30.31990300
pymupdf4llmpdf-bullets-numbered.pdf10.12104100
pymupdf4llmpdf-cjk.pdf10.1169100
pymupdf4llmpdf-scanned-300dpi.pdf11.6130100
pymupdf4llmreal-pdf-cfr-21-sec-1-1.pdf10.34370400
pymupdf4llmreal-pdf-budget-fy2024.pdf184100.555674215837898
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:

MarkItDown 0.1.9
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 output (.md)
Docling 2.150.1
## 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 output (.md)

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

Docling, merged-cell table
| Merged header   | Merged header   |
|-----------------|-----------------|
| a               | b c             |
| 1               | 2 3             |
docling__pdf-table-merged-cells.pdf.md · 151 bytes output (.md)

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

Docling, 12-column table
## 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 output (.md)

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); Docling recognised the text:

Docling on the scanned page
## 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 output (.md)

Results on Word, PowerPoint and Excel

One small sample each, default settings
ToolFileSecondsCharactersHeadingsTable rowsNaN cells
markitdownreport.docx0.37838660
doclingreport.docx0.09932750
markitdowndeck.pptx0.026227110
doclingdeck.pptx0.045395110
markitdownworkbook.xlsx0.035263159
doclingworkbook.xlsx0.016420140
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), 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):

ToolSecondsPeak memory
MarkItDown15263 MB
pymupdf4llm100902 MB
Docling791about 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, OCR page). 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.