Usage
Command Line
Convert files to Markdown from the command line with the markitdown CLI, including piping, custom output files, and plugin support.
Convert a file and print the result to stdout:
markitdown path-to-file.pdf > document.mdOr use -o to specify the output file:
markitdown path-to-file.pdf -o document.mdYou can also pipe content:
cat path-to-file.pdf | markitdownPlugins
MarkItDown also supports 3rd-party plugins. Plugins are disabled by default. See the Plugins page for details on listing, enabling, and developing plugins.
Azure integrations
The CLI also supports routing conversions through Azure AI services for higher-quality results: