| name | markdown-converter |
| description | Convert documents and files to Markdown using markitdown. Use when converting PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx, .xls), HTML, CSV, JSON, XML, images (with EXIF/OCR), audio (with transcription), ZIP archives, YouTube URLs, Outlook (.msg), or EPubs to Markdown format for LLM processing or text analysis. |
| license | MIT |
Markdown Converter
Convert files to Markdown using uvx markitdown — no manual install required.
Choosing the invocation (read this first)
markitdown ships format support as optional extras. A bare markitdown
install only handles HTML, plain text, CSV, JSON, and XML. PDF, Office files,
audio, YouTube, and Outlook each need an extra, so you must request them in the
uvx call — otherwise the run fails with a missing-dependency error.
uvx 'markitdown[all]' input.pdf
uvx --from 'markitdown[pdf]' markitdown input.pdf
uvx --from 'markitdown[docx]' markitdown report.docx -o report.md
Available extras: pptx, docx, xlsx, xls, pdf, outlook,
audio-transcription, youtube-transcription, az-doc-intel,
az-content-understanding, and all.
Basic Usage
uvx 'markitdown[all]' input.pdf
uvx 'markitdown[all]' input.pdf -o output.md
uvx 'markitdown[all]' input.docx > output.md
cat input.pdf | uvx 'markitdown[all]' -x .pdf > output.md
Supported Formats
- Documents: PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx, .xls)
- Web/Data: HTML, CSV, JSON, XML
- Media: Images (EXIF + OCR), Audio (EXIF + transcription)
- Mail: Outlook (.msg)
- Other: ZIP (iterates contents), YouTube URLs, EPub
Options
-o, --output OUTPUT
-x, --extension EXT
-m, --mime-type MIME
-c, --charset CHARSET
--keep-data-uris
-p, --use-plugins
--list-plugins
-d, --use-docintel
-e, --endpoint URL
--use-cu
--cu-endpoint URL
--cu-analyzer ID
--cu-file-types LIST
-v, --version
-d and --use-cu are mutually exclusive — pick one cloud path, or neither for
fully offline conversion.
Examples
uvx 'markitdown[all]' report.docx -o report.md
uvx 'markitdown[all]' data.xlsx > data.md
uvx 'markitdown[all]' slides.pptx -o slides.md
uvx 'markitdown[all]' brochure.pdf --keep-data-uris -o brochure.md
uvx 'markitdown[all]' scan.pdf -d -e "https://your-resource.cognitiveservices.azure.com/"
Notes
- Output preserves document structure: headings, tables, lists, links.
- First run resolves and caches dependencies; later runs are faster.
[all]
caches more than a single extra.
- Requires Python 3.10+;
uvx provisions a suitable interpreter automatically.
- For scanned or layout-heavy PDFs where offline extraction is poor, use
-d
with Azure Document Intelligence.
- Discover plugins by searching GitHub for the
#markitdown-plugin topic.
Python API
For programmatic use — LLM-generated image descriptions, byte-stream
conversion, or Azure Content Understanding analyzers — markitdown exposes a
Python API beyond what the CLI covers. See references/python-api.md.
Provenance
This skill is a thin wrapper around markitdown (© Microsoft, MIT licensed), invoked via uvx. markitdown does the actual conversion; this skill documents the workflow and is not affiliated with Microsoft. The optional -d / --use-cu paths use Azure services, which require your own Azure resource and credentials.