Skip to main content

MarkItDown

[!TIP] MarkItDown is a Python package and command-line utility for converting various files to Markdown (e.g., for indexing, text analysis, etc).

For more information, and full documentation, see the project README.md on GitHub.

[!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.

Installation

From PyPI:

pip install 'markitdown[all]'

From source:

git clone git@github.com:microsoft/markitdown.git
cd markitdown
pip install -e 'packages/markitdown[all]'

Usage

Command-Line

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

Python API

from markitdown import MarkItDown

md = MarkItDown()
result = md.convert("test.xlsx")
print(result.text_content)

More Information

For more information, and full documentation, see the project README.md on GitHub.

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.

Release files for markitdown 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for markitdown 0.1.7
File Size Uploaded
markitdown-0.1.7.tar.gz 51.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for markitdown 0.1.7
File Interpreter ABI Platform
markitdown-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 122.9 kB

Release files / markitdown-0.1.7.tar.gz

Download URL markitdown-0.1.7.tar.gz
Size 51.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4d1f3c69cd43b82288fdc3653686d759dcf355ee7c681aa6a855aed98a1e4f44
BLAKE2b-256 checksum
How to use checksums
5993e8a4af0c47551beb6383e226e840cbc811a577b8096eb385251b3fcc8f62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.2 cpython/3.12.3 HTTPX/0.28.1

Release files / markitdown-0.1.7-py3-none-any.whl

Download URL markitdown-0.1.7-py3-none-any.whl
Size 71.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4eca912c87c6aa6897284a7f4bf6769a23bccf8544530f5d8b175fbe3797c916
BLAKE2b-256 checksum
How to use checksums
fc1651d269a754d690ec31d3faa0686c8c14ac955dbc0580c358f256ba3391ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.2 cpython/3.12.3 HTTPX/0.28.1
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page