Install
MarkItDown extras and install size
Since release 0.1.0 the base package converts very little on its own: each family of file formats is switched on by an "extra", a name in square brackets added at install time. This page tells you which extra you need, what each one installs, and how much disk space it takes, measured on three operating systems.
Short answer
Install everything with the everything-extra, or name only the formats you need, comma-separated inside one pair of quotes.
pip install "markitdown[all]"pip install "markitdown[pdf,docx,pptx,xlsx]"| You want to convert | Install |
|---|---|
markitdown[pdf] | |
Word (.docx) | markitdown[docx] |
Excel (.xlsx, .xls) | markitdown[xlsx], markitdown[xls] |
PowerPoint (.pptx) | markitdown[pptx] |
Tested with markitdown 0.1.9 · Python 3.10 to 3.14 · Ubuntu 24.04, Windows Server 2025 and macOS 26 (GitHub runners, plus a Linux lab) · 2026-11-15 · evidence: extras-measured.csv, extras-by-os-python.csv, security-checks.csv, licences-raw.json
Which extra do I need?
Look up what you have in hand. The last two columns come from our own runs: the middle column of with the bare install is what happened when we converted every file of that type in our corpus with no extras installed. Type an extension in the filter box to narrow the table.
| You have | Extension | Install extra | Also needs | With the bare install | Details |
|---|---|---|---|---|---|
.pdf | pdf | Scanned PDFs also need an OCR route | fails: 32 of 32 files, the message names [docx, pdf] | PDF to Markdown | |
| Word | .docx | docx | nothing | fails: 15 of 15 files, the message names [docx] | Word (DOCX) |
| Word, legacy | .doc | none (not supported) | no extra helps: convert the file to .docx first | unsupported: 1 of 1 files | Word (DOCX) |
| PowerPoint | .pptx | pptx | nothing | fails: 4 of 4 files, the message names [pptx] | PowerPoint (PPTX) |
| Excel | .xlsx | xlsx | nothing | fails: 7 of 7 files, the message names [xlsx] | Excel (XLSX, XLS) |
| Excel, legacy | .xls | xls | nothing | fails: 2 of 2 files, the message names [xls] | Excel (XLSX, XLS) |
| Outlook message | .msg | outlook | nothing | fails: 1 of 1 files, the message names [outlook] | Supported formats |
| Audio: WAV | .wav | audio-transcription | internet access (speech service) | exit 0, but metadata only: no transcript | Audio and video |
| Audio: MP3, M4A | .mp3, .m4a | audio-transcription | ffmpeg and internet access | exit 0, but metadata only: no transcript | Audio and video |
| YouTube video address | a youtube.com URL | youtube-transcription | internet access | not tested (needs internet access to YouTube) | YouTube transcripts |
| Azure Document Intelligence | -d, --endpoint | az-doc-intel | an Azure resource and credentials (not tested by us) | not tested by us | LLM image descriptions |
| Azure Content Understanding | --use-cu | az-content-understanding | an Azure resource and credentials (not tested by us) | not tested by us | LLM image descriptions |
| Web pages and HTML | .html, URLs | none | nothing | converts (5 of 5 files) | HTML, URLs, Wikipedia, RSS |
| CSV | .csv | none | nothing | converts (8 of 8 files) | CSV, JSON, XML, text |
| JSON, XML, YAML, plain text, Markdown | .json .xml .yaml .txt .md | none | nothing (these are passed through as text) | converts (11 of 11 files) | CSV, JSON, XML, text |
| E-books | .epub | none | nothing | converts (2 of 2 files) | Supported formats |
| ZIP archives | .zip | none | the extras of the files inside | converts (2 of 2 files) | Supported formats |
| Jupyter notebooks | .ipynb | none | nothing | converts (1 of 1 files) | Supported formats |
| Images | .jpg, .png | none | ExifTool for metadata; an LLM client for descriptions | converts (3 of 3 files) | Images |
What each extra installs, measured
Installed size is the sum of the files each package lists in its own metadata (so it includes compiled bytecode); pip and setuptools are not counted. Every row is a fresh virtual environment with pip's cache switched off.
| Extra | Distributions | On disk (MB) | Added (MB) | Download (MB) | Compiled packages | Packages it adds |
|---|---|---|---|---|---|---|
bare (no extras) | 19 | 196.1 | 0.0 | 62.4 | 4 | |
pdf | 26 | 254.4 | 58.3 | 85.2 | 8 | cffi, cryptography, pdfminer.six, pdfplumber, pillow, pycparser, pypdfium2 |
docx | 22 | 208.6 | 12.5 | 67.7 | 5 | cobble, lxml, mammoth |
pptx | 23 | 234.2 | 38.1 | 75.4 | 6 | lxml, pillow, python-pptx, xlsxwriter |
xlsx | 24 | 275.9 | 79.8 | 75.1 | 5 | et_xmlfile, openpyxl, pandas, python-dateutil, tzdata |
xls | 23 | 274.6 | 78.5 | 74.9 | 5 | pandas, python-dateutil, tzdata, xlrd |
outlook | 20 | 196.6 | 0.5 | 62.5 | 4 | olefile |
audio-transcription | 24 | 241.6 | 45.5 | 95.4 | 5 | SpeechRecognition, audioop-lts, pydub, standard-aifc, standard-chunk |
youtube-transcription | 20 | 198.5 | 2.4 | 62.9 | 4 | youtube-transcript-api |
az-doc-intel | 29 | 219.0 | 22.9 | 68.2 | 6 | PyJWT, azure-ai-documentintelligence, azure-core, azure-identity, cffi, cryptography, isodate, msal, msal-extensions, pycparser |
az-content-understanding | 29 | 218.9 | 22.8 | 68.2 | 6 | PyJWT, azure-ai-contentunderstanding, azure-core, azure-identity, cffi, cryptography, isodate, msal, msal-extensions, pycparser |
all | 52 | 407.0 | 210.9 | 138.4 | 11 | 33 packages (see the install-packages.json) |
Every extra adds to a 196 MB baseline
Installed size per extra on Linux with Python 3.13; the baseline is the bare install
- bare install
- added by the extra
| Item | bare install | added by the extra | Total (MB on disk) |
|---|---|---|---|
| 196 | 58 | 254 | |
| docx | 196 | 13 | 209 |
| pptx | 196 | 38 | 234 |
| xlsx | 196 | 80 | 276 |
| xls | 196 | 79 | 275 |
| outlook | 196 | 1 | 197 |
| audio-transcription | 196 | 46 | 242 |
| youtube-transcription | 196 | 2 | 199 |
| az-doc-intel | 196 | 23 | 219 |
| az-content-understanding | 196 | 23 | 219 |
| [all] | 196 | 211 | 407 |
Ubuntu 24.04 container · Python 3.13.18 · pip 26.2.2 · markitdown 0.1.9 · 2026-11-15 · extras-measured.csv
The complete list of packages and versions for every row is in install-packages.json. Install times in a shared lab container vary too much to publish; on the GitHub runners the bare install took 4 to 22 seconds and [all] 8 to 43 seconds (install-footprint.csv).
Why the bare install is already about 200 MB
Where the megabytes go
Three packages are 95% of the bare install
Largest distributions in the bare install, Linux, Python 3.13 (MarkItDown's own code is under 1 MB)
| Item | MB on disk | Note |
|---|---|---|
| onnxruntime | 79.9 | 40.8% of the bare install |
| numpy | 68.2 | 34.8% of the bare install |
| magika | 37.8 | 19.3% of the bare install |
| protobuf | 2.4 | 1.2% of the bare install |
| packaging | 1.0 | 0.5% of the bare install |
| 14 other packages | 6.6 |
Ubuntu 24.04 container · Python 3.13.18 · markitdown 0.1.9 · 2026-11-15 · total 195.9 MB · bare-breakdown.csv
Almost all of it is three packages: a machine-learning runtime, a numerical library that the runtime needs, and magika, the model-based file-type detector. MarkItDown's own code is a rounding error.
Why they are there
MarkItDown asks magika to look at the content of a file instead of trusting its name. That is why a PDF with no extension converts, and why a DOCX that was renamed .pdf still converts correctly. A known extension still wins for text-like content: a PDF renamed .txt is echoed as raw bytes.
| File | Grade | What happened |
|---|---|---|
| synthetic/no-extension-pdf | C | Content sniffing (magika) recognised the PDF without an extension; same output as pdf-text.pdf. |
| synthetic/edge-wrong-extension.pdf | B | A DOCX renamed .pdf converts correctly: content detection wins over a wrong binary extension here (compare pdf-renamed-as.txt). |
| synthetic/pdf-renamed-as.txt | D | A PDF named .txt is echoed as raw PDF bytes (the extension beats content detection). |
Can I install without it?
No. magika is a hard dependency of the current release: with it removed, MarkItDown does not even import.
$ python -c "import markitdown"
File "/tmp/tmp.yFqzXE6lOx/v3/lib/python3.13/site-packages/markitdown/_markitdown.py", line 17, in <module>
import magika
ModuleNotFoundError: No module named 'magika' Making it optional is a long-standing upstream request. Our browser converter runs the unmodified library with a small stand-in for the detector, which is not a supported setup for a local install: do not stub it yourself.
The biggest additions in [all]
Ranked by size, among the packages that are not already in the bare install:
| Package | MB | Brought by | Licence |
|---|---|---|---|
pandas | 76.5 | xlsx, xls | BSD-3-Clause |
SpeechRecognition | 44.9 | audio-transcription | BSD-3-Clause |
pillow | 21.8 | pdf, pptx | MIT-CMU |
cryptography | 15.6 | pdf, az-doc-intel, az-content-understanding | Apache-2.0 OR BSD-3-Clause |
lxml | 12.0 | docx, pptx | BSD-3-Clause |
pdfminer.six | 9.4 | MIT | |
pypdfium2 | 9.3 | BSD-3-Clause, Apache-2.0, dependency licenses | |
python-pptx | 2.5 | pptx | MIT License |
The spreadsheet extras are the heaviest single choice, because they bring the data-frame library. The audio extra is next, because its speech library bundles an acoustic model and FLAC programs inside the package (43 MB).
Smallest set for common jobs
Sizes of combinations are computed as the union of the package sets, never by adding table rows: the baseline would be counted several times. We checked the method against the eight combinations we also installed for real. The union matched every one to the first decimal place, while the naive sum of rows over-counted by up to 78 MB.
| Job | Install | MB | Saving vs [all] (MB) | Method |
|---|---|---|---|---|
| Office documents and PDF (pdf, docx, pptx, xlsx) | markitdown[pdf,docx,pptx,xlsx] | 350.9 | 56.1 | measured |
| PDF only | markitdown[pdf] | 254.4 | 152.6 | measured |
| Spreadsheets only (xlsx) | markitdown[xlsx] | 275.9 | 131.1 | measured |
| Word only (docx) | markitdown[docx] | 208.6 | 198.4 | measured |
| Everything except audio, YouTube and Azure (pdf, docx, pptx, xlsx, xls, outlook) | markitdown[pdf,docx,pptx,xlsx,xls,outlook] | 352.1 | 54.9 | union |
| Audio and YouTube transcripts | markitdown[audio-transcription,youtube-transcription] | 244.0 | 163.0 | measured |
| MCP server (markitdown-mcp) | markitdown-mcp | 427.9 | -20.9 | measured |
| OCR plugin (markitdown-ocr) | markitdown-ocr | 420.1 | -13.1 | measured |
| Everything ([all]) | markitdown[all] | 407.0 | 0.0 | measured |
| Combination | Measured (MB) | Union (MB) | Sum of rows (MB) |
|---|---|---|---|
| audio-transcription+youtube-transcription | 244.0 | 244.0 | 244.0 |
| docx+pptx+xlsx | 314.5 | 314.5 | 326.5 |
| pdf+audio-transcription | 299.9 | 299.9 | 299.9 |
| pdf+docx+pptx+xlsx+outlook | 351.4 | 351.4 | 385.3 |
| pdf+docx+pptx+xlsx | 350.9 | 350.9 | 384.8 |
| pdf+docx+pptx | 271.1 | 271.1 | 305.0 |
| pdf+docx | 266.9 | 266.9 | 266.9 |
| xlsx+xls | 276.7 | 276.7 | 354.4 |
Two rows have a negative saving: the MCP server and the OCR plugin are larger than [all]. The MCP server installs everything plus the server stack. The OCR plugin declares its own list of document libraries on top of the bare package, including PyMuPDF, which is published under the GNU Affero GPL 3.0 or a commercial licence from Artifex. MarkItDown itself is MIT-licensed; check the dependency licence before you ship the plugin. Every package's licence as published is in dependency-licences.csv.
Things an extra cannot install
ffmpeg
The audio extra needs ffmpeg for MP3 and M4A files; a WAV file does not need it, and neither does any PDF or Office file. In every release we tested, converting an MP3 without ffmpeg fails with AudioConverter threw FileNotFoundError (the missing file is ffprobe). The well-known warning is a separate matter: releases 0.1.4 to 0.1.7 print it on every run, whatever file you convert, and 0.1.8 and 0.1.9 do not. Details on the ffmpeg page.
ExifTool
ExifTool is optional. Without it, a JPEG or PNG converts to an empty file (unless you configure an LLM client); with it, MarkItDown prints a few metadata lines. It refuses an ExifTool older than 12.24: with one that reports 12.16 the conversion fails with ExifTool version 12.16 is vulnerable to CVE-2021-22204. More in the images page.
Accounts and keys
The two Azure extras install client libraries only. You still need an Azure resource and credentials, and we did not test Azure (upstream documentation covers it). LLM image descriptions need no extra at all, but need a client library you install yourself: see the LLM page.
Extras that send data off your machine
We ran one conversion per file type under a system-call trace with every web request routed to a local proxy that refuses it, so nothing left the machine and we saw only what the library tried to reach. Document formats made no network request at all.
| Conversion | Extra | Request seen | What leaves the machine |
|---|---|---|---|
| DOCX | docx | none | Nothing: no network request was made |
pdf | none | Nothing: no network request was made | |
| XLSX | xlsx | none | Nothing: no network request was made |
| PPTX | pptx | none | Nothing: no network request was made |
| CSV | none needed | none | Nothing: no network request was made |
| HTML file | none needed | none | Nothing: no network request was made |
| EPUB | none needed | none | Nothing: no network request was made |
| ZIP | none needed | none | Nothing: no network request was made |
| Jupyter notebook | none needed | none | Nothing: no network request was made |
| RSS feed | none needed | none | Nothing: no network request was made |
| plain text | none needed | none | Nothing: no network request was made |
| Outlook MSG | outlook | none | Nothing: no network request was made |
| image with metadata (no LLM) | none needed | none | Nothing: no network request was made |
| WAV audio | audio-transcription | POST http://www.google.com/speech-api/v2/recognize | Your audio, sent in the request body to Google's speech endpoint over plain HTTP |
| MP3 audio | audio-transcription | POST http://www.google.com/speech-api/v2/recognize | Your audio (converted to WAV first), sent to Google's speech endpoint over plain HTTP |
| web page URL | none (built in) | CONNECT example.com:443 | A request to the address you gave, from your machine |
| YouTube URL | youtube-transcription | CONNECT www.youtube.com:443 | Requests to youtube.com for the page and the transcript |
| PDF with -d and an Azure endpoint | az-doc-intel | CONNECT mobile.events.data.microsoft.com:443; GET http://169.254.169.254/metadata/identity/oauth2/token | With an Azure endpoint configured it tried the Azure sign-in route (instance-metadata address 169.254.169.254) and a Microsoft telemetry host; the document was not sent because sign-in failed first |
Audio transcription deserves a second look: the request goes to Google's speech endpoint as plain http://, not https://. For strictly local use, install only the document extras. The security page covers the rest.
Writing it down: requirements files and project files
The same syntax works everywhere. In a requirements file, pin the version together with the extras:
markitdown[pdf,docx,pptx,xlsx]==0.1.9$ pip install --dry-run -r requirements.txt
Would install beautifulsoup4-4.15.0 certifi-2026.10.23 cffi-2.1.1 charset-normalizer-3.5.2 click-8.5.1 cobble-0.1.4 cryptography-50.0.2 defusedxml-0.7.1 et_xmlfile-2.0.0 flatbuffers-25.12.19 idna-3.20 lxml-6.1.3 magika-1.0.3 mammoth-1.13.0 markdownify-1.2.3 markitdown-0.1.9 numpy-2.5.4 onnxruntime-1.32.0 openpyxl-3.1.5 packaging-26.3 pandas-3.1.1 pdfminer.six-20260107 pdfplumber-0.11.10 pillow-13. raw log · dry run, nothing installed
In a pyproject.toml dependency list:
[project]
name = "demo"
version = "0.0.0"
requires-python = ">=3.10"
dependencies = ["markitdown[pdf,docx]>=0.1.9,<0.2"]With uv, uv add writes the extras into the project file:
uv add "markitdown[pdf,docx]==0.1.9"To add an extra to an existing install, repeat the install with the longer list. pip keeps what is installed and adds only what is missing:
$ pip install "markitdown[pdf,docx]==0.1.9"
Requirement already satisfied: markitdown==0.1.9 in /tmp/tmp.yFqzXE6lOx/v2/lib/python3.13/site-packages (from markitdown[docx,pdf]==0.1.9) (0.1.9)
Collecting lxml (from markitdown[docx,pdf]==0.1.9)
Collecting mammoth<2,>=1.12.2 (from markitdown[docx,pdf]==0.1.9)
Requirement already satisfied: pdfminer-six>=20251230 in /tmp/tmp.yFqzXE6lOx/v2/lib/python3.13/site-packages (from markitdown[docx,pdf]==0.1.9) (20260107)
Collecting cobble<0.2,>=0.1.3 (from mammoth<2,>=1.12.2->markitdown[docx,pdf]==0.1.9)
Successfully installed cobble-0.1.4 lxml-6.1.3 mammoth-1.13.0 raw log · markitdown[pdf] was already installed
Quoting differs by shell: see the Windows page for PowerShell and the macOS page for zsh.
The [all] pre-release catch
pip accepts that. uv before 0.12.0 refuses pre-releases by default, and it does not fail: it quietly installs MarkItDown 0.1.5, the last release whose [all] needs no pre-release. We tested the last release of every uv series from 0.4 to 0.13, plus three 0.12 releases: the series up to 0.11 (last tested 0.11.33) all fell back, and 0.12.0 and later resolve 0.1.9.
$ uvx --from "markitdown[all]" markitdown --version
markitdown 0.1.5 uv add records the damage in your project file:
$ uv add "markitdown[all]"
$ grep -A3 dependencies pyproject.toml
dependencies = [
"markitdown[all]>=0.1.5", raw log · the line written to pyproject.toml
Pinning the version turns the silent downgrade into a clear error:
$ uv pip install "markitdown[all]==0.1.9"
× No solution found when resolving dependencies:
╰─▶ Because only azure-ai-contentunderstanding<1.2.0b1
is available and markitdown[all]>=0.1.9 depends on
azure-ai-contentunderstanding>=1.2.0b1, we can conclude that
markitdown[all]>=0.1.9 cannot be used.
And because you require markitdown[all]==0.1.9, we can conclude that
your requirements are unsatisfiable.
hint: `azure-ai-contentunderstanding` was requested with a pre-release marker (e.g., azure-ai-contentunderstanding>=1.2.0b1), but pre-releases weren't enabled (try: `--prerelease=allow`) Two safe options: use uv 0.12.0 or newer, or tell the old uv to allow pre-releases:
$ uv pip install --prerelease=allow "markitdown[all]"
Installed 52 packages in 57ms
+ azure-ai-contentunderstanding==1.2.0b3
+ markitdown==0.1.9 Or leave out the Content Understanding extra and list the others yourself:
pip install "markitdown[pdf,docx,pptx,xlsx,xls,outlook]"The full note, including uvx and pipx (pipx inherits the problem when uv is on your PATH), is on the install page.
Size by operating system and Python version
One global number would mislead. The same install is 341 MB on Windows and 416 MB on Linux, because the platform-specific packages (compiled wheels) differ, and Python 3.10 adds a few extra packages of its own.
markitdown[all] takes 341 to 416 MB depending on system and Python
Installed size per Python version on GitHub runners (the bare install: 148 to 220 MB)
- Ubuntu
- Windows
- macOS
| Item | Ubuntu (MB on disk) | Windows (MB on disk) | macOS (MB on disk) |
|---|---|---|---|
| Python 3.10 | 412 | 361 | 376 |
| Python 3.11 | 416 | 349 | 375 |
| Python 3.12 | 407 | 342 | 369 |
| Python 3.13 | 407 | 341 | 368 |
| Python 3.14 | 412 | 346 | 374 |
GitHub-hosted runners (Ubuntu 24.04, Windows Server 2025, macOS 26 arm64) · pip, no cache · markitdown 0.1.9 · 2026-11-15 · extras-by-os-python.csv
What you see when an extra is missing
The message names the converter, the file type and the exact extra to install, after the wrapper line FileConversionException.
$ markitdown pdf-text.pdf
markitdown._exceptions.FileConversionException: File conversion failed after 1 attempts:
- PdfConverter threw MissingDependencyException with message: PdfConverter recognized the input as a potential .pdf file, but the dependencies needed to read .pdf files have not been installed. To resolve this error, include the optional dependency [pdf] or [all] when installing MarkItDown. For example:
* pip install 'markitdown[pdf]'
* pip install 'markitdown[all]'
* pip install 'markitdown[pdf, ...]'
* etc. raw log · base package, no extras
How to read that nested message, and what UnsupportedFormatException means instead, is on the missing-dependency page.
History of the extras
| Extra | First seen in | Date |
|---|---|---|
all | 0.1.0a1 | 2025-03-06 |
audio-transcription | 0.1.0a1 | 2025-03-06 |
az-doc-intel | 0.1.0a1 | 2025-03-06 |
docx | 0.1.0a1 | 2025-03-06 |
outlook | 0.1.0a1 | 2025-03-06 |
pdf | 0.1.0a1 | 2025-03-06 |
pptx | 0.1.0a1 | 2025-03-06 |
xls | 0.1.0a1 | 2025-03-06 |
xlsx | 0.1.0a1 | 2025-03-06 |
youtube-transcription | 0.1.0a1 | 2025-03-06 |
az-content-understanding | 0.1.6 | 2026-05-26 |
- Before 0.1.0, installing MarkItDown installed every format library; that is why older tutorials say plain
pip install markitdownis enough. From the 0.1.0 pre-releases (March 2025) the formats moved into extras. az-content-understandingis the only extra added since: release 0.1.6, May 2026.- Minimum versions have been raised for security and compatibility: ExifTool 12.24 in 0.1.3, and in 0.1.9
mammoth1.12.2 and a currentcertifi. Every release is explained in the releases page.
Choosing extras: a checklist
- List the file types you will really convert, and install only those extras.
- Add the programs pip cannot: ffmpeg for MP3 and M4A, ExifTool if you want image metadata.
- Check which features leave the machine (the table above) before you install the audio or YouTube extras.
- Pin the version together with the extras, and record the installed size if you have an image budget (the Docker page uses these numbers).
- If you only want to try it without installing anything, use the online converter.