# markitdown

> Python utility that converts files and office documents to Markdown for LLM pipelines.

- Type: agent or tool
- Field: Developer Tools
- Repository: https://github.com/microsoft/markitdown
- GitHub stars: 198100
- Licence: MIT
- Language: Python
- Last push: 2026-11-07
- Page: https://imutechz.in/agents/markitdown

## What it is
MarkItDown is a lightweight Python tool from Microsoft that converts many file types to Markdown for use with LLMs and text analysis pipelines. It keeps document structure such as headings, lists, tables and links. The output is meant for machines more than for high-fidelity human reading. It works as a command-line tool and as a Python library, and it needs Python 3.10 through 3.14.

## Features
- Converts PDF, PowerPoint, Word, Excel, HTML, CSV, JSON and XML
- Handles images, audio, ZIP files, YouTube URLs and EPubs
- Command-line use with output redirect or -o
- Optional dependency groups such as pdf, docx and pptx
- Third-party plugins, including an OCR plugin

## Best for
- Preparing documents for LLM input
- Text extraction pipelines
- Converting office files to plain structured text

## Pros
- Preserves headings, lists, tables and links
- Install only the format dependencies you need
- Plugin support for extra formats

## Cons
- Not intended for high-fidelity human-facing conversion
- Image captioning and speech transcription rely on web-hosted services
- Runs with the privileges of the current process, so inputs need sanitizing

## Install
```
pip install 'markitdown[all]'
```

## Usage
```
markitdown path-to-file.pdf > document.md
```

Tags: markdown, document-conversion, pdf, office, llm, python, text-extraction, cli
