Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

MarkItDown

$ markitdown Official Low Risk
Microsoft · AI & Media · MIT · macos / linux / windows

MarkItDown (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).

FCRS-1.0 Score
83 /100
Good
Medium Confidence
Zero-Friction Install
pip install markitdown
CLI vs MCP Decision Hybrid (CLI + MCP)

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

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

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 -x and -m hints
  • Outputs Markdown only (no --json structural layout output)
Trust & Safety 23 / 25

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-plugins opt-in)
  • Zero network calls unless --use-docintel / --use-cu is specified
Setup & Portability 12 / 15

Lightweight Python package (pip install 'markitdown[all]' or markitdown) without multi-GB PyTorch/CUDA weights.

  • Lightweight dependencies and fast uvx markitdown startup
Utility & Efficiency 13 / 15

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
Maintenance & Lineage 9 / 10

Official Microsoft repository (microsoft/markitdown) under MIT license.

  • Official microsoft/markitdown repo under MIT license
Docs & Verifiability 7 / 10

Clear README CLI flags and --help output.

  • Documented CLI flags in repository README

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key
Credential Storage

Requires no credentials for local conversions; optional Azure integration uses MARKITDOWN_DOCINTEL_ENDPOINT or --endpoint.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

MIT open-source CLI; local conversion is free, while optional Azure Document Intelligence incurs Azure billing.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Convert a local document to Markdown on stdout
markitdown report.docx

Reads report.docx and prints clean Markdown directly to stdout with no disk writes.

Convert piped PDF bytes via stdin
cat document.pdf | markitdown -x pdf

Accepts raw binary streams on stdin using -x pdf extension hint.

Controlled Writes & Previews

Save converted Markdown to a file
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/stdout Unix 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.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI