AI资讯大全AIPPXP.CN搜索 ↗
工具介绍 · 免费好用

markitdown: Microsoft's open-source "anything to Markdown" tool — clean up PDF, Word, Excel and PPT before feeding your LLMmarkitdown:微软开源「万物转 Markdown」,PDF、Word、Excel、PPT 喂给大模型前先转干净文本

LLMs only consume text, but your material is usually PDF, Word, PPT, Excel, images or even audio. markitdown is Microsoft's open-source conversion CLI (MIT, 190,000+ stars) that turns common documents into clean Markdown — preserving headings, tables and structure — and is a classic preprocessing step for RAG, knowledge bases and agent pipelines.

大模型只吃文本,可资料往往是 PDF、Word、PPT、Excel、图片甚至音频。markitdown 是微软开源(MIT、190,000+ 星)的格式转换命令行,一条命令把常见文档转成保留标题、表格与结构的干净 Markdown,是搭 RAG、做知识库、给智能体喂数据的经典前置工具。

2026-10-14 更新 · 免费
markitdown:微软开源「万物转 Markdown」,PDF、Word、Excel、PPT 喂给大模型前先转干净文本

What is it?它是什么

markitdown comes from Microsoft (part of the AutoGen ecosystem) with one mission: turn real-world files into LLM-friendly Markdown. It supports a long list of formats — PDF, Word, Excel, PowerPoint, images (OCR), audio (transcription), EPUB, HTML, CSV, JSON, XML, zip archives and more.

It is not naive text extraction: it preserves structural cues like heading levels, tables and lists, which matters a lot for RAG chunking and retrieval quality.

Its 190,000+ stars reflect heavy production use — Microsoft's own ecosystem (AutoGen, Fabric and more) relies on it for document preprocessing.

中文

markitdown 来自微软(AutoGen 生态),定位是「把现实世界里的文件变成 LLM 友好的 Markdown」,支持 PDF、Word、Excel、PowerPoint、图片(OCR)、音频(转写)、EPUB、HTML、CSV、JSON、XML、zip 等一长串格式。

它不是简单的「文字抽取」:会尽量保留文档的结构信息,比如标题层级、表格、列表,这对 RAG 分块和检索质量影响很大。

190,000+ 星的背后是大量生产环境使用:微软自己的生态(AutoGen、Fabric 等)也在用它做文档预处理。

How to use it怎么用

After installing, one command handles a single file: markitdown path-to-file.pdf > document.md outputs clean Markdown.

A Python API is available for batch pipelines: from markitdown import MarkItDown; result = MarkItDown().convert("test.xlsx").

A plugin system extends format support, and running it inside Docker lets you expose conversion as a service for your team.

中文

安装后一条命令搞定单文件:markitdown path-to-file.pdf > document.md,输出的就是干净的 Markdown。

也提供 Python API,方便嵌进批处理脚本:from markitdown import MarkItDown; result = MarkItDown().convert("test.xlsx")。

插件机制可以扩展更多格式;配合 Docker 运行还能把转换做成服务,供团队内部调用。

Typical use cases典型场景

Normalize documents before they enter a company knowledge base: batch-convert Office files to Markdown, then chunk and embed them.

Convert papers, financial reports and contracts to text before agent analysis — keeping table structure noticeably improves Q&A accuracy.

It is handy for everyday jobs too, like turning .docx meeting notes into Markdown for your note app.

中文

企业知识库入库前的统一格式化:把各部门的 Office 文档批量转成 Markdown 再切片入向量库。

把论文、财报、合同喂给智能体分析前先转文本,保留表格结构,问答准确率明显更好。

日常轻量需求也好用:把 .docx 会议纪要转成 Markdown 存进笔记软件。

Download instructions下载说明

The download button provides the official PyPI source distribution of markitdown 0.1.8 (MIT license, about 67KB). Unpack and run python -m pip install . to install.

Online, the simplest route is pip install markitdown for the latest version; the package here suits offline or version-locked setups.

中文

下载按钮提供 PyPI 官方源的源码分发 markitdown 0.1.8(MIT 许可),体积只有约 67KB,解压后 python -m pip install . 即可安装。

联网环境下更省事的方式是直接 pip install markitdown 获取最新版;本文包适合离线或锁定版本的场景。

Use reminder使用提醒

This article is compiled from public sources and ships with the matching resource. Product features and pricing are subject to the official page. Resources are for learning and exchange only — please respect the original license.

中文

本文整理自公开资料并附上配套资源;涉及产品的功能与价格以官方页面为准。资源仅供学习交流,请遵循来源许可。

资源下载 · Download

⬇ Download · 点击下载:markitdown 0.1.8 PyPI 官方源码包(约 67KB)

来自 PyPI 官方源 markitdown 0.1.8 源码分发(MIT 许可);上游仓库为 GitHub microsoft/markitdown。

0阅读0 条评论

阅读与点赞数据保存在你的浏览器本地,欢迎留下你的想法。

评论 文明发言,让讨论更有价值

正能量公益广告今日正能量学一点,用一点;今天种下的种子,会长成明天的能力。去免费下载专区 →广告