Skip to content

What Is Microsoft MarkItDown? Converting PDF, Word and Excel to Markdown, Connecting It to Claude via MCP, and OCR

You type `markitdown proposal.pdf -o proposal.md` in the terminal; MarkItDown converts a PDF, Word, Excel or PowerPoint file into a plain Markdown file with its headings, lists, tables and links. You then have Claude or ChatGPT summarize that file, or load it into a knowledge base. It's Microsoft's open-source Python tool; you use it from the command line, from your own Python program, or from Claude Desktop through an MCP server. Reading the text in a scanned PDF additionally requires a model API or an Azure service.

What it does
Converts office files into Markdown for AI
Type
Python library + command line + MCP server
Maker
Microsoft
Requirements
Python 3.10–3.14
Watch out
No built-in OCR for scanned PDFs
Latest release
0.1.9 (October 21, 2026)
Price
Free (MIT); Azure and the OCR plugin are separate

What is MarkItDown and what does it do?

You have a 40-page PDF contract, an Excel price list or a PowerPoint deck, and you want an AI assistant to read it, summarize it or put it into your company's knowledge base. These files are heavy and messy for an assistant: page layout, embedded objects, formatting. MarkItDown converts the file into Markdown: a simple text format, well known to AI models, where headings are marked with # and lists and tables are written as plain text. According to the README, Markdown is a format models "natively speak" and it's also token-efficient.

Who it's for: agencies, hotels and e-commerce businesses that have an assistant read their proposals, contracts, catalogs and reports; developers who build a knowledge base (RAG) from their files. Who it's not for: anyone who wants an exact copy of the document for people to read. The README says it plainly: the output is meant for text analysis tools, and it may not suit high-fidelity conversions meant for human reading. There's also no graphical interface for someone who doesn't want to install Python and use the terminal; the project describes itself as a library, not an app.

Source: MarkItDown README ("Why Markdown?", "What to Contribute"), November 18, 2026.

How does MarkItDown work?

You give it a fileproposal.pdfInput fileA PDF, DOCX, XLSX, PPTX, HTML file or an address.
MarkItDown converts it by type› markitdown teklif.pdf -o teklif.mdEach format has its own converter; the conversion happens on your computer.
You get Markdownproposal.mdOutput fileHeadings, lists, tables and links are kept.
You give it to an assistant or knowledge baseFor summaries, Q&A or search.
The built-in converters run on your computer. Speech transcription, image descriptions and the Azure options, however, go to online services.

Converters come with optional package extras: [all] installs them all, and writing something like [pdf, docx, pptx] installs only those formats. You can also install plugins written by others; they're off by default and turned on with --use-plugins.

Which files does MarkItDown convert?

PDFPDFDOCXWordXLSXExcel (separate extra for older .xls)PPTXPowerPointHTMLHTMLCSVCSV, JSON, XMLZIPZIP (converts the contents one by one)JPGImage (EXIF metadata, captioning)MP3Audio (EXIF metadata, speech transcription)
  • Also EPUB, Outlook messages (the [outlook] extra) and YouTube URLs (video transcripts with the [youtube-transcription] extra).
  • Image descriptions are written only for PPTX and image files, when a model client (llm_client) is provided.
  • Speech transcription ([audio-transcription], wav and mp3) and image descriptions rely on web-hosted services.

Source: README (supported formats, Optional Dependencies), November 18, 2026.

How do you install MarkItDown?

No account needed. You need Python 3.10 through 3.14; the README recommends a virtual environment (venv) to avoid dependency conflicts. The commands come from the README; in the pip command, the latest release as of November 18, 2026 (0.1.9) is pinned.

Virtual environment (macOS / Linux)› python -m venv .venv source .venv/bin/activate
With all converters, version pinned› pip install 'markitdown[all]==0.1.9'

The README's command has no version: pip install 'markitdown[all]'. If you need only a few formats, pip install 'markitdown[pdf, docx, pptx]'.

  1. Check that it's installed: If markitdown --list-plugins runs without an error, the install is done; it lists the installed plugins.
  2. Convert your first file: markitdown file.pdf -o file.md

Sources: README (Prerequisites, Installation, Docker), PyPI markitdown 0.1.9 (October 21, 2026). Checked on November 18, 2026.

How do you use MarkItDown? What you type, what you get

The commands below are derived from the usage in the README; the outputs are described only as far as the README describes them.

Convert a PDF proposal into a Markdown file› markitdown teklif.pdf -o teklif.md

What you get: proposal.md in the same folder. The document's headings, lists, tables and links are written as Markdown. You can upload this file to Claude or ChatGPT and say "list the payment terms and delivery dates point by point." Instead of -o, you can also write > proposal.md.

