microsoft/markitdownPublic

Python tool for converting files and office documents to Markdown.

AI summary: A lightweight Python utility for converting various file formats into clean Markdown.

Stars
188.4K
+197 today
Forks
13.9K
Watchers
588
Open issues
327
Open PRs
371
Contributors
~130
Commits
406
Branches
7

PythonMITCreated Nov 13, 2024Last push todayLatest release v0.1.8+1.1K stars this week+10.2K this month

Quick answers

What is markitdown?
A lightweight Python utility for converting various file formats into clean Markdown.
What does markitdown do?
MarkItDown is a versatile utility designed to convert a wide array of document and data formats into standardized, readable Markdown. It handles complex formats like PDFs, Word documents, Excel spreadsheets, and HTML pages, extracting text and structure while discarding proprietary formatting. The tool operates using the privileges of the current process, safely accessing and parsing files locally or via streams. By outputting clean Markdown, it makes previously inaccessible document content ready for version control, text analysis, or consumption by Large Language Models. It serves as a critical bridge between human-readable documents and machine-processable text.
Who is markitdown for?
This tool is ideal for data engineers, AI developers, and technical writers who need to extract and normalize text from various document formats. It is especially useful for teams building Retrieval-Augmented Generation (RAG) applications.
How do I get started with markitdown?
pip install markitdown
How popular is markitdown on GitHub?
microsoft/markitdown has 188,396 stars and 13,946 forks on GitHub, and gained 1,083 stars in the last 7 days.
What license does markitdown use?
microsoft/markitdown is released under the MIT license.

Star history

since Jul 29, 2026
050K100K150KJul 2026Aug 2026Sep 2026Oct 2026
188.4K stars as of Oct 4, 2026. Measured daily since Jul 29, 2026; GitHub no longer exposes earlier star timestamps.

Contribution activity

