Skip to content
ML2
Research & AutomationTool#Open sourceMicrosoftdocumentsPython

MarkItDown: convert docs to Markdown for LLMs

Added Updated Copyable prompt below

Published Last verified Released

Our verdict

A cheap first step for any pipeline that feeds documents to a model: one pip install, a CLI and a Python API, MIT licensed, and it keeps headings, lists, tables and links. It is built for machines, not for polished human-readable conversions, and scanned pages need the OCR plugin or an Azure service. On a server, don't pass it untrusted input without locking it down.

Who it's for
Anyone feeding documents into LLM workflows
Leverage
Clean inputs for better model outputs
Effort
Low
Date added

What MarkItDown does

MarkItDown (microsoft/markitdown, MIT) is a Python utility and CLI for Python 3.10 to 3.14 that converts PDF, Word, PowerPoint, Excel, images (EXIF metadata and captions), audio (metadata and transcription), HTML, CSV, JSON, XML, ZIP archives, EPUB files and YouTube URLs into Markdown. Optional extras install only the converters you need, the separate markitdown-mcp package exposes it to agents over MCP, and plugins (off by default) extend it, including markitdown-ocr for text inside images.

How builders use MarkItDown

  • Prepare documents for RAG: run markitdown report.pdf -o report.md, then chunk and embed the Markdown instead of raw PDF text.
  • Hand a spec deck or requirements document to a coding agent as Markdown rather than a binary file.
  • Keep containers small by installing only the formats you need, for example pip install 'markitdown[pdf, docx, pptx]'.
  • Give Claude Desktop or another MCP client a convert_to_markdown(uri) tool by running markitdown-mcp locally; the README recommends the Docker image for Claude Desktop.
  • Pull text out of images embedded in PDFs and slides with the markitdown-ocr plugin and an OpenAI-compatible vision model.

Which MarkItDown converter to use

The README compares the built-in converters with the two Azure options; the OCR plugin sits in between.

OptionRunsGood forCost
Built-in convertersOffline, on your machineBorn-digital PDFs, Office files, HTML, CSV and JSONLocal compute only
markitdown-ocr pluginYour machine plus a vision model you chooseText inside images in PDF, DOCX, PPTX and XLSX filesYour model provider's charges
Azure Document IntelligenceAzure cloudCloud layout extraction and requested fields such as Title or AuthorBillable Azure API calls
Azure Content UnderstandingAzure cloudScanned PDFs, complex tables, audio and video, custom field extractionBillable Azure API calls

MarkItDown: limits and gotchas

  • Output is meant for text analysis tools. The README says it may not be the best option for high-fidelity conversions meant for people to read.
  • The built-in converters don't OCR scanned pages. Add markitdown-ocr (without an llm_client, OCR is silently skipped) or route PDFs to Azure.
  • Image captioning and speech transcription rely on web-hosted services, so those formats aren't fully offline.
  • It reads files and URLs with the privileges of the running process. In a hosted app, validate input and call the narrowest method (convert_local or convert_stream) rather than the permissive convert().
  • markitdown-mcp is meant for local use with trusted agents; its HTTP mode binds to localhost by default.
  • Azure conversions bill per call. Use cu_file_types to send only some formats to Content Understanding.

MarkItDown compared with other tools here

  • Firecrawl: for websites and whole-site crawls returned as Markdown or JSON. Use MarkItDown for files you already have.
  • Jina Reader: one web URL to LLM-friendly text with a URL prefix, PDFs included, with nothing to install. MarkItDown suits local Office files and batch jobs.
  • Crawl4AI: a self-hosted crawler for web pages. Run MarkItDown on any PDFs or Office files a crawl downloads.
  • Repomix: packs a code repository into one file for a model. Use Repomix for code and MarkItDown for documents.
  • Gemini Notebook: upload documents and ask questions in Google's app when you don't need a pipeline.
  • Turn a docs site into agent context: our workflow for giving a coding agent current docs as local Markdown, with MarkItDown handling the PDFs.

When to pick MarkItDown

  • Pick MarkItDown if you feed PDFs, Office files or HTML to a model and want headings, tables and lists kept, at no cost.
  • Pick it if you want a CLI and Python API you can run offline in a script, container or MCP server.
  • Pick something else if you need faithful conversions for people to read, or your documents are mostly scans and you can't use a vision model or Azure.

Copy this: Command

pip install 'markitdown[all]'
markitdown spec.pdf -o spec.md
# then: "Read spec.md and produce a task list for implementing v1."

MarkItDown questions

Does MarkItDown work offline?

The built-in converters run locally. Image captioning, speech transcription, the OCR plugin and the Azure options call web services.

Can MarkItDown read scanned PDFs?

Not with the built-in converters alone. Use the markitdown-ocr plugin with a vision model, or Azure Document Intelligence or Content Understanding.

Is there a MarkItDown MCP server?

Yes. pip install markitdown-mcp gives a STDIO, Streamable HTTP or SSE server with one tool, convert_to_markdown(uri). It is meant for local use with trusted agents.

Related discoveries

See the newest picks →
  • ToolResearch & Automation

    Crawl4AI

    Open-source crawler that turns any website into clean, LLM-ready Markdown, as a Python library, your own Docker server or a hosted API.

    Effort: MediumPrompt#Open source

  • ToolResearch & Automation

    Firecrawl

    An API that turns web pages and whole sites into clean Markdown or JSON for agents, with search, crawl and an MCP server.

    Effort: Low#Open source#Self-hostable

Get the best new A.I. picks in your inbox

The best new agent workflows and tools we’ve vetted, with a clear verdict on each. Short, occasional, useful.

More in Research & Automation →

Free. No spam. Unsubscribe anytime.