Convert an Excel price list› markitdown fiyat-listesi.xlsx -o fiyat-listesi.md

What you get: the workbook's table content as Markdown tables. It's ready-made text for asking an assistant questions like "list the out-of-stock products in this sheet." Older .xls files need the [xls] extra.

From Python: converting files in bulk
Basic usage from the README› from markitdown import MarkItDown md = MarkItDown(enable_plugins=False) result = md.convert("test.xlsx") print(result.markdown)

What you get: the file's Markdown text in result.markdown. You can put this in a loop to convert every contract in a folder and push them into a knowledge base. If you only read local files, the README recommends the narrower convert_local() instead of convert().

Pipe the file in› cat path-to-file.pdf | markitdown

Source: README (Command-Line, Python API), November 18, 2026.

MarkItDown MCP: how do you connect it to Claude Desktop?

MCP (Model Context Protocol) is a common connection format that lets an AI assistant use a tool. The markitdown-mcp package gives the assistant a single tool: convert_to_markdown(uri). The address can be http:, https:, file: or data:; the assistant converts the file or page itself and uses it in the chat. The package is in alpha (0.0.1a8, October 21, 2026).

You"Summarize this PDF"
Claude DesktopCalls the tool
markitdown-mcpconvert_to_markdown(uri)
File or addressComes back as Markdown

Its single tool is convert_to_markdown; it returns the conversion to the chat. It can read any file and network data the user running the server can access.

The README recommends the Docker image for Claude Desktop. First build the image in the packages/markitdown-mcp folder, then add this entry to the claude_desktop_config.json file. To have it read your own files, mount your folder at /workdir (the README's second example).

Build the image› docker build -t markitdown-mcp:latest .
claude_desktop_config.json› { "mcpServers": { "markitdown": { "command": "docker", "args": [ "run", "--rm", "-i", "-v", "/home/user/data:/workdir", "markitdown-mcp:latest" ] } } }
Having Claude Desktop summarize a contract in the mounted folder"Convert /workdir/contract.pdf to Markdown and summarize the payment terms, deadlines and termination clauses point by point."What you get: Claude calls the convert_to_markdown tool with a file: address, reads the returned Markdown and writes the summary in the chat. The file must be in the folder you mounted into Docker; otherwise the tool can't see it.

The server has no authentication. In HTTP or SSE mode, don't bind it to any address other than 127.0.0.1; the README says not to do this without understanding the security implications.

Source: markitdown-mcp README (Usage, Running in Docker, Accessing from Claude Desktop, Security Considerations), November 18, 2026.

Does it do OCR on scanned PDFs?

OCR means reading the text in an image and turning it into text. MarkItDown's built-in converters have no OCR: text in a scanned PDF or in an image embedded in a document isn't extracted on its own. The README gives two routes.

RouteHow it worksCost
markitdown-ocr pluginSends the images inside PDF, DOCX, PPTX and XLSX files to a vision-language model and extracts the text; on scanned PDFs it falls back to full-page OCR. It requires an OpenAI-compatible model client.The plugin is free; the model API fee goes to the provider
Azure Document IntelligenceLayout extraction and OCR in the cloud; with -d -e <endpoint>.Billable Azure API calls
Azure Content UnderstandingCloud service for documents, images, audio and video; can extract fields such as invoice amounts and dates as YAML. --use-cu.Every conversion is a billable Azure API call
Install the OCR plugin› pip install markitdown-ocr pip install openai
The OCR plugin from Python (README example)› from markitdown import MarkItDown from openai import OpenAI md = MarkItDown( enable_plugins=True, llm_client=OpenAI(), llm_model="<model>", ) result = md.convert("document_with_images.pdf") print(result.markdown)

markitdown 0.1.9's command line has no way to pass a model client (there's no option like --llm-client); the OCR plugin is used from Python by providing llm_client and llm_model. What you get: the document's Markdown, with the text read from its images inserted into the flow.

Even with the plugin installed, if no model client is provided, OCR is silently skipped and the ordinary converter runs; no error message appears. If you get empty or incomplete output on a scanned document, check this first.

If you want to process scanned documents with local OCR engines, without a model API, Docling does this on your computer.

Docling guide: layout-preserving conversion and local OCR

Sources: markitdown-ocr README, MarkItDown README (Azure Content Understanding, Azure Document Intelligence), November 18, 2026.

Is MarkItDown free? Commercial use

Yes. MarkItDown is MIT-licensed open-source software; it has no paid plan and no account. Money comes in only with the optional cloud features: every conversion sent to Azure Document Intelligence or Content Understanding is a billable Azure call, and the OCR plugin and image descriptions incur the fees of the model API you connect.

