Skip to main content

Overview

This guide will help you install MarkItDown and convert your first document to Markdown using both the command-line interface and Python API.
Prerequisites: Python 3.10 or higher. We recommend using a virtual environment to avoid dependency conflicts.

Installation

Install MarkItDown with all optional dependencies for full format support:
For specific format support, see the detailed installation guide to install only the dependencies you need.

CLI quickstart

The command-line interface is the fastest way to convert documents.
1

Convert a file to Markdown

Use the markitdown command with any supported file:
Or specify the output file with the -o flag:
2

Convert from stdin

You can pipe content directly to MarkItDown:
Or use input redirection:
3

View the output

Open the output file to see your converted Markdown:

CLI examples

Python API quickstart

Integrate MarkItDown into your Python applications for programmatic document conversion.
1

Import and initialize

2

Convert a file

3

Save the output

Python API examples

Advanced usage

Using LLM for image descriptions

Enhance image and PowerPoint conversions with AI-generated descriptions:

Azure Document Intelligence

Use Microsoft’s Document Intelligence for superior PDF processing:
Learn how to set up an Azure Document Intelligence Resource in the Azure documentation.

Using plugins

MarkItDown supports third-party plugins for extended functionality:
To find available plugins, search GitHub for the hashtag #markitdown-plugin.

Next steps

Installation guide

Learn about virtual environments and selective dependency installation

Python API reference

Explore the complete API documentation

CLI reference

See all command-line options and flags

Converters

Deep dive into format-specific converters

Common patterns

Batch conversion

Error handling

Processing HTTP responses

Need help? Check out the API reference for detailed documentation on all methods and parameters.