commits per day, last 52 weeks
OctNovDecJanFebMarAprMayJunJulAugSepMonWedFri2025-10-05: 0 commits2025-10-06: 0 commits2025-10-07: 0 commits2025-10-08: 0 commits2025-10-09: 0 commits2025-10-10: 0 commits2025-10-11: 0 commits2025-10-12: 0 commits2025-10-13: 0 commits2025-10-14: 0 commits2025-10-15: 0 commits2025-10-16: 0 commits2025-10-17: 0 commits2025-10-18: 0 commits2025-10-19: 0 commits2025-10-20: 2 commits2025-10-21: 0 commits2025-10-22: 0 commits2025-10-23: 0 commits2025-10-24: 0 commits2025-10-25: 0 commits2025-10-26: 0 commits2025-10-27: 0 commits2025-10-28: 0 commits2025-10-29: 0 commits2025-10-30: 0 commits2025-10-31: 0 commits2025-11-01: 0 commits2025-11-02: 0 commits2025-11-03: 0 commits2025-11-04: 0 commits2025-11-05: 0 commits2025-11-06: 0 commits2025-11-07: 0 commits2025-11-08: 0 commits2025-11-09: 0 commits2025-11-10: 0 commits2025-11-11: 0 commits2025-11-12: 0 commits2025-11-13: 0 commits2025-11-14: 0 commits2025-11-15: 0 commits2025-11-16: 0 commits2025-11-17: 0 commits2025-11-18: 0 commits2025-11-19: 0 commits2025-11-20: 0 commits2025-11-21: 0 commits2025-11-22: 0 commits2025-11-23: 0 commits2025-11-24: 0 commits2025-11-25: 0 commits2025-11-26: 0 commits2025-11-27: 0 commits2025-11-28: 0 commits2025-11-29: 0 commits2025-11-30: 0 commits2025-12-01: 1 commit2025-12-02: 0 commits2025-12-03: 0 commits2025-12-04: 0 commits2025-12-05: 0 commits2025-12-06: 0 commits2025-12-07: 0 commits2025-12-08: 0 commits2025-12-09: 0 commits2025-12-10: 0 commits2025-12-11: 0 commits2025-12-12: 0 commits2025-12-13: 0 commits2025-12-14: 0 commits2025-12-15: 0 commits2025-12-16: 0 commits2025-12-17: 0 commits2025-12-18: 0 commits2025-12-19: 0 commits2025-12-20: 0 commits2025-12-21: 0 commits2025-12-22: 0 commits2025-12-23: 0 commits2025-12-24: 0 commits2025-12-25: 0 commits2025-12-26: 0 commits2025-12-27: 0 commits2025-12-28: 0 commits2025-12-29: 0 commits2025-12-30: 0 commits2025-12-31: 0 commits2026-01-01: 0 commits2026-01-02: 0 commits2026-01-03: 0 commits2026-01-04: 0 commits2026-01-05: 0 commits2026-01-06: 0 commits2026-01-07: 0 commits2026-01-08: 1 commit2026-01-09: 1 commit2026-01-10: 0 commits2026-01-11: 0 commits2026-01-12: 0 commits2026-01-13: 0 commits2026-01-14: 0 commits2026-01-15: 0 commits2026-01-16: 0 commits2026-01-17: 0 commits2026-01-18: 0 commits2026-01-19: 0 commits2026-01-20: 0 commits2026-01-21: 0 commits2026-01-22: 0 commits2026-01-23: 0 commits2026-01-24: 0 commits2026-01-25: 0 commits2026-01-26: 0 commits2026-01-27: 0 commits2026-01-28: 0 commits2026-01-29: 0 commits2026-01-30: 0 commits2026-01-31: 0 commits2026-02-01: 0 commits2026-02-02: 0 commits2026-02-03: 0 commits2026-02-04: 0 commits2026-02-05: 0 commits2026-02-06: 0 commits2026-02-07: 0 commits2026-02-08: 0 commits2026-02-09: 0 commits2026-02-10: 0 commits2026-02-11: 0 commits2026-02-12: 0 commits2026-02-13: 2 commits2026-02-14: 0 commits2026-02-15: 0 commits2026-02-16: 1 commit2026-02-17: 0 commits2026-02-18: 0 commits2026-02-19: 0 commits2026-02-20: 1 commit2026-02-21: 0 commits2026-02-22: 0 commits2026-02-23: 0 commits2026-02-24: 0 commits2026-02-25: 0 commits2026-02-26: 0 commits2026-02-27: 0 commits2026-02-28: 0 commits2026-03-01: 0 commits2026-03-02: 0 commits2026-03-03: 0 commits2026-03-04: 0 commits2026-03-05: 0 commits2026-03-06: 0 commits2026-03-07: 0 commits2026-03-08: 0 commits2026-03-09: 0 commits2026-03-10: 1 commit2026-03-11: 0 commits2026-03-12: 0 commits2026-03-13: 0 commits2026-03-14: 0 commits2026-03-15: 0 commits2026-03-16: 1 commit2026-03-17: 0 commits2026-03-18: 0 commits2026-03-19: 0 commits2026-03-20: 0 commits2026-03-21: 0 commits2026-03-22: 0 commits2026-03-23: 0 commits2026-03-24: 0 commits2026-03-25: 0 commits2026-03-26: 0 commits2026-03-27: 0 commits2026-03-28: 0 commits2026-03-29: 0 commits2026-03-30: 1 commit2026-03-31: 0 commits2026-04-01: 0 commits2026-04-02: 0 commits2026-04-03: 0 commits2026-04-04: 0 commits2026-04-05: 0 commits2026-04-06: 0 commits2026-04-07: 0 commits2026-04-08: 0 commits2026-04-09: 0 commits2026-04-10: 0 commits2026-04-11: 0 commits2026-04-12: 0 commits2026-04-13: 0 commits2026-04-14: 0 commits2026-04-15: 1 commit2026-04-16: 0 commits2026-04-17: 0 commits2026-04-18: 0 commits2026-04-19: 0 commits2026-04-20: 1 commit2026-04-21: 0 commits2026-04-22: 0 commits2026-04-23: 0 commits2026-04-24: 0 commits2026-04-25: 0 commits2026-04-26: 0 commits2026-04-27: 0 commits2026-04-28: 0 commits2026-04-29: 0 commits2026-04-30: 0 commits2026-05-01: 0 commits2026-05-02: 0 commits2026-05-03: 0 commits2026-05-04: 0 commits2026-05-05: 0 commits2026-05-06: 0 commits2026-05-07: 0 commits2026-05-08: 0 commits2026-05-09: 0 commits2026-05-10: 0 commits2026-05-11: 0 commits2026-05-12: 0 commits2026-05-13: 0 commits2026-05-14: 0 commits2026-05-15: 0 commits2026-05-16: 0 commits2026-05-17: 0 commits2026-05-18: 0 commits2026-05-19: 0 commits2026-05-20: 0 commits2026-05-21: 1 commit2026-05-22: 0 commits2026-05-23: 0 commits2026-05-24: 0 commits2026-05-25: 0 commits2026-05-26: 0 commits2026-05-27: 1 commit2026-05-28: 0 commits2026-05-29: 0 commits2026-05-30: 0 commits2026-05-31: 0 commits2026-06-01: 0 commits2026-06-02: 0 commits2026-06-03: 0 commits2026-06-04: 0 commits2026-06-05: 0 commits2026-06-06: 0 commits2026-06-07: 0 commits2026-06-08: 0 commits2026-06-09: 0 commits2026-06-10: 0 commits2026-06-11: 0 commits2026-06-12: 0 commits2026-06-13: 0 commits2026-06-14: 0 commits2026-06-15: 0 commits2026-06-16: 0 commits2026-06-17: 0 commits2026-06-18: 0 commits2026-06-19: 0 commits2026-06-20: 0 commits2026-06-21: 0 commits2026-06-22: 0 commits2026-06-23: 0 commits2026-06-24: 0 commits2026-06-25: 0 commits2026-06-26: 0 commits2026-06-27: 0 commits2026-06-28: 0 commits2026-06-29: 0 commits2026-06-30: 0 commits2026-07-01: 0 commits2026-07-02: 0 commits2026-07-03: 0 commits2026-07-04: 0 commits2026-07-05: 0 commits2026-07-06: 0 commits2026-07-07: 0 commits2026-07-08: 0 commits2026-07-09: 0 commits2026-07-10: 0 commits2026-07-11: 0 commits2026-07-12: 0 commits2026-07-13: 0 commits2026-07-14: 0 commits2026-07-15: 0 commits2026-07-16: 0 commits2026-07-17: 0 commits2026-07-18: 0 commits2026-07-19: 0 commits2026-07-20: 0 commits2026-07-21: 1 commit2026-07-22: 2 commits2026-07-23: 1 commit2026-07-24: 0 commits2026-07-25: 0 commits2026-07-26: 0 commits2026-07-27: 0 commits2026-07-28: 0 commits2026-07-29: 2 commits2026-07-30: 0 commits2026-07-31: 0 commits2026-08-01: 0 commits2026-08-02: 0 commits2026-08-03: 0 commits2026-08-04: 0 commits2026-08-05: 0 commits2026-08-06: 0 commits2026-08-07: 0 commits2026-08-08: 0 commits2026-08-09: 0 commits2026-08-10: 0 commits2026-08-11: 0 commits2026-08-12: 0 commits2026-08-13: 0 commits2026-08-14: 0 commits2026-08-15: 0 commits2026-08-16: 0 commits2026-08-17: 0 commits2026-08-18: 0 commits2026-08-19: 1 commit2026-08-20: 0 commits2026-08-21: 0 commits2026-08-22: 0 commits2026-08-23: 0 commits2026-08-24: 0 commits2026-08-25: 0 commits2026-08-26: 0 commits2026-08-27: 0 commits2026-08-28: 0 commits2026-08-29: 0 commits2026-08-30: 0 commits2026-08-31: 2 commits2026-09-01: 9 commits2026-09-02: 16 commits2026-09-03: 13 commits2026-09-04: 12 commits2026-09-05: 0 commits2026-09-06: 1 commit2026-09-07: 0 commits2026-09-08: 0 commits2026-09-09: 4 commits2026-09-10: 17 commits2026-09-11: 8 commits2026-09-12: 3 commits2026-09-13: 0 commits2026-09-14: 1 commit2026-09-15: 0 commits2026-09-16: 1 commit2026-09-17: 0 commits2026-09-18: 0 commits2026-09-19: 0 commits2026-09-20: 0 commits2026-09-21: 2 commits2026-09-22: 0 commits2026-09-23: 0 commits2026-09-24: 0 commits2026-09-25: 0 commits2026-09-26: 0 commits2026-09-27: 0 commits2026-09-28: 0 commits2026-09-29: 0 commits2026-09-30: 0 commits2026-10-01: 0 commits2026-10-02: 0 commits2026-10-03: 0 commits
112 commits in the last yearLessMore

Signals and awards

derived from tracked data
  • Landmark project

    188,396 stars

  • Actively maintained

    Pushed within 48 hours

  • Community-driven

    ~130 contributors

  • Permissive license

    MIT

  • Repeat trending

    57 trending appearances

  • Top 10% tracked

    Rank 26 of 1135

What markitdown does

MarkItDown is a versatile utility designed to convert a wide array of document and data formats into standardized, readable Markdown. It handles complex formats like PDFs, Word documents, Excel spreadsheets, and HTML pages, extracting text and structure while discarding proprietary formatting. The tool operates using the privileges of the current process, safely accessing and parsing files locally or via streams. By outputting clean Markdown, it makes previously inaccessible document content ready for version control, text analysis, or consumption by Large Language Models. It serves as a critical bridge between human-readable documents and machine-processable text.

This tool is ideal for data engineers, AI developers, and technical writers who need to extract and normalize text from various document formats. It is especially useful for teams building Retrieval-Augmented Generation (RAG) applications.

  • Broad format support: Converts PDFs, DOCX, XLSX, HTML, and other common formats into a unified Markdown output.
  • Lightweight architecture: Designed to be fast and minimal without requiring heavy, complex dependencies.
  • Stream and local processing: Provides specific functions like convert_stream() and convert_local() for flexible I/O handling.
  • Structure preservation: Attempts to maintain the original document's structure, including headings, lists, and tables, in the resulting Markdown.
  • LLM integration ready: Outputs clean, standardized text that is ideal for ingestion into RAG pipelines or LLM context windows.

Where teams use it

Data Ingestion for RAG

Data engineers can use the tool to convert massive archives of corporate PDFs into Markdown for vector database ingestion.

Document Version Control

Teams can convert proprietary Word documents into Markdown to track changes cleanly in Git.

Automated Content Extraction

Scrapers can utilize the utility to convert complex HTML pages into readable text for downstream processing.

Cross-Format Text Analysis

Researchers can normalize datasets containing various file types into a single text format for NLP tasks.

Getting started: pip install markitdown

README

main branch

MarkItDown

PyPI PyPI - Downloads

Important

MarkItDown performs I/O with the privileges of the current process. Like open() or requests.get(), it will access resources that the process itself can access. Sanitize your inputs in untrusted environments, and call the narrowest convert_* function needed for your use case (e.g., convert_stream(), or convert_local()). See the Security Considerations section of the documentation for more information.

MarkItDown is a lightweight Python utility for converting various files to Markdown for use with LLMs and related text analysis pipelines. To this end, it is most comparable to textract, but with a focus on preserving important document structure and content as Markdown (including: headings, lists, tables, links, etc.) While the output is often reasonably presentable and human-friendly, it is meant to be consumed by text analysis tools -- and may not be the best option for high-fidelity document conversions for human consumption.

MarkItDown currently supports the conversion from:

  • PDF
  • PowerPoint
  • Word
  • Excel
  • Images (EXIF metadata and OCR)
  • Audio (EXIF metadata and speech transcription)
  • HTML
  • Text-based formats (CSV, JSON, XML)
  • ZIP files (iterates over contents)
  • YouTube URLs
  • EPubs
  • ... and more!

Why Markdown?

Markdown is extremely close to plain text, with minimal markup or formatting, but still provides a way to represent important document structure. Mainstream LLMs, such as OpenAI's GPT-4o, natively "speak" Markdown, and often incorporate Markdown into their responses unprompted. This suggests that they have been trained on vast amounts of Markdown-formatted text, and understand it well. As a side benefit, Markdown conventions are also highly token-efficient.

Prerequisites

MarkItDown requires Python 3.10 through 3.14. It is recommended to use a virtual environment to avoid dependency conflicts.

With the standard Python installation, you can create and activate a virtual environment using the following commands:

python -m venv .venv
source .venv/bin/activate

If using uv, you can create a virtual environment with:

uv venv --python=3.12 .venv
source .venv/bin/activate
# NOTE: Be sure to use 'uv pip install' rather than just 'pip install' to install packages in this virtual environment

If you are using Anaconda, you can create a virtual environment with:

conda create -n markitdown python=3.12
conda activate markitdown

Installation

To install MarkItDown, use pip: pip install 'markitdown[all]'. Alternatively, you can install it from the source:

git clone [email protected]:microsoft/markitdown.git
cd markitdown
pip install -e 'packages/markitdown[all]'

Usage

Command-Line

markitdown path-to-file.pdf > document.md

Or use -o to specify the output file:

markitdown path-to-file.pdf -o document.md

You can also pipe content:

cat path-to-file.pdf | markitdown

Optional Dependencies

MarkItDown has optional dependencies for activating various file formats. Earlier in this document, we installed all optional dependencies with the [all] option. However, you can also install them individually for more control. For example:

pip install 'markitdown[pdf, docx, pptx]'

will install only the dependencies for PDF, DOCX, and PPTX files.

