MarkItDown preview
markitdown

MarkItDown

Convert files and documents to Markdown

109.8k|stable|v0.1.5
from markitdown import MarkItDown md = MarkItDown() result = md.convert("document.pdf") print(result.text_content)
Multi-format support — Converts PDF, Office documents, images, audio, HTML, and archives to Markdown.
Optional dependencies — Install only the dependencies needed for your file formats.
Plugin system — Extend functionality with third-party plugins including OCR support.
LLM integration — Use language models for image descriptions and document intelligence processing.
CLI and API — Use from command-line or Python code with streaming support.
MarkItDown converts diverse file formats into clean Markdown optimized for LLM consumption, preserving document structure like headings, tables, and lists. It's designed for text analysis pipelines rather than human-readable formatting, with modular dependencies and plugin support. The tool integrates with Azure Document Intelligence and LLM vision models for advanced processing.
Python 3.10 or higher
Source on GitHub
pavilion