OfficeDocBench v2: every parser, the same files
12 parsers were run on the same 87 files with the same expected answers: AILANG Parse, Kreuzberg, Docling, Reducto, LlamaParse, Extend, Unstructured, raw OOXML, MarkItDown, Pandoc, and LiteParse twice: with its standard Tesseract OCR, and with OCRia-nano-1, LlamaIndex’s CPU OCR and layout model. Reducto, Extend and LlamaParse were run through their hosted APIs. A missing feature loses credit, an unsupported format lowers coverage, and errors stay in the results.
Version 2 adds 18 Office files and checks 61 cases against the original Office XML. The 69 files from version 1 are still included. Version 1 and version 2 are scored differently, so their percentages can’t be compared directly.
Converting Word files to Markdown with MarkItDown, Docling or Pandoc today? Word to Markdown shows their output and ours side by side on files from this corpus.
Full results: OfficeDocBench v2
Composite is the average score on the files a parser could read. Adjusted counts the files it failed on or doesn’t support as zero. Read both. The table lists the version of each parser that was tested and the day it was run.
| Parser | Version tested | Run on | Files parsed | Errors | Coverage | Composite | Adjusted | Structural fidelity | Text overlap | |
|---|---|---|---|---|---|---|---|---|---|---|
| AILANG Parse | 0.58.0 | 2026-11-24 | 87/87 | 0 | 100.0% | 95.0% | 95.0% | 99.0% | 97.2% | |
| Pandoc | 3.14 | 2026-11-24 | 79/87 | 2 | 90.8% | 81.0% | 73.5% | 75.9% | 91.9% | |
| Kreuzberg | 4.10.4 | 2026-11-24 | 83/87 | 4 | 95.4% | 74.7% | 71.2% | 56.3% | 92.2% | |
| Docling | 2.152.0 | 2026-11-24 | 84/87 | 2 | 96.5% | 73.4% | 70.9% | 73.0% | 96.4% | |
| Reducto (r-1) | r-1@v1.12.24-1094-g7ca71926b723 | 2026-11-24 | 72/87 | 0 | 82.8% | 79.8% | 66.1% | 70.7% | 85.5% | |
| Unstructured | 0.27.37 | 2026-11-24 | 79/87 | 2 | 90.8% | 67.6% | 61.4% | 63.5% | 95.1% | |
| LlamaParse (standard) | 0.6.94 | 2026-11-24 | 85/87 | 2 | 97.7% | 61.2% | 59.8% | 53.9% | 88.9% | |
| MarkItDown | 0.1.5 | 2026-11-24 | 73/87 | 2 | 83.9% | 68.4% | 57.4% | 64.5% | 86.3% | |
| Raw OOXML | 2.0.0-stdlib | 2026-11-24 | 60/87 | 1 | 69.0% | 81.8% | 56.4% | 61.3% | 96.2% | |
| Extend (Parse 2.0) | parse_performance@api-2026-02-09 | 2026-11-24 | 77/87 | 4 | 88.5% | 61.9% | 54.8% | 53.4% | 88.1% | |
| LiteParse | 2.21.1 | 2026-11-24 | 74/87 | 2 | 85.1% | 38.9% | 33.1% | 23.0% | 22.9% | 85.6% |
| LiteParse + OCRia-nano-1 | 2.21.1+ocria-nano@1.0.0 | 2026-11-24 | 74/87 | 2 | 85.1% | 36.3% | 30.9% | 22.9% | 22.9% | 85.8% |
Most recent run: 2026-11-24. LlamaParse ran in its standard (non-premium) mode. Extend ran with its strongest documented settings: the Parse 2.0 performance engine with agentic text and table correction, chart extraction, formula detection, change-tracking detection, and advanced Excel parsing with cell metadata and formatting. Extend converts DOCX and PPTX to PDF before parsing, rejects ODP, EPUB and TSV at upload, and returns HTML and Markdown input unchanged. Reducto ran with its r-1 model, HTML tables, change-tracking, comment and hyperlink output, and its accurate spreadsheet table detection with formulas and cell colours. It refuses ODT, ODS, ODP and EPUB files. The settings and per-file results for every parser are in the results folder. A file a parser fails on counts as zero; every failure is listed in that parser’s results file.
Every expected answer is read from the source document itself, by an independent reader that shares no code with any parser tested, including AILANG Parse. Values that depend on one parser’s conventions, such as paragraph counts or reading order, are not scored. Five minimal or damaged files test recovery and are marked as such in the results. The methodology lists the reader behind every scored field. Structural fidelity is the share of source-checked structure a parser reproduces (cell positions, comment targets, list depth, formatting, slides and notes). Text overlap is word-level overlap with the document’s text.
A living benchmark
OfficeDocBench is re-run as AILANG Parse changes, and the benchmark keeps getting harder: more files, stricter scoring, answers checked against the source. Every past score is below, including the ones that went down.
| Date | Corpus | Composite | What changed | |
|---|---|---|---|---|
| 2026-04-07 | v1 · 69 files | 93.9% | First public OfficeDocBench run. | |
| 2026-04-13 | v1 · 69 files | 92.2% | Added LiteParse and made the test harness fairer to the other parsers. | |
| 2026-08-11 | v1 · 69 files | 92.6% | Scoring fix: correct structure no longer loses points for wording that differs from the expected answer. | |
| 2026-09-22 | v1 · 69 files | 92.3% | Re-run before version 2. | |
| OfficeDocBench v2 — new corpus, new protocol. Scores below are not directly comparable to v1 above. | ||||
| 2026-10-23 | v2 · 87 files | 97.7% | 18 more files, answers checked against the original Office XML, 8 scoring dimensions. | |
Versions 1 and 2 use different files and different scoring, so read each as its own series. You can reproduce every run above: clone the benchmark folder on GitHub and run it yourself.
Parsing times and configuration
Each result records how long the parse took. AILANG Parse parses the whole corpus in one batch, local parsers pay their own start-up cost, and hosted APIs include upload and polling time (Reducto: 1.6 s, Extend: 5.6 s median per file). Timing is reported separately and does not affect the scores.
Structural fidelity by feature
Each cell is the average over the files a parser could read that test that feature. If a parser does not return the feature it scores zero. Files a parser could not read are not counted here, so read this table together with coverage above.
| Feature (checked against the source) | AILANG Parse | Kreuzberg | Docling | Reducto | LlamaParse | Extend | Unstructured | Raw OOXML | MarkItDown | Pandoc | LiteParse | LiteParse + OCRia-nano-1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Bookmarks | 100.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| Section breaks | 100.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| Comment targets and attribution | 100.0% | 0.0% | 7.1% | 67.9% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 64.3% | 0.0% | 0.0% |
| Sheet / slide identity and order | 100.0% | 82.0% | 100.0% | 92.2% | 91.6% | 97.8% | 96.3% | 97.2% | 100.0% | 84.2% | 38.0% | 37.1% |
| Link text and target | 100.0% | 75.0% | 46.4% | 64.3% | 0.0% | 0.0% | 75.0% | 0.0% | 46.4% | 75.0% | 10.7% | 17.0% |
| List type and depth | 80.0% | 20.0% | 80.0% | 54.8% | 45.7% | 13.5% | 0.0% | 0.0% | 29.2% | 29.2% | 29.2% | 0.0% |
| Speaker notes on the correct slide | 100.0% | 0.0% | 94.4% | 0.0% | 94.4% | 0.0% | 94.4% | 0.0% | 94.4% | 91.7% | 0.0% | 0.0% |
| Inline formatting | 100.0% | 28.3% | 37.5% | 75.0% | 1.7% | 0.0% | 38.3% | 34.2% | 39.2% | 94.2% | 14.3% | 23.0% |
| Cell positions, merges, formulas and colours | 100.0% | 86.8% | 93.0% | 69.4% | 76.4% | 83.6% | 78.8% | 90.6% | 81.0% | 91.8% | 19.7% | 18.2% |
Per-format composite scores
| Format | AILANG Parse | Kreuzberg | Docling | Reducto | LlamaParse | Extend | Unstructured | Raw OOXML | MarkItDown | Pandoc | LiteParse | LiteParse + OCRia-nano-1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CSV | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 99.6% | 100.0% | — | 100.0% | 100.0% | 99.0% | 98.6% |
| DOCX | 98.6% | 70.0% | 70.1% | 76.1% | 46.5% | 48.4% | 59.1% | 78.2% | 54.6% | 79.1% | 50.6% | 44.2% |
| EPUB | 93.9% | 66.6% | 85.9% | — | 73.5% | — | 85.1% | — | 85.0% | 97.8% | — | — |
| HTML | 96.0% | 76.0% | 90.4% | 82.9% | 87.3% | 42.8% | 84.1% | — | 90.0% | 90.3% | — | — |
| MD | 89.7% | 69.6% | 69.4% | 95.1% | 89.7% | 70.9% | 70.5% | — | 70.9% | 99.1% | — | — |
| ODP | 70.9% | — | 79.2% | — | 58.7% | — | — | — | — | — | 28.1% | 43.8% |
| ODS | 84.4% | 76.8% | 28.5% | — | 20.9% | 76.8% | — | — | — | — | 26.5% | 21.5% |
| ODT | 69.8% | 86.9% | 68.2% | — | 30.9% | 49.7% | 44.5% | — | — | 66.5% | 17.4% | 16.7% |
| PPTX | 99.4% | 58.2% | 68.9% | 84.8% | 64.1% | 62.3% | 62.5% | 78.3% | 72.8% | 69.1% | 57.3% | 57.5% |
| TSV | 100.0% | 100.0% | — | 16.7% | 100.0% | — | 100.0% | — | 9.3% | 100.0% | 2.3% | 2.2% |
| XLSX | 99.3% | 88.0% | 85.3% | 81.6% | 82.7% | 89.1% | 81.0% | 91.0% | 82.3% | 84.4% | 10.3% | 10.9% |
What we measure
Each file is scored on eight measures. Seven compare the parser’s output with the expected answer: feature detection, structural recall, structural quality, content fidelity, text overlap, element count and metadata. Their weights are 15%, 20%, 15%, 15%, 10%, 15% and 10%.
The eighth, structural fidelity, checks specific facts taken from the original Office XML: which cell a value is in and which cells are merged, sheet and slide order, what a comment is attached to, which slide a speaker note belongs to, list depth, formatting, formulas, links, bookmarks and breaks. Where a file has these checks they are 25% of its score. The 18 files added in version 2 are scored on them alone.
A measure that doesn’t apply to a file is left out of its average. Separate tests confirm that known mistakes, such as a shifted column or a misplaced note, lower the score.
Not everything is checked yet: theme colours, number display formats, image bytes and document generation have their own tests. The test files are pinned by hash, so a changed file cannot quietly change the comparison.
Why AILANG?
AILANG Parse is written in AILANG, a language designed for building AI-native applications. The language is a large part of the reason for these results.
Same Input, Same Output
The parsing code is marked pure func, and the compiler enforces it: that code cannot read files, call the network or use randomness. The same document always gives the same output. Structural recall is 98.0%.
Typed Blocks
Every parser returns the same 9 block types: Text, Heading, Table, Image, Audio, Video, List, Section and Change. The compiler checks that every parser and every output format handles all of them, so a block type cannot be half supported. Other parsers typically return untyped dictionaries.
Zero Runtime Dependencies
Every parser is written in AILANG with only its standard library. No Python, no Java, no system libraries. Unzipping, XML parsing and format detection are all AILANG code, with tests and Z3-verified contracts. The whole parser fits in a single binary.
Contracts and Tests
Z3 verifies 50+ contracts at build time. For example, format detection can only return a known format, and converting a list of elements never adds or drops one. Tests written next to the functions (tests [...]) catch regressions early.
AI Only for PDFs and Images
Image parsing, and PDF parsing when you choose the AI backend, use an AI model that you pick (--ai gemini-3.5-flash-lite, --ai claude-haiku, --ai granite-docling). Office parsing uses no AI at all: it reads the XML directly. The benchmark scores reflect the code, not a model.
See the Code
Here is how AILANG Parse reads track changes straight from the XML:
-- A content block extracted from a document
export type Block = TextBlock({text: string, style: string, level: int})
| TableBlock({rows: [[TableCell]], headers: [TableCell]})
| ImageBlock({data: string, description: string, mime: string})
| AudioBlock({data: string, transcription: string, mime: string})
| VideoBlock({data: string, description: string, mime: string})
| ListBlock({items: [string], ordered: bool})
| HeadingBlock({text: string, level: int})
| SectionBlock({kind: string, blocks: [Block]})
| ChangeBlock({changeType: string, author: string, date: string, text: string})
-- Extract track change annotations from a paragraph
-- Finds w:ins, w:del, w:moveTo, w:moveFrom and creates ChangeBlocks
-- with author, date, change type, and affected text.
pure func extractParagraphChanges(p: XmlNode) -> [Block] {
let children = getChildren(p);
flatMap(extractChangeFromNode, children)
}
-- Create a ChangeBlock from a track change XML node
pure func makeChangeBlock(changeType: string, node: XmlNode) -> Block {
let author = getOrElse(getAttr(node, "w:author"), "Unknown");
let date = getOrElse(getAttr(node, "w:date"), "");
let text = extractChangeText(node);
ChangeBlock({changeType: changeType, author: author, date: date, text: text})
}
-- Z3-verified format detection with inline tests
export pure func detectFormat(ext: string) -> string
ensures {
result == "zip-office" || result == "pdf" || result == "image" ||
result == "audio" || result == "video" || result == "csv" ||
result == "markdown" || result == "html" || result == "epub" ||
result == "zip-odf" || result == "text" || result == "unknown"
}
tests [
("docx", "zip-office"),
("pptx", "zip-office"),
("xlsx", "zip-office"),
("odt", "zip-odf"),
("pdf", "pdf"),
("png", "image"),
("csv", "csv"),
("md", "markdown")
]
Full source: 31 AILANG modules, 50+ contracts, 76+ inline tests.
Built Against the Tests
We don't write the parser first and measure it afterwards. The tests come first, and AI writes the parsing code to pass them. That is why the scores are high, and why we want to find documents that lower them.
Write the test
We write a test file with known structure, such as merged cells, track changes, speaker notes and threaded comments, and check the expected answer by hand.
AI writes the parser
An AI agent reads the relevant spec (ECMA-376 for Office, RFC 5322 for email) and writes AILANG parsing code to pass the test. Z3 contracts check the code.
Score improves
The score goes up because the code was written to pass the test. That is the point, and it is why new test cases that lower the score are so valuable.
Help Us Find Our Gaps
AILANG Parse scores 95.0% on OfficeDocBench v2, and the benchmark includes checks we don’t pass yet. The Office specification (ECMA-376) alone is over 5,000 pages. Some real documents will break our parser. We want to find them.
If you have a document that AILANG Parse doesn't handle well, send it to us. If it shows a gap and we add it to our test set, you get 1 month of Business tier free (worth €99).
We use your document only for testing. We can anonymize it before adding it to the benchmark files. Documents that don't show a new gap are deleted. Any format is welcome: Office, email, calendar or anything else.
PDFs
OfficeDocBench measures our own parsing code on Office files. PDFs are different: a PDF stores where each character is drawn, not its structure, so the result depends on the PDF reader (backend) you choose. This table compares the five backends AILANG Parse offers on a hard case, research papers. Each backend parses the published PDF of 12 arXiv papers, and the headings it returns are compared with the 200 section headings in the papers’ LaTeX source.
| Backend | How it reads the page | Headings found | Reported headings that are real | Time per paper |
|---|---|---|---|---|
pdftotext | Text only (the default) | 0% | — | 0.5 s |
poppler | Rules over the PDF’s own text and fonts | 84% | 71% | 1.0 s |
docling | Layout model on your machine | 93% | 74% | 11 s |
liteparse | Text positions and font size | 9% | 12% | 0.6 s |
ai | AI model, one request per page | 90% | 60% | 83 s |
12 arXiv papers, 200 section headings taken from each paper’s LaTeX source. Measured 16 November 2026 on AILANG Parse 0.57.1, from the command line on one laptop. The ai row used gemini-3.5-flash-lite, measured 12 November 2026 on 0.57.0; a model’s answers vary from run to run. The source is not an exact answer key: “Abstract” and “References” are real headings it often does not name, and they count against the fourth column. Read the rows against each other. Script and per-paper results: benchmarks/pdf.
This compares our own backends with each other, not with other products. Which backend to pick.
arxivbench — LaTeX / arXiv papers
The same comparison for scientific papers: reading the source directly against running OCR on a PDF. arxivbench scores each parser on 19 peer-reviewed arXiv papers in ML, physics, math and CS. The expected counts come straight from the .tex source. The score is min(observed, truth) / truth, averaged across papers. Full LaTeX parsing docs →
All scores below measure structure: whether the parser returns each element as its own typed block. Capturing the text is a lower bar. OCR parsers that score 0% on bibliography usually still have the reference-list text in their output, but as flat paragraphs, not one entry per \bibitem.
| Parser | Input | Papers | Sec | Eq D | Eq I | Tab | Fig | Cite | Bib | Thm |
|---|---|---|---|---|---|---|---|---|---|---|
| AILANG Parse | tex | 19/19 | 94% | 79% | 76% | 79% | 100% | 93% | 100% | 100% |
| Pandoc | tex | 15/19 | 77% | 63% | 57% | 32% | 61% | 66% | 0% | 47% |
| Docling | 13/19 | 64% | 0% | 0% | 63% | 70% | 19% | 0% | 0% | |
| MarkItDown | 13/19 | 1% | 0% | 0% | 56% | 0% | 23% | 0% | 0% | |
| Unstructured | 13/19 | 75% | 0% | 0% | 0% | 0% | 23% | 0% | 0% | |
| LiteParse | 13/19 | 0% | 0% | 0% | 5% | 0% | 23% | 0% | 0% |
\newcolumntype macros and plain-TeX commands. AILANG Parse keeps going on those papers and returns what it can read.Reproduce:
uv run benchmarks/arxivbench/eval_arxivbench.py --all
Run the Benchmarks
The OfficeDocBench numbers on this page come from benchmarks/officedocbench/results/summary.json, which is rewritten on every benchmark run. There are three ways to reproduce them, depending on what you have installed:
# 1. AILANG Parse only — instant, no extra dependencies
uv run benchmarks/officedocbench/eval_officedocbench.py
# 2. One other parser (it must be installed)
uv run benchmarks/officedocbench/eval_officedocbench.py --adapter kreuzberg
# 3. Every parser
uv pip install -e '.[competitors]'
uv run benchmarks/officedocbench/eval_officedocbench.py --all
Useful flags: --format docx limits the run to one format; --json and --latex change the report format.
The --all run writes summary.json and a copy at docs/data/officedocbench-summary.json. The OfficeDocBench scores, parser versions and run dates on this site are read from that file, not typed by hand. To add your own parser, implement OfficeDocBenchAdapter in adapters/ and register it in eval_officedocbench.py:load_adapter().
Frequently Asked Questions
How does AILANG Parse compare to other document parsers on benchmarks?
OfficeDocBench v2 runs 12 parsers on 87 files in 11 formats. AILANG Parse scores 95.0% and parses 87 of 87 files. Scores, tested versions and errors are published for every parser.
How does AILANG Parse compare with MarkItDown?
MarkItDown 0.1.5 scores 68.4% composite on the files it parses and 57.4% coverage-adjusted. It parses 73 of 87 files: ODT, ODP and ODS are unsupported. On Word files alone it scores 54.6% against 98.6%; comments, tracked changes, speaker notes, bookmarks and section breaks are not in its output, and nested lists come back flat. See the outputs side by side.
Is the OfficeDocBench benchmark open source?
Yes. The test files, the expected answers, the scoring code, the wrapper for each parser and the per-file results are all public. Scoring combines structure checks and text comparison.
Why do parsers score differently?
Parsers return different amounts of structure and support different formats. Version 2 gives credit for structure a parser does return, such as worksheet names and speaker notes. Missing structure and failed files stay in the results.
How are the expected answers checked?
Sixty-one Office files have answers taken directly from their source XML, and the files are pinned by hash. Eight more have selected answers checked against their source HTML or XML; the rest of the version 1 answers were written by hand and have not been rechecked. Separate tests confirm that known mistakes lower the score.
How can I submit a document that doesn't parse correctly?
Email it to docparse@sunholo.com. If it shows a parsing gap and we add it to our test set, you get 1 month of Business tier free (worth €99). You can anonymize content before sending. We accept any format: Office, email, calendar or anything else. See Help Us Find Our Gaps for details.