MarkItDown Document-to-Markdown
Convert PDFs, Office files, HTML, and more into clean Markdown with Microsoft MarkItDown for search, analysis, and LLM/RAG ingestion.
Docs & OfficeIntermediate★ 33,030⑂ 3,248AI score 9/10Last updated: Aug 9, 2026
What it does
This skill teaches Claude to drive Microsoft MarkItDown 0.1.6 correctly and safely.
- Converts PDF, DOCX, PPTX, XLSX/XLS, HTML, CSV, EPUB, ZIP, and Outlook mail into structure-preserving Markdown
- Provides a decision table for picking the narrowest API:
convert_local()for paths,convert_stream()withStreamInfofor bytes,convert_response()after your own validated HTTP fetch - Bundles batch helpers (
batch_convert.py,convert_literature.py) with manifest files, YAML front matter provenance, and year-based organization - Explains scanned-PDF/image text options: the
markitdown-ocrvision plugin, Azure Document Intelligence, Azure Content Understanding - Covers the official
markitdown-mcpserver plus STDIO vs HTTP/SSE security tradeoffs - Includes a troubleshooting table and a post-conversion quality checklist
Security rules are explicit: treat converted text as untrusted (prompt-injection risk), keep plugins opt-in, and get approval before sending content to external services.
Who it's for
- Engineers building RAG pipelines or search indexes over internal document stores
- Researchers and grad students turning hundreds of paper PDFs into analyzable Markdown
- Knowledge workers feeding reports, decks, and spreadsheets to an LLM
- Teams that must keep confidential documents on local-only conversion paths
Examples
- Single report: "Convert report.pdf to Markdown" → runs
markitdown report.pdf -o report.md, then verifies headings and tables against the quality checklist. - Literature library: batch-convert 300 PDFs in
papers/withconvert_literature.py --recursive --create-index, organizing output by year parsed fromSmith_2025_Title.pdf. - Scanned document: when a PDF yields almost no text, choose between the
markitdown-ocrplugin and Azure Document Intelligence, confirming with the user first because data leaves the machine.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/markitdown folder from the GitHub repo K-Dense-AI/scientific-agent-skills into my ~/.claude/skills/markitdown/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/markitdown ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the skill repository:
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git - Create your Claude skills folder and copy just this skill:
mkdir -p ~/.claude/skills cp -r scientific-agent-skills/skills/markitdown ~/.claude/skills/ - Make sure Python 3.10+ and
uvare installed (curl -LsSf https://astral.sh/uv/install.sh | shif needed). - Create an isolated environment and install MarkItDown:
uv venv --python 3.12 .venv && source .venv/bin/activate uv pip install "markitdown[all]==0.1.6" - Verify with
markitdown --version. - Restart Claude Code, then ask something like "Convert this PDF to Markdown" and the skill will activate.
- (Optional) For OCR or Azure extraction, install the extra plugin and set the API keys. Keep confidential files on the local-only path.
View source on GitHub ↗License: MIT