MarkItDown

github.com

Microsoft's open-source Python tool that converts PDF, Office files, audio, HTML and more into Markdown for LLMs.

Pricing
Open source
Published
Nov 20, 2026

Next steps

What it does

MarkItDown is a lightweight open-source Python utility from Microsoft that converts files to Markdown for LLMs and text analysis pipelines. It handles PDF, PowerPoint, Word, Excel, images (EXIF and captioning), audio (metadata and transcription), HTML, CSV/JSON/XML, ZIP archives, YouTube URLs and EPubs. Image captioning and transcription rely on web-hosted services. It runs with the privileges of the current process, so sanitize untrusted input. MIT licence.

Use cases

  • Convert PDF, Word, PowerPoint and Excel files to Markdown before sending them to an LLM
  • Turn HTML, CSV, JSON, XML, EPubs, ZIP contents and YouTube URLs into text for analysis pipelines
  • Add images with EXIF/captioning and audio transcription to a document-processing workflow

Frequently asked questions

What is MarkItDown?
MarkItDown is a lightweight Python utility from Microsoft that converts many file types to Markdown for use with LLMs and text analysis pipelines.
Which formats does it support?
PDF, PowerPoint, Word, Excel, images, audio, HTML, CSV/JSON/XML, ZIP files, YouTube URLs and EPubs, among others.
Why Markdown?
The README notes Markdown is close to plain text but keeps document structure, and mainstream LLMs handle it well.
Is there a security note?
Yes. MarkItDown performs I/O with the privileges of the current process, so sanitize inputs in untrusted environments. It is MIT licensed.
Log in to join the discussion