At the moment, the following optional dependencies are available:

  • [all] Installs all optional dependencies
  • [pptx] Installs dependencies for PowerPoint files
  • [docx] Installs dependencies for Word files
  • [xlsx] Installs dependencies for Excel files
  • [xls] Installs dependencies for older Excel files
  • [pdf] Installs dependencies for PDF files
  • [outlook] Installs dependencies for Outlook messages
  • [az-doc-intel] Installs dependencies for Azure Document Intelligence
  • [az-content-understanding] Installs dependencies for Azure Content Understanding
  • [audio-transcription] Installs dependencies for audio transcription of wav and mp3 files
  • [youtube-transcription] Installs dependencies for fetching YouTube video transcription

Plugins

MarkItDown also supports 3rd-party plugins. Plugins are disabled by default. To list installed plugins:

markitdown --list-plugins

To enable plugins use:

markitdown --use-plugins path-to-file.pdf

To find available plugins, search GitHub for the hashtag #markitdown-plugin. To develop a plugin, see packages/markitdown-sample-plugin.

markitdown-ocr Plugin

The markitdown-ocr plugin adds OCR support to PDF, DOCX, PPTX, and XLSX converters, extracting text from embedded images using LLM Vision — the same llm_client / llm_model pattern that MarkItDown already uses for image descriptions. No new ML libraries or binary dependencies required.

Installation:

pip install markitdown-ocr
pip install openai  # or any OpenAI-compatible client

Usage:

Pass the same llm_client and llm_model you would use for image descriptions:

from markitdown import MarkItDown
from openai import OpenAI

md = MarkItDown(
    enable_plugins=True,
    llm_client=OpenAI(),
    llm_model="gpt-4o",
)
result = md.convert("document_with_images.pdf")
print(result.markdown)

If no llm_client is provided the plugin still loads, but OCR is silently skipped and the standard built-in converter is used instead.

See packages/markitdown-ocr/README.md for detailed documentation.

Azure Content Understanding

Azure Content Understanding provides higher-quality conversion with structured field extraction (YAML front matter), multi-modal support (documents, images, audio, video), and configurable analyzers.

Install: pip install 'markitdown[az-content-understanding]'

When to use Content Understanding

Content Understanding is ideal when you need capabilities beyond what built-in or Document Intelligence converters provide:

  • Audio and video files — CU is the only option for video, and the higher-quality cloud option for audio. Built-in converters have no video support and only basic audio transcription.
  • Structured field extraction — Prebuilt or custom-built analyzers extract domain-specific fields (invoice amounts, receipt dates, contract clauses) serialized as YAML front matter. Neither built-in nor Doc Intel integration exposes fields.
  • Higher-quality document extraction — Cloud-based layout analysis and OCR for scanned PDFs, complex tables, and multi-page documents.
  • Single API for all modalities — One cu_endpoint handles documents, images, audio, and video with automatic analyzer routing.
Capability Built-in converters Azure Document Intelligence Azure Content Understanding
Document conversion Offline, format-specific extraction Cloud layout extraction Cloud multimodal extraction
Structured fields Not available Not exposed by this integration YAML front matter from analyzer fields
Custom analyzers Not available Not configurable in this integration Supported with cu_analyzer_id
Audio and video Basic audio, no video Not supported Audio and video analyzers
Cost Local compute only Billable Azure API calls Billable Azure API calls

CLI:

markitdown path-to-file.pdf --use-cu --cu-endpoint "<content_understanding_endpoint>"

The endpoint can also be set once in the environment, so callers only need --use-cu:

export MARKITDOWN_CU_ENDPOINT="<content_understanding_endpoint>"
markitdown path-to-file.pdf --use-cu

Python API:

from markitdown import MarkItDown

# Zero-config — auto-selects analyzer per file type
md = MarkItDown(cu_endpoint="<content_understanding_endpoint>")
result = md.convert("report.pdf")   # documents → prebuilt-documentSearch
result = md.convert("meeting.mp4")  # video → prebuilt-videoSearch
result = md.convert("call.wav")     # audio → prebuilt-audioSearch
print(result.markdown)

With a custom analyzer (for domain-specific field extraction):

md = MarkItDown(
    cu_endpoint="<content_understanding_endpoint>",
    cu_analyzer_id="my-invoice-analyzer",
)
result = md.convert("invoice.pdf")
print(result.markdown)
# Output includes YAML front matter with extracted fields:
# ---
# contentType: document
# fields:
#   VendorName: CONTOSO LTD.
#   InvoiceDate: '2019-11-15'
# ---
# <!-- page 1 -->
# ...

When cu_analyzer_id is set, the converter automatically scopes it to compatible file types based on the analyzer's modality. Incompatible types (e.g., audio files with a document analyzer) auto-route to default prebuilt analyzers.

Cost note: Each convert() call for a CU-routed format is a billable Azure API call. Use cu_file_types to restrict which formats route to CU:

from markitdown.converters import ContentUnderstandingFileType

md = MarkItDown(
    cu_endpoint="<content_understanding_endpoint>",
    cu_file_types=[ContentUnderstandingFileType.PDF],  # only PDFs use CU
)

More information about Azure Content Understanding can be found here.

Azure Document Intelligence

To use Microsoft Document Intelligence for conversion:

markitdown path-to-file.pdf -o document.md -d -e "<document_intelligence_endpoint>"

The endpoint can also be set once in the environment, so callers only need -d:

export MARKITDOWN_DOCINTEL_ENDPOINT="<document_intelligence_endpoint>"
markitdown path-to-file.pdf -o document.md -d

More information about how to set up an Azure Document Intelligence Resource can be found here

Python API

Basic usage in Python:

from markitdown import MarkItDown

md = MarkItDown(enable_plugins=False) # Set to True to enable plugins
result = md.convert("test.xlsx")
print(result.markdown)

Document Intelligence conversion in Python:

from markitdown import MarkItDown

md = MarkItDown(docintel_endpoint="<document_intelligence_endpoint>")
result = md.convert("test.pdf")
print(result.markdown)

To use Large Language Models for image descriptions (currently only for pptx and image files), provide llm_client and llm_model:

from markitdown import MarkItDown
from openai import OpenAI

