MarkItDown
$ markitdown Official Low RiskMarkItDown (markitdown, by Microsoft) converts PDFs, DOCX, PPTX, XLSX, images, audio, and HTML into LLM-friendly Markdown. Unlike heavy deep-learning PDF suites, it starts fast, supports Unix stdin piping (-x pdf), emits clean Markdown directly to stdout or -o, and optionally integrates Azure Document Intelligence (--use-docintel).
pip install markitdown Microsoft also ships a markitdown-mcp server, but direct markitdown CLI invocation avoids MCP tool overhead when files already live in the local workspace.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports stdin (-x, -m), clean stdout emission, and -o output without prompts, though it outputs Markdown rather than JSON.
- Clean stdout/stdin Unix piping with
-xand-mhints - Outputs Markdown only (no
--jsonstructural layout output)
Local read-only stdout conversion by default, third-party plugins disabled unless --use-plugins is passed, and Azure cloud OCR opt-in only.
- Plugins disabled by default (
--use-pluginsopt-in) - Zero network calls unless
--use-docintel/--use-cuis specified
Lightweight Python package (pip install 'markitdown[all]' or markitdown) without multi-GB PyTorch/CUDA weights.
- Lightweight dependencies and fast
uvx markitdownstartup
Broad format support (PDF, DOCX, PPTX, XLSX, HTML, CSV, ZIP) ideal for fast RAG ingestion, though complex multi-column scanned PDFs need OCR tools.
- Converts Office, PDF, HTML, and tabular formats into Markdown
Official Microsoft repository (microsoft/markitdown) under MIT license.
- Official
microsoft/markitdownrepo under MIT license
Clear README CLI flags and --help output.
- Documented CLI flags in repository README
Security, Auth & Guardrails
Requires no credentials for local conversions; optional Azure integration uses MARKITDOWN_DOCINTEL_ENDPOINT or --endpoint.
MIT open-source CLI; local conversion is free, while optional Azure Document Intelligence incurs Azure billing.
# MarkItDown CLI (markitdown) Agent Rules - Prefer stdout (`markitdown file.pdf`) or explicit `-o out.md` when converting workspace documents. - Pass `-x <ext>` or `-m <mime>` whenever piping input through `stdin`. - Only enable `--use-docintel` or `--use-plugins` when explicitly authorized by the user.
Agent-Ready Command Recipes
Safe Read-Only Queries
markitdown report.docx
Reads report.docx and prints clean Markdown directly to stdout with no disk writes.
cat document.pdf | markitdown -x pdf
Accepts raw binary streams on stdin using -x pdf extension hint.
Controlled Writes & Previews
markitdown slides.pptx -o slides.md
Writes the converted Markdown representation to slides.md.
Strengths for Agents
- + Fast startup without multi-gigabyte deep learning model downloads.
- + Clean
stdin/stdoutUnix pipeline support (-x,-m,-o).
Caveats & Pitfalls
- ! Lacks OCR accuracy on scanned/complex layout PDFs unless paired with
--use-docintel. - ! Outputs Markdown text rather than structured JSON layout blocks.