Hand a PDF to a parser and it reads positioned glyphs on pages. Hand it a DOCX and it unzips XML; hand it a spreadsheet and it walks cell tables. Anyone building search or AI tooling rewrites these conversions over and over, until the documents meet one shared format first.
The trending query microsoft/markitdown climbed GitHub Trending (Python) in late November 2026, and the repository shows the pattern in production: microsoft/markitdown turns PDF, Word, PowerPoint, and Excel files into markdown from one library. A converter trending this hard means document-to-markdown has stopped being a demo and become infrastructure.
Every format is its own machine
A PDF is a page-description language: it records where each glyph sits and says little about reading order. A DOCX file is a zip of XML that does label headings and lists, and a spreadsheet is a table of cells with formulas attached. Three formats, three parsers, three sets of quirks, and that is why each needs its own extractor.
| Format | Stored structure | Extraction problem |
|---|---|---|
| Positioned glyphs on pages | Reading order, no heading labels | |
| DOCX | Zipped XML document tree | Style soup, tracked changes |
| PPTX | Zipped XML, one part per slide | Text scattered across shapes |
| XLSX | Cell tables with formulas | Merged cells, hidden sheets |
The variety explains why converters accumulate plugin parsers. Each new format brings its own failure modes, and the abstraction pays off only when the whole zoo of formats feeds one output. It also explains the maintenance bill, since formats change under your feet.
Markdown is the lowest common denominator
Markdown keeps headings, lists, tables, and links, and throws away fonts, margins, and positioned text boxes. That loss is the feature: what remains carries the logic of the document in an order a plain-text reader can follow.
Downstream systems agree on the target shape. Language models tokenize markdown cleanly, search indexes split it at headings, and diff tools compare it line by line, so one normalized format serves every consumer at once.
Drop in your PDF - it doesn't leave your device.
Every miss becomes a red node on your map.
Free plan: 21 nodes, no card, no countdown.
The easy path converts a born-digital file in a second. The engineering is in the edge cases: a scanned PDF is an image, so optical character recognition has to rebuild the text before conversion can start, and a PDF table has lost its columns, so the extractor infers them from spacing. A heading in a scanned page has to be inferred from whatever font size the OCR guessed, which is why the same document can convert differently across runs.
Legacy formats need archaeology: older binary Word files, and slides whose text sits inside grouped shapes. A converter earns trust by handling these quietly, one quirk at a time.
One shape, many consumers
Normalization compounds. The same markdown output feeds a knowledge base, a retrieval index, and a model context window, so one conversion serves three pipelines and teams stop maintaining one parser per format per tool. The pattern echoes an old integration rule: normalize at the boundary, and every component downstream gets simpler.
The lesson is that the cheapest way to make documents machine-readable is to give them all one shape first, and the cost gets paid once at ingest.
Key takeaways
- PDF, DOCX, PPTX, and XLSX each store structure differently, so each needs its own extractor.
- Markdown preserves headings, lists, and tables while discarding fonts, margins, and positioning.
- Models, search indexes, and diff tools all read the same markdown shape, so one conversion serves many pipelines.
- Scanned PDFs need OCR, PDF tables need column detection, and legacy formats need special handling.
- Document-to-markdown has become infrastructure, paid once at ingest, for search and AI stacks.
Quick answers
What does markitdown do?
It converts documents such as PDF, Word, PowerPoint, and Excel files into markdown text.
Why markdown as the target?
It is the plain-text shape that keeps headings, lists, and tables while dropping fonts and layout.
What is the hard part?
Edge cases: scanned pages need OCR, PDF tables need column detection, old formats need special parsers.
Who consumes the output?
Language models, search indexes, and diff tools, all of which prefer plain structured text.
Is layout information lost?
Yes, and that is intended, since glyph positions and fonts rarely carry meaning for downstream readers.
One thing to do tonight
Pick one PDF you have needed to search, run it through markitdown tonight, and read the markdown it produces. If the headings and tables survived intact, you have just watched format normalization do its job.