client = OpenAI(max_retries=5)
md = MarkItDown(llm_client=client, llm_model="gpt-4o", llm_prompt="optional custom prompt")
result = md.convert("example.jpg")
print(result.markdown)

max_retries controls the OpenAI client's automatic retries for retryable errors (the default is 2); 5 allows up to six attempts with backoff. See the OpenAI SDK retry documentation.

If any attempt succeeds, image conversion continues normally. If the client raises an error after exhausting its retries, or encounters a non-retryable error, MarkItDown tries other applicable converters and raises FileConversionException only if none succeeds.

Docker

docker build -t markitdown:latest .
docker run --rm -i markitdown:latest < ~/your-file.pdf > output.md

Contributing

Before starting significant work, please read What to Contribute, which describes what is in and out of scope for this repository.

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

What to Contribute

MarkItDown is a Python utility for converting files to Markdown for use with LLMs and related text analysis pipelines. This repository is intended to provide Python libraries that can be incorporated into other systems — not the end-user applications built on top of them.

In scope
  • Improvements to the fidelity of existing converters (New formats are added sparingly -- especially if they incur new dependencies. In most cases, new formats can be better supported via 3rd-party plugins.)
  • Bug fixes, performance improvements, and security fixes
  • The markitdown command-line interface
  • The markitdown-mcp package
  • Tests, documentation, and developer tooling
Out of scope

We cannot accept additional applications, services, or servers. This includes:

  • Web servers, REST or HTTP APIs, and hosted conversion services
  • Web frontends and browser-based user interfaces
  • Desktop and mobile applications (PyQt, PySide, Tkinter, Electron, Flutter, and similar)

Projects like these are genuinely useful, and we would rather see them thrive than be turned away. If you are interested in providing a web service, API, or graphical application for MarkItDown, please maintain it as a separate package or project that depends on markitdown from PyPI.

Extending MarkItDown Without Changing This Repository

MarkItDown supports 3rd-party plugins, so support for a new format can be published and installed independently of this repository:

markitdown --list-plugins
markitdown --use-plugins path-to-file.pdf

See packages/markitdown-sample-plugin to get started, and tag your repository #markitdown-plugin so that others can find it.

How to Contribute

You can help by looking at issues or helping review PRs. We have also marked some issues as 'open for contribution' and PRs as 'open for reviewing' to help facilitate community contributions. These labels are suggestions; contributions within the scope described above are welcome.

All Especially Needs Help from Community
Issues All Issues Issues open for contribution
PRs All PRs PRs open for reviewing

Running Tests and Checks

  • Navigate to the MarkItDown package:

    cd packages/markitdown
  • Install hatch in your environment and run tests:

    pip install hatch  # Other ways of installing hatch: https://hatch.pypa.io/dev/install/
    hatch shell
    hatch test

    (Alternative) Use the Devcontainer which has all the dependencies installed:

    # Reopen the project in Devcontainer and run:
    hatch test
  • Run pre-commit checks before submitting a PR: pre-commit run --all-files

Security Considerations

MarkItDown performs I/O with the privileges of the current process. Like open() or requests.get(), it will access resources that the process itself can access.

Sanitize your inputs: Do not pass untrusted input directly to MarkItDown. If any part of the input may be controlled by an untrusted user or system, such as in hosted or server-side applications, it must be validated and restricted before calling MarkItDown. Depending on your environment, this may include restricting file paths, limiting URI schemes and network destinations, and blocking access to private, loopback, link-local, or metadata-service addresses.

Call only the conversion method you need: Prefer the narrowest conversion API that fits your use case. MarkItDown's convert() method is intentionally permissive and can handle local files, remote URIs, and byte streams. If your application only needs to read local files, call convert_local() instead. If you need more control over URI fetching, call requests.get() yourself and pass the response object to convert_response(). For maximum control, open a stream to the input you want converted and call convert_stream().

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

View on GitHub

Recent activity

commits and pull requests

Discussions

all 73

Releases and announcements

