Python tool for converting files and office documents to Markdown
open sourceMITfreeMCP
MarkItDown is Microsoft's Python library and command-line tool for converting files to Markdown for LLMs and text analysis pipelines, keeping the document's structure (headings, lists, tables, links) rather than aiming for a high-fidelity copy for people to read. It converts PDF, Word, PowerPoint, Excel, Outlook messages, HTML, CSV, JSON, XML, EPUB, ZIP archives (each file inside), images (EXIF metadata and captions from an LLM), audio (metadata and speech transcription) and YouTube URLs, each format's dependencies an optional extra. Plugins add converters, such as Microsoft's markitdown-ocr, which reads text in embedded images through an LLM's vision, and it can hand documents to Azure Document Intelligence or Azure Content Understanding for cloud layout analysis, OCR, field extraction and video. Microsoft's markitdown-mcp package serves it to agents as an MCP server over STDIO, Streamable HTTP or SSE.
Problems it solves
- turn PDFs and Word documents into Markdown to feed an LLM
- convert a folder of office documents into text for a RAG pipeline while keeping tables and headings
- let my AI agent read an Excel or PowerPoint file
- extract text from a PowerPoint deck from the command line
Features
- converts PDF, Word, PowerPoint, Excel, Outlook, HTML, EPUB, CSV, JSON, XML and ZIP files to Markdown
- image captions and audio transcription through an LLM or speech service
- converter plugins, including OCR of embedded images through an LLM's vision
- optional Azure Document Intelligence and Azure Content Understanding converters
- MCP server package for agents (STDIO, Streamable HTTP or SSE)
- command-line tool that reads from a file or a pipe
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has an MCP server | plan not known |
| Takes plugins | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what MarkItDown does.
- Marker Convert PDF to markdown + JSON quickly with high accuracy
- pdf-inspector A fast Rust library and CLI that tells scanned PDFs from text-based ones and converts text PDFs to Markdown without OCR.
- Docling Get your documents ready for gen AI
- Apache Tika Detect file types and extract text and metadata from over a thousand formats
- MinerU Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows
- anydoc Fast Rust library and CLI that converts office documents and PDFs to clean Markdown for LLMs