Allowed
  • Using, modifying and embedding it in your own product, including commercially (MIT)
Not allowed
  • Removing the copyright and license notice from copies
  • Using Microsoft trademarks in a modified version in a way that implies Microsoft sponsorship (README trademark rule)
  • Distributing the OCR plugin (markitdown-ocr) with your product without checking the AGPL terms: the plugin also installs PyMuPDF, which is licensed under AGPL-3.0

Sources: LICENSE (MIT), README (Trademarks, Azure cost note), markitdown-ocr pyproject.toml (PyMuPDF dependency), Azure Document Intelligence pricing page, November 18, 2026. This is not legal advice.

Official pricing page last checked on .

Does MarkItDown work with Turkish documents?

Interface and docsNoThe commands and README are in English.
Documents with Turkish textUnclearThe README has no language setting; the converter extracts the text in the document. Turkish isn't covered specifically; check on your first file that Turkish-specific letters come through correctly.
Turkish speech transcriptionUnclearSpeech transcription goes to a web-hosted service; the language list isn't stated in the official documentation.

Is MarkItDown safe? Where do my files go?

What stays local

The built-in converters (PDF, Word, Excel, PowerPoint, HTML…) run on your computer; the README describes them as offline, format-specific extraction.

What leaves your computer

Image descriptions, speech transcription, the OCR plugin and the Azure options send content to the respective service. If you want to work only locally, install only the extras you need.

Permissions

MarkItDown reads files and the network with the permissions of the program running it. If you convert input supplied by others on a web server, restrict paths and addresses, and use a narrow function such as convert_local() or convert_stream().

Sources: README (Security Considerations, Azure table), markitdown-mcp README, November 18, 2026. No entries in GitHub security advisories. This is not a security audit.

Common problems and fixes

What happensWhat to do
A file type isn't convertedThat format's extra may not be installed: [all], or [pdf], [docx], [pptx], [xlsx], [xls], [outlook].
A scanned PDF comes out empty or incompleteThere's no built-in OCR. Install the OCR plugin and provide llm_client and llm_model; otherwise the plugin silently skips OCR.
An installed plugin doesn't runPlugins are off by default: --use-plugins on the command line, enable_plugins=True in Python.
The MCP tool can't find the file (Docker)Mount the file's folder with -v /path:/workdir and give the address as /workdir/....

How do you uninstall MarkItDown?

› pip uninstall markitdown markitdown-mcp markitdown-ocr

If you used a virtual environment, deleting the .venv folder also works. If you added it to Claude Desktop, remove the markitdown entry from claude_desktop_config.json; delete the Docker image with docker rmi markitdown-mcp:latest.

MarkItDown, Docling or another route?

The MarkItDown and Docling rows come from the two projects' official docs; the other rows summarize those tools' own guides. This is not a ranking.

Frequently asked questions

How do you connect MarkItDown MCP to Claude?

The README recommends the Docker route for Claude Desktop: build the markitdown-mcp image and add a docker run --rm -i markitdown-mcp:latest entry to claude_desktop_config.json. For your own files, mount your folder as /workdir. The README has no separate step for Claude Code or other clients.

How does MarkItDown convert PDFs to Markdown, and are tables kept?

With the command markitdown file.pdf -o file.md. The README says the conversion aims to keep headings, lists, tables and links as Markdown; the output is meant more for AI and text analysis than for people to read.

Does MarkItDown do OCR on scanned PDFs?

The built-in converters have no OCR. The markitdown-ocr plugin extracts text from images with a model API; Azure Document Intelligence and Content Understanding are paid cloud options.

What is Microsoft MarkItDown?

An open-source (MIT) Python tool published by Microsoft on GitHub that converts files into Markdown for AI models and text analysis. It's used as a command-line tool, a Python library and an MCP server.

Is MarkItDown free?

Yes, it's MIT-licensed and free; no account needed. Only the Azure options and the model API used by the OCR plugin are paid.

MarkItDown or Docling?

MarkItDown is lightweight and quick to start; its goal is preparing text for AI, and it has no built-in OCR. Docling works out page layout and tables with models and does local OCR, but it downloads models on the first PDF and is heavier. For PDFs with complex tables or scanned documents, Docling fits; for plain office files, MarkItDown does the job.

Does MarkItDown work offline?

The built-in converters run on your computer. Image descriptions, speech transcription, the OCR plugin and the Azure options go to online services; to work only locally, install only the extras you need.

Related guides

Sources

Not clear in the official sources: Whether Turkish speech transcription is supported (transcription goes to a web service, and the language list isn't in the docs) · the setup steps for markitdown-mcp in Claude Code, VS Code and Cursor (the README only covers Claude Desktop). Each is covered in the relevant section along with what you can do.