23 total
  1. Version 0.1.8v0.1.8Sep 21, 2026

    This release rolls up dozens of small patches and bug fixes. For typical inputs and use cases, we expect outputs and behavior to remain largely unchanged from version 0.1.7. The markitdown-ocr plugin has also been refactored to simplify future maintenance. ----- ## What's Changed * Mitigate UnicodeDecodeError due to wrong ASCII charset guess for long files by @fcatalan92 in https://github.com/microsoft/markitdown/pull/2360 * fix: support extended content-disposition filenames by @cat0825 in https://github.com/microsoft/markitdown/pull/2045 * fix: fall back to plain text when RSS item content triggers RecursionError by @shoemoney in https://github.com/microsoft/markitdown/pull/2333 * fix(cli): allow Content Understanding conversion from stdin by @uczltw6 in https://github.com/microsoft/markitdown/pull/2318 * fix: correct \underleftarrow macro and map math italic h in equation conversion by @gdols in https://github.com/microsoft/markitdown/pull/2293 * feat(cli): support MARKITDOWN_CU_ENDPOINT / MARKITDOWN_DOCINTEL_ENDPOINT by @seenws in https://github.com/microsoft/markitdown/pull/2358 * fix(csv): strip the UTF-8 BOM and skip blank rows before building the table by @u

  2. Version 0.1.8b2v0.1.8b2Sep 14, 2026pre-release

    ## What's Changed * Pin GitHub Actions to full-length commit SHAs by @danfiedler-msft in https://github.com/microsoft/markitdown/pull/2316 * Mitigate UnicodeDecodeError due to wrong ASCII charset guess for long files by @fcatalan92 in https://github.com/microsoft/markitdown/pull/2360 * fix: support extended content-disposition filenames by @cat0825 in https://github.com/microsoft/markitdown/pull/2045 * fix: fall back to plain text when RSS item content triggers RecursionError by @shoemoney in https://github.com/microsoft/markitdown/pull/2333 * fix(cli): allow Content Understanding conversion from stdin by @uczltw6 in https://github.com/microsoft/markitdown/pull/2318 * fix: correct \underleftarrow macro and map math italic h in equation conversion by @gdols in https://github.com/microsoft/markitdown/pull/2293 * feat(cli): support MARKITDOWN_CU_ENDPOINT / MARKITDOWN_DOCINTEL_ENDPOINT by @seenws in https://github.com/microsoft/markitdown/pull/2358 * fix(csv): strip the UTF-8 BOM and skip blank rows before building the table by @uuzzrm in https://github.com/microsoft/markitdown/pull/2303 * Preserve strikethrough from \<strike\> and CSS line-through by @gyanu2507 in https://git

  3. Version 0.1.8b1v0.1.8b1Sep 4, 2026pre-release

    This prerelease includes numerous small bug fixes. None adds new features or is expected to change output in typical cases. Nevertheless, the volume of changes warrants a cautious rollout. Please report any issues or regressions. ## What's Changed * Pin GitHub Actions to full-length commit SHAs by @danfiedler-msft in https://github.com/microsoft/markitdown/pull/2316 * Mitigate UnicodeDecodeError due to wrong ASCII charset guess for long files by @fcatalan92 in https://github.com/microsoft/markitdown/pull/2360 * fix: support extended content-disposition filenames by @cat0825 in https://github.com/microsoft/markitdown/pull/2045 * fix: fall back to plain text when RSS item content triggers RecursionError by @shoemoney in https://github.com/microsoft/markitdown/pull/2333 * fix(cli): allow Content Understanding conversion from stdin by @uczltw6 in https://github.com/microsoft/markitdown/pull/2318 * fix: correct \underleftarrow macro and map math italic h in equation conversion by @gdols in https://github.com/microsoft/markitdown/pull/2293 * feat(cli): support MARKITDOWN_CU_ENDPOINT / MARKITDOWN_DOCINTEL_ENDPOINT by @seenws in https://github.com/microsoft/markitdown/pull/235

  4. Version 0.1.7v0.1.7Jul 29, 2026

    ## What's Changed * fix: avoid O(n^2) value lookups in PPTX chart conversion by @kz-000 in https://github.com/microsoft/markitdown/pull/2227 * Fix invalid LaTeX macros for mu, nu, tau, and down-arrow in equation conversion by @ksprajapatii in https://github.com/microsoft/markitdown/pull/2228 * Fix typos and formatting in comments, docstrings, and markdown by @chienyuanchang in https://github.com/microsoft/markitdown/pull/2223 * fix: handle PPTX SVG images without a rasterized fallback by @guoyu-wang in https://github.com/microsoft/markitdown/pull/2233 * Fix omml template bugs. by @afourney in https://github.com/microsoft/markitdown/pull/2257 ## New Contributors * @kz-000 made their first contribution in https://github.com/microsoft/markitdown/pull/2227 * @ksprajapatii made their first contribution in https://github.com/microsoft/markitdown/pull/2228 * @guoyu-wang made their first contribution in https://github.com/microsoft/markitdown/pull/2233 **Full Changelog**: https://github.com/microsoft/markitdown/compare/v0.1.6...v0.1.7

  5. Version 0.1.6v0.1.6May 26, 2026

    ## What's Changed * [MS] Add OCR layer service for embedded images and PDF scans by @lesyk in https://github.com/microsoft/markitdown/pull/1541 * Fix O(n) memory growth in PDF conversion by calling page.close() afte… by @lesyk in https://github.com/microsoft/markitdown/pull/1612 * Updated warning about binding to non-local interfaces. by @afourney in https://github.com/microsoft/markitdown/pull/1653 * fix: handle deeply nested HTML that triggers RecursionError by @jigangz in https://github.com/microsoft/markitdown/pull/1644 * Clarify security posture in READMEs by @afourney in https://github.com/microsoft/markitdown/pull/1807 * feat: Add Azure Content Understanding converter by @chienyuanchang in https://github.com/microsoft/markitdown/pull/1865 * Bump version to 0.1.6 by @afourney in https://github.com/microsoft/markitdown/pull/1914 ## New Contributors * @jigangz made their first contribution in https://github.com/microsoft/markitdown/pull/1644 * @chienyuanchang made their first contribution in https://github.com/microsoft/markitdown/pull/1865 **Full Changelog**: https://github.com/microsoft/markitdown/compare/v0.1.5...v0.1.6

Code frequency

