Skip to content
  1. Home
  2. AI tools
  3. MarkItDown

MarkItDown

Lightweight Python utility that converts files to Markdown for LLMs

What it is

A small Python utility and CLI from Microsoft that converts office documents, PDFs and other files into Markdown while keeping headings, lists, tables and links. Optional extras enable individual formats and it supports third-party plugins. For feeding documents into LLM prompts and text pipelines.

Good for

  • Turn a PDF or DOCX into Markdown for a prompt
  • Batch-convert office files for a text pipeline
  • Add OCR conversion through an optional package

Install or run

pip install 'markitdown[pdf, docx, pptx]'

Command as given in the project README. Read the repository before you run anything on your machine.

What you need

Python 3.10 to 3.14

Worth knowingOutput is meant for machine consumption, not faithful layout; it reads files with your process privileges, so sanitise untrusted input.

Sources

The summary is ours, written from the README. Spotted an error? See how we work.

More for data & research

See the topic →
  • RAGFlow

    infiniflow/ragflow

    Self-hosted RAG engine with document parsing and agent templates

    ToolGitHub stars: 94k
  • Docling

    docling-project/docling

    Parse PDFs, Office files and more into structured data for LLMs

    ToolGitHub stars: 71k
  • serviette

    pathwaycom/serviette

    No-code RAG server that keeps answers in sync with a document folder

    ToolGitHub stars: 59k
  • LightRAG

    HKUDS/LightRAG

    Graph-based RAG library and server with pluggable storage backends

    ToolGitHub stars: 41k