thezakuloGet the newsletter
← All setup guides

Setup guide · 5 steps · about 10 minutes

How to start using microsoft/markitdown

MarkItDown is a lightweight Python utility that converts files such as PDF, Word, PowerPoint, Excel, images, audio, HTML, and more into Markdown for use with LLMs and text analysis pipelines.

Built from the official docs: GitHub - microsoft/markitdown: Python tool for converting files and office documents to Markdown. · raw.githubusercontent.com · checked 25 November 2026

Command-line with pip

  1. Check your Python version

    MarkItDown requires Python 3.10 through 3.14. Confirm you have a supported version before continuing.

    python --version
  2. Create and activate a virtual environment

    The README recommends using a virtual environment to avoid dependency conflicts. These commands create and activate one with the standard Python installation.

    python -m venv .venv
    source .venv/bin/activate
  3. Install MarkItDown with all optional dependencies

    Install the package with pip. The [all] option installs all optional dependencies so every supported file format works.

    pip install 'markitdown[all]'
  4. Convert a file from the command line

    Run the markitdown command on your file and write the Markdown to an output file. Replace the placeholders with your own file paths.

    markitdown <path-to-your-file.pdf> -o <output.md>
  5. (Optional) Use it from Python instead

    You can also call MarkItDown from Python. Create a MarkItDown instance, convert your file, and print the Markdown.

    from markitdown import MarkItDown
    
    md = MarkItDown(enable_plugins=False) # Set to True to enable plugins
    result = md.convert("<path-to-your-file>")
    print(result.markdown)

Check it worked

The output file (or the printed result.markdown) contains your document converted to Markdown, preserving structure such as headings, lists, tables, and links.

Try these first

Get every issue by email

One email a week with the written issue. Free, one-click unsubscribe

Subscribe