additions and deletions
+5.1K-5.1KWeek of 2025-10-05: +0 linesWeek of 2025-10-05: -0 linesWeek of 2025-10-12: +0 linesWeek of 2025-10-12: -0 linesWeek of 2025-10-19: +48 linesWeek of 2025-10-19: -13 linesWeek of 2025-10-26: +0 linesWeek of 2025-10-26: -0 linesWeek of 2025-11-02: +0 linesWeek of 2025-11-02: -0 linesWeek of 2025-11-09: +0 linesWeek of 2025-11-09: -0 linesWeek of 2025-11-16: +0 linesWeek of 2025-11-16: -0 linesWeek of 2025-11-23: +0 linesWeek of 2025-11-23: -0 linesWeek of 2025-11-30: +2 linesWeek of 2025-11-30: -2 linesWeek of 2025-12-07: +0 linesWeek of 2025-12-07: -0 linesWeek of 2025-12-14: +0 linesWeek of 2025-12-14: -0 linesWeek of 2025-12-21: +0 linesWeek of 2025-12-21: -0 linesWeek of 2025-12-28: +0 linesWeek of 2025-12-28: -0 linesWeek of 2026-01-04: +1,529 linesWeek of 2026-01-04: -22 linesWeek of 2026-01-11: +0 linesWeek of 2026-01-11: -0 linesWeek of 2026-01-18: +0 linesWeek of 2026-01-18: -0 linesWeek of 2026-01-25: +0 linesWeek of 2026-01-25: -0 linesWeek of 2026-02-01: +0 linesWeek of 2026-02-01: -0 linesWeek of 2026-02-08: +717 linesWeek of 2026-02-08: -5 linesWeek of 2026-02-15: +2 linesWeek of 2026-02-15: -3 linesWeek of 2026-02-22: +0 linesWeek of 2026-02-22: -0 linesWeek of 2026-03-01: +0 linesWeek of 2026-03-01: -0 linesWeek of 2026-03-08: +2,464 linesWeek of 2026-03-08: -2 linesWeek of 2026-03-15: +385 linesWeek of 2026-03-15: -19 linesWeek of 2026-03-22: +0 linesWeek of 2026-03-22: -0 linesWeek of 2026-03-29: +23 linesWeek of 2026-03-29: -6 linesWeek of 2026-04-05: +0 linesWeek of 2026-04-05: -0 linesWeek of 2026-04-12: +74 linesWeek of 2026-04-12: -4 linesWeek of 2026-04-19: +13 linesWeek of 2026-04-19: -8 linesWeek of 2026-04-26: +0 linesWeek of 2026-04-26: -0 linesWeek of 2026-05-03: +0 linesWeek of 2026-05-03: -0 linesWeek of 2026-05-10: +0 linesWeek of 2026-05-10: -0 linesWeek of 2026-05-17: +1,667 linesWeek of 2026-05-17: -1 linesWeek of 2026-05-24: +1 linesWeek of 2026-05-24: -1 linesWeek of 2026-05-31: +0 linesWeek of 2026-05-31: -0 linesWeek of 2026-06-07: +0 linesWeek of 2026-06-07: -0 linesWeek of 2026-06-14: +0 linesWeek of 2026-06-14: -0 linesWeek of 2026-06-21: +0 linesWeek of 2026-06-21: -0 linesWeek of 2026-06-28: +0 linesWeek of 2026-06-28: -0 linesWeek of 2026-07-05: +0 linesWeek of 2026-07-05: -0 linesWeek of 2026-07-12: +0 linesWeek of 2026-07-12: -0 linesWeek of 2026-07-19: +323 linesWeek of 2026-07-19: -80 linesWeek of 2026-07-26: +14 linesWeek of 2026-07-26: -8 linesWeek of 2026-08-02: +0 linesWeek of 2026-08-02: -0 linesWeek of 2026-08-09: +0 linesWeek of 2026-08-09: -0 linesWeek of 2026-08-16: +6 linesWeek of 2026-08-16: -4 linesWeek of 2026-08-23: +0 linesWeek of 2026-08-23: -0 linesWeek of 2026-08-30: +5,101 linesWeek of 2026-08-30: -1,952 linesWeek of 2026-09-06: +3,824 linesWeek of 2026-09-06: -268 linesWeek of 2026-09-13: +3,334 linesWeek of 2026-09-13: -870 linesWeek of 2026-09-20: +12 linesWeek of 2026-09-20: -11 linesWeek of 2026-09-27: +0 linesWeek of 2026-09-27: -0 linesOct 5, 2025Sep 27, 2026
+19.5K lines added, -3.3K removed over the last year.

Commits per week

last 52 weeks
520Week of 2025-10-05: 0 commitsWeek of 2025-10-12: 0 commitsWeek of 2025-10-19: 2 commitsWeek of 2025-10-26: 0 commitsWeek of 2025-11-02: 0 commitsWeek of 2025-11-09: 0 commitsWeek of 2025-11-16: 0 commitsWeek of 2025-11-23: 0 commitsWeek of 2025-11-30: 1 commitsWeek of 2025-12-07: 0 commitsWeek of 2025-12-14: 0 commitsWeek of 2025-12-21: 0 commitsWeek of 2025-12-28: 0 commitsWeek of 2026-01-04: 2 commitsWeek of 2026-01-11: 0 commitsWeek of 2026-01-18: 0 commitsWeek of 2026-01-25: 0 commitsWeek of 2026-02-01: 0 commitsWeek of 2026-02-08: 2 commitsWeek of 2026-02-15: 2 commitsWeek of 2026-02-22: 0 commitsWeek of 2026-03-01: 0 commitsWeek of 2026-03-08: 1 commitsWeek of 2026-03-15: 1 commitsWeek of 2026-03-22: 0 commitsWeek of 2026-03-29: 1 commitsWeek of 2026-04-05: 0 commitsWeek of 2026-04-12: 1 commitsWeek of 2026-04-19: 1 commitsWeek of 2026-04-26: 0 commitsWeek of 2026-05-03: 0 commitsWeek of 2026-05-10: 0 commitsWeek of 2026-05-17: 1 commitsWeek of 2026-05-24: 1 commitsWeek of 2026-05-31: 0 commitsWeek of 2026-06-07: 0 commitsWeek of 2026-06-14: 0 commitsWeek of 2026-06-21: 0 commitsWeek of 2026-06-28: 0 commitsWeek of 2026-07-05: 0 commitsWeek of 2026-07-12: 0 commitsWeek of 2026-07-19: 4 commitsWeek of 2026-07-26: 2 commitsWeek of 2026-08-02: 0 commitsWeek of 2026-08-09: 0 commitsWeek of 2026-08-16: 1 commitsWeek of 2026-08-23: 0 commitsWeek of 2026-08-30: 52 commitsWeek of 2026-09-06: 33 commitsWeek of 2026-09-13: 2 commitsWeek of 2026-09-20: 2 commitsWeek of 2026-09-27: 0 commitsOct 5, 2025Sep 27, 2026
112 commits in the last 52 weeks.

When work happens

