Basic Usage
Convert a file to Markdown and output to stdout:Input Methods
MarkItDown supports multiple ways to provide input:When reading from stdin (pipe or redirection), you may need to provide hints about the file type using
--extension or --mime-type flags.Output Options
Control where the Markdown output is written:Command-Line Flags
Version Information
File Type Hints
When reading from stdin or when the file type cannot be automatically detected:Azure Document Intelligence
Use Azure Document Intelligence for cloud-based conversion:Plugin Support
Enable third-party plugins:Data URI Handling
By default, data URIs (like base64-encoded images) are truncated in the output:Common Patterns
Batch Conversion
Convert multiple files:Piping with Processing
Combine with other tools:Using with stdin Hints
When the file type cannot be inferred from context:Exit Codes
- 0: Successful conversion
- 1: Error occurred (file not found, conversion failed, invalid arguments, etc.)
Examples by File Type
1
PDF Documents
2
Word Documents
3
Excel Spreadsheets
4
PowerPoint Presentations
5
Images with Metadata