MarkItDown
Lightweight Python utility that converts files to Markdown for LLMs
What it is
A small Python utility and CLI from Microsoft that converts office documents, PDFs and other files into Markdown while keeping headings, lists, tables and links. Optional extras enable individual formats and it supports third-party plugins. For feeding documents into LLM prompts and text pipelines.
Good for
- Turn a PDF or DOCX into Markdown for a prompt
- Batch-convert office files for a text pipeline
- Add OCR conversion through an optional package
Install or run
pip install 'markitdown[pdf, docx, pptx]'Command as given in the project README. Read the repository before you run anything on your machine.
What you need
Python 3.10 to 3.14
Sources
- https://github.com/microsoft/markitdown (project README, read 10 Nov 2026)
- https://api.github.com/repos/microsoft/markitdown (GitHub API, read 13 Nov 2026)
The summary is ours, written from the README. Spotted an error? See how we work.