weekday and hour
SunMonTueWedThuFriSat036912151821Sun 0:00 — 1 commitsSun 1:00 — 0 commitsSun 2:00 — 0 commitsSun 3:00 — 0 commitsSun 4:00 — 0 commitsSun 5:00 — 2 commitsSun 6:00 — 0 commitsSun 7:00 — 0 commitsSun 8:00 — 0 commitsSun 9:00 — 1 commitsSun 10:00 — 1 commitsSun 11:00 — 0 commitsSun 12:00 — 1 commitsSun 13:00 — 0 commitsSun 14:00 — 0 commitsSun 15:00 — 0 commitsSun 16:00 — 1 commitsSun 17:00 — 3 commitsSun 18:00 — 0 commitsSun 19:00 — 0 commitsSun 20:00 — 1 commitsSun 21:00 — 3 commitsSun 22:00 — 1 commitsSun 23:00 — 0 commitsMon 0:00 — 0 commitsMon 1:00 — 2 commitsMon 2:00 — 0 commitsMon 3:00 — 0 commitsMon 4:00 — 0 commitsMon 5:00 — 0 commitsMon 6:00 — 0 commitsMon 7:00 — 2 commitsMon 8:00 — 0 commitsMon 9:00 — 5 commitsMon 10:00 — 2 commitsMon 11:00 — 1 commitsMon 12:00 — 3 commitsMon 13:00 — 4 commitsMon 14:00 — 1 commitsMon 15:00 — 5 commitsMon 16:00 — 8 commitsMon 17:00 — 2 commitsMon 18:00 — 2 commitsMon 19:00 — 1 commitsMon 20:00 — 0 commitsMon 21:00 — 2 commitsMon 22:00 — 2 commitsMon 23:00 — 1 commitsTue 0:00 — 1 commitsTue 1:00 — 1 commitsTue 2:00 — 0 commitsTue 3:00 — 0 commitsTue 4:00 — 1 commitsTue 5:00 — 0 commitsTue 6:00 — 1 commitsTue 7:00 — 0 commitsTue 8:00 — 1 commitsTue 9:00 — 2 commitsTue 10:00 — 3 commitsTue 11:00 — 2 commitsTue 12:00 — 2 commitsTue 13:00 — 4 commitsTue 14:00 — 5 commitsTue 15:00 — 2 commitsTue 16:00 — 2 commitsTue 17:00 — 4 commitsTue 18:00 — 2 commitsTue 19:00 — 1 commitsTue 20:00 — 2 commitsTue 21:00 — 2 commitsTue 22:00 — 3 commitsTue 23:00 — 4 commitsWed 0:00 — 1 commitsWed 1:00 — 3 commitsWed 2:00 — 2 commitsWed 3:00 — 1 commitsWed 4:00 — 2 commitsWed 5:00 — 1 commitsWed 6:00 — 4 commitsWed 7:00 — 1 commitsWed 8:00 — 1 commitsWed 9:00 — 4 commitsWed 10:00 — 8 commitsWed 11:00 — 9 commitsWed 12:00 — 0 commitsWed 13:00 — 4 commitsWed 14:00 — 4 commitsWed 15:00 — 7 commitsWed 16:00 — 3 commitsWed 17:00 — 0 commitsWed 18:00 — 1 commitsWed 19:00 — 4 commitsWed 20:00 — 3 commitsWed 21:00 — 10 commitsWed 22:00 — 7 commitsWed 23:00 — 2 commitsThu 0:00 — 2 commitsThu 1:00 — 5 commitsThu 2:00 — 5 commitsThu 3:00 — 3 commitsThu 4:00 — 1 commitsThu 5:00 — 1 commitsThu 6:00 — 1 commitsThu 7:00 — 4 commitsThu 8:00 — 3 commitsThu 9:00 — 1 commitsThu 10:00 — 2 commitsThu 11:00 — 1 commitsThu 12:00 — 4 commitsThu 13:00 — 0 commitsThu 14:00 — 2 commitsThu 15:00 — 5 commitsThu 16:00 — 1 commitsThu 17:00 — 1 commitsThu 18:00 — 0 commitsThu 19:00 — 0 commitsThu 20:00 — 3 commitsThu 21:00 — 2 commitsThu 22:00 — 0 commitsThu 23:00 — 3 commitsFri 0:00 — 2 commitsFri 1:00 — 3 commitsFri 2:00 — 5 commitsFri 3:00 — 4 commitsFri 4:00 — 0 commitsFri 5:00 — 0 commitsFri 6:00 — 2 commitsFri 7:00 — 2 commitsFri 8:00 — 1 commitsFri 9:00 — 3 commitsFri 10:00 — 3 commitsFri 11:00 — 6 commitsFri 12:00 — 1 commitsFri 13:00 — 0 commitsFri 14:00 — 5 commitsFri 15:00 — 2 commitsFri 16:00 — 8 commitsFri 17:00 — 1 commitsFri 18:00 — 2 commitsFri 19:00 — 1 commitsFri 20:00 — 1 commitsFri 21:00 — 2 commitsFri 22:00 — 1 commitsFri 23:00 — 0 commitsSat 0:00 — 1 commitsSat 1:00 — 1 commitsSat 2:00 — 1 commitsSat 3:00 — 1 commitsSat 4:00 — 1 commitsSat 5:00 — 0 commitsSat 6:00 — 2 commitsSat 7:00 — 1 commitsSat 8:00 — 4 commitsSat 9:00 — 1 commitsSat 10:00 — 0 commitsSat 11:00 — 2 commitsSat 12:00 — 1 commitsSat 13:00 — 1 commitsSat 14:00 — 0 commitsSat 15:00 — 0 commitsSat 16:00 — 0 commitsSat 17:00 — 1 commitsSat 18:00 — 3 commitsSat 19:00 — 2 commitsSat 20:00 — 0 commitsSat 21:00 — 0 commitsSat 22:00 — 1 commitsSat 23:00 — 3 commits
Commit volume by weekday and hour (UTC). Larger dots mean more commits.
DateListRankStars gained
Sep 21, 2026weekly#16+2,767
Sep 20, 2026weekly#16+2,767
Sep 19, 2026weekly#11+2,841
Sep 18, 2026weekly#12+2,814
Sep 17, 2026weekly#11+2,733
Sep 16, 2026weekly#10+3,046
Sep 15, 2026weekly#7+4,604
Sep 14, 2026weekly#7+5,191
Sep 13, 2026weekly#7+4,823
Sep 12, 2026weekly#10+4,650
Sep 11, 2026weekly#12+4,579
Sep 10, 2026weekly#11+4,549
Sep 9, 2026daily#6+886
Sep 8, 2026daily#6+886
Sep 7, 2026daily#2+771