# PDF to Markdown benchmark: numbers in the right table cell

> PDF to Markdown: switchfile 93.8 % of numbers in the right table cell, the open-source tool compared 67.9 %. Mean per PDF with numeric cells, n = 102 of 160.

## Tables in Markdown: ahead of the highest-scoring open-source tool selected for this comparison by 25.9 points

160 business PDFs made from 82 public spreadsheets and Word documents, converted by switchfile and by the four open-source tools selected for this comparison. switchfile put 93.8 % of the numbers in the right table cell, the highest-scoring of these tools 67.9 %, as a mean per PDF with numeric table cells (n = 102 of 160). One more open-source tool in the benchmark repository scored higher than the selected open-source tools and is left out of this comparison.

Measured by us on 16 November 2026, scored on 18 November 2026. switchfile ran through its public API. Every output and the scoring code are public.

| PDFs | switchfile | Open-source tool compared | Difference per PDF |
|---|---:|---:|---|
| All PDFs (102 of 160 with numeric cells) | 93.8 [90.5 to 96.7] | 67.9 [57.0 to 78.3] | Much better, +25.9 points (16.8 to 35.8) |
| PDFs from Microsoft Word and Excel (49 of 78 with numeric cells) | 94.3 [88.9 to 98.4] | 70.1 [57.9 to 81.6] | Much better, +24.2 points (13.1 to 36.0) |
| PDFs from an open-source office suite (53 of 82 with numeric cells) | 93.4 [89.7 to 96.5] | 65.9 [54.3 to 77.0] | Much better, +27.5 points (16.9 to 38.7) |

Numbers in the right table cell, as a mean per PDF with numeric table cells: 102 of the 160 PDFs in the test corpus have them, the others count in no mean. Small numbers below are the 95 % intervals. The difference pairs both results on the same PDFs. Same quality where its interval reaches 0 or the lead is 1 point or less.

## Where we are only level, and where others are ahead

- On the PDFs from Microsoft Word (13 of 36 with numeric table cells), the open-source tool compared here scores the same as switchfile: 98.9 against 98.9.
- Per PDF, switchfile scored lower than the open-source tool compared here on 6 of the 102 PDFs with numeric table cells.

## Statistics

Each dot is switchfile's average lead per PDF with numeric table cells over the open-source tool compared here, on the same PDFs. The line around it shows how small or large the real lead could be: we are 95 % sure it lies on that line. Where the line reaches 0, or the lead is 1 point or less, we say same quality.

- All PDFs: +25.9 points (95 % interval 16.8 to 35.8) on the 102 of 160 PDFs with numeric table cells. switchfile scored higher on 52 of them, lower on 6; on 44 both scored the same.
- PDFs from Microsoft Word and Excel: +24.2 points (95 % interval 13.1 to 36.0) on the 49 of 78 PDFs with numeric table cells. switchfile scored higher on 22 of them, lower on 1; on 26 both scored the same.
- PDFs from an open-source office suite: +27.5 points (95 % interval 16.9 to 38.7) on the 53 of 82 PDFs with numeric table cells. switchfile scored higher on 30 of them, lower on 5; on 18 both scored the same.

The means count every PDF with numeric table cells once, with intervals from resampling. The differences pair the two results of each PDF; PDFs made from the same original are resampled together, so one large document cannot decide the result.

Summed over all 28,453 numbers in tables instead of per PDF, so that large tables count more: switchfile 97.2 %, the open-source tool compared here 57.1 %.

## Corrupted numbers

Corrupted numbers: for each number value, how often it appears in the Markdown beyond the highest count of that value in the original's text or in the PDF's text layer. Typical causes are a digit torn off a word, two cells glued into one number, or a lost minus or decimal point. Fewer is better. In brackets: PDFs affected. Counted against the original's text alone, without the text layer, the PDFs from Microsoft Word come out the other way round: switchfile 541, the open-source tool compared here 534.

| PDFs | switchfile | Open-source tool compared |
|---|---:|---:|
| All PDFs | 28 (8) | 492 (39) |
| PDFs from Microsoft Word and Excel | 26 (6) | 264 (17) |
| PDFs from an open-source office suite | 2 (2) | 228 (22) |
| PDFs from Microsoft Word | 19 (4) | 78 (8) |
| PDFs from Microsoft Excel | 7 (2) | 186 (9) |

## How we measured

We make switchfile, so this is our own benchmark. We chose the documents, wrote the scoring code and ran every converter ourselves, switchfile included.

- The documents: 82 public spreadsheets and Word documents from government open-data portals and a research archive, in three languages (English, French, German), under licences that allow passing them on.
- The PDFs: an open-source office suite printed all 82 originals. Microsoft Word and Excel printed 78 PDFs that passed the same checks; Word would open one document only after a repair, and for three workbooks Excel's pages did not match blocks of the original, so these are left out. 160 PDFs with 781 pages in all, born-digital, no scans.
- The truth comes from the original files, not from the PDF: every visible cell as the spreadsheet shows it, and the paragraphs and tables of each Word document.
- Numbers in the right cell: the share of numbers in the original's tables that appear in the matching row and column of a table in the Markdown. Numbers count by value, so 1,268.50 and 1.268,50 are equal, but a lost minus or decimal point is not.
- switchfile ran through its public API on 16 November 2026, as a customer would use it. The open-source tools ran at pinned versions with their default settings on our server, one of them a plain-text extractor without tables that serves as a baseline. Every converter got one attempt per PDF, and none failed.

## What we compare against

This page shows switchfile and the four open-source tools selected for this comparison, five of the seven converters in the repository. We compare with the one that has the highest mean on all PDFs; it is also the highest of them on each of the two producer sets. The repository names them with their versions and licences. One more open-source tool in the benchmark repository scored higher than the selected open-source tools and is left out of this comparison.
The repository also has the results of one online service, with its name; this page compares only with open-source tools.

## Limits

- Only born-digital PDFs: scans are not part of this benchmark.
- A home advantage is possible: we develop switchfile on public office files of a similar kind, printed with the same open-source office suite. No file is the same.
- The producers are Microsoft Word and Excel for Mac and one open-source office suite. PDFs from other programs, such as report generators or design software, are missing.
- The selection favours clean tables: at most 20 pages per document, and sheets whose print does not match their cells are left out.
- Speed is not compared: switchfile ran over the internet, the open-source tools on a shared server.
- 160 PDFs are a sample. Your own documents may score differently.

## What we measured wrong

On 18 November 2026 we fixed the scoring: a lost minus or decimal point had still counted as a number in the right cell. Only the scoring ran again, on the same outputs. No candidate's mean per PDF over all PDFs moved by more than 0.6 points, and the order did not change. All numbers on this page use the corrected scoring.

## Data

- [pdf-table-bench on GitHub](https://github.com/switchfile/pdf-table-bench): documents, every output, the scoring code and the full results
- [Full results at commit 64a1bef](https://github.com/switchfile/pdf-table-bench/blob/64a1bef/RESULTS.md)

Try it: [PDF to Markdown](https://switchfile.io/pdf-to-md) in the browser, or the [PDF to Markdown API](https://switchfile.io/pdf-to-markdown-api).
