Sébastien Rigaux

Microsoft MarkItDown converts files to Markdown for LLM pipelines

View resource

github.com

Microsoft MarkItDown is a Python tool and library that converts files—including PDFs, Office documents, HTML, audio, and EPUBs—to Markdown for text analysis and LLM pipelines. It preserves structure such as headings, lists, tables, and links rather than visual fidelity.

Optional dependencies can be installed by format, while third-party plugins add converters independently. For untrusted input, the repository recommends restricting access to files and URIs and using the narrowest conversion function needed, such as convert_local() or convert_stream().

Banner for the Microsoft MarkItDown repository, showing the project name, a description of its Python file-to-Markdown conversion tool, the Microsoft logo, and GitHub statistics.