# Converting Documents to Markdown With MarkItDown

DevFeed: [Converting Documents to Markdown With MarkItDown](<https://devfeed.tech/articles/converting-documents-to-markdown-with-markitdown-114258.md>)

Original publisher: [Read original article](<https://realpython.com/courses/converting-documents-markdown-markitdown/>)

Author: Real Python

Published: 2026-11-03T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Markdown](<https://devfeed.tech/topics/markdown.md>), [AI-Ready Data](<https://devfeed.tech/topics/ai-ready-data.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [Natural language processing](<https://devfeed.tech/topics/nlp.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [batch](<https://devfeed.tech/tags/batch.md>), [claude](<https://devfeed.tech/tags/claude.md>), [clients](<https://devfeed.tech/tags/clients.md>), [code](<https://devfeed.tech/tags/code.md>), [conversion](<https://devfeed.tech/tags/conversion.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [directory](<https://devfeed.tech/tags/directory.md>), [file-formats](<https://devfeed.tech/tags/file-formats.md>), [files](<https://devfeed.tech/tags/files.md>), [html](<https://devfeed.tech/tags/html.md>), [image](<https://devfeed.tech/tags/image.md>), [images](<https://devfeed.tech/tags/images.md>), [library](<https://devfeed.tech/tags/library.md>), [llm](<https://devfeed.tech/tags/llm.md>), [llms](<https://devfeed.tech/tags/llms.md>), [markdown](<https://devfeed.tech/tags/markdown.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [mcp-server](<https://devfeed.tech/tags/mcp-server.md>), [pdfs](<https://devfeed.tech/tags/pdfs.md>)

## AI overview

MarkItDown converts PDFs, Office files, images, HTML, and URLs into Markdown for use as LLM input. The course covers installing it with pip and the `[all]` optional dependencies, converting a document with `.convert()`, and batch-processing mixed files in Python. Its MCP server can expose on-demand conversion to clients such as Claude Desktop, and it can integrate with LLMs to generate image descriptions. The excerpt notes a limitation with complex layouts, where Pandoc may be a better fit.

## Source excerpt

Learn how to use MarkItDown to convert Excel files, PDFs, and images into clean Markdown that's ready for LLMs and AI workflows.