markitdown
View on GitHubPython tool for converting files and office documents to Markdown.
Microsoft's lightweight Python utility that converts PDF, Office, image, audio, HTML, EPUB and YouTube content into LLM-friendly Markdown. Supports optional plugins, LLM-based image description/OCR, and Azure Document Intelligence or Content Understanding for higher-quality extraction.
Use Cases
Convert PDF/Word/PPT/Excel files to Markdown for LLM promptsPreprocess documents for RAG ingestion pipelinesExtract text from images and scanned PDFs via LLM vision OCRTranscribe audio files and YouTube URLs into Markdown textBuild structured YAML front-matter extraction from invoices/receipts with Azure analyzersFeed Markdown-formatted context into LangChain or AutoGen agentsBulk convert office document archives (ZIP) to token-efficient text
Built With
- Language
- Python
- Frameworks
- LangChain · AutoGen · OpenAI SDK · Azure Document Intelligence · Azure Content Understanding · MCP (community integrations)
Tags
markdown · document-conversion · pdf · ocr · llm-preprocessing · rag · python · docx · pptx · xlsx · epub · youtube-transcription · audio-transcription · plugin-system · microsoft-office · text-extraction