Formats
Which file formats does MarkItDown support?
MarkItDown has a dedicated converter for about twenty file types. Everything else is either echoed back as text or refused, and the difference is not obvious from the exit code. We tested 38 extensions with 113 files on three operating systems and five Python versions.
Short answer
- Converted: PDF, Word (
.docx), Excel (.xlsx,.xls), PowerPoint (.pptx), HTML, CSV, images (metadata only), audio, ZIP, EPUB, Outlook.msg, Jupyter notebooks, RSS and Atom, plain text and Markdown. - Echoed unchanged (no error, no conversion): RTF, SVG,
.eml, JSON, YAML, TOML, source code, TSV. - Refused with
UnsupportedFormatException:.doc,.ppt, OpenDocument, GIF, WebP, TIFF, BMP.
One install enables everything:
pip install "markitdown[all]"Look up your own extension in the matrix.
Tested with markitdown 0.1.9 · Python 113 files on Ubuntu 24.04, Windows and macOS runners with Python 3.10 to 3.14 (T03, T05); legacy-format routes in a Linux lab with LibreOffice 24.2 (T07) · 2026-11-15 · evidence: format-matrix-summary.csv, format-matrix.csv, format-support.json, legacy-features.jsonl
Find your file type
| Extension | Outcome | Converter | Extra | System tool | What you get | Grades | Details | Tested workaround |
|---|---|---|---|---|---|---|---|---|
(none) | Converted | none | | Detected from the content | C | |||
.csv | Converted | CsvConverter | | A Markdown table | A to D | CSV, JSON, XML, text | ||
.docx | Converted | DocxConverter | docx | Headings, lists, tables, links; header-row and pipe caveats | A to X | Word (DOCX) | ||
.epub | Converted | EpubConverter | | Metadata block, then chapters | A | |||
.html | Converted | HtmlConverter | | Readable Markdown without navigation | A to D | HTML, URLs, Wikipedia, RSS | ||
.ipynb | Converted | IpynbConverter | | Markdown cells and code cells; outputs dropped | B | |||
.jpg | Converted | ImageConverter | | ExifTool for metadata | Metadata lines only (needs ExifTool); no description | C | Images | |
.m4a | Converted | AudioConverter | audio-transcription | ffmpeg | Metadata and a transcript (needs ffmpeg) | A | Audio and video | |
.md | Converted | PlainTextConverter | | Passed through | A | |||
.mp3 | Converted | AudioConverter | audio-transcription | ffmpeg | Metadata and a transcript (needs ffmpeg) | A | Audio and video | |
.msg | Converted | OutlookMsgConverter | outlook | From, To, Subject and body | A | |||
.pdf | Converted | PdfConverter | pdf | Text, no headings; tables only when words align | A to X | PDF to Markdown | ||
.png | Converted | ImageConverter | | ExifTool for metadata | Metadata lines only (needs ExifTool); no description | D | Images | |
.pptx | Converted | PptxConverter | pptx | Slide markers, titles, notes, tables, charts as data | A to B | PowerPoint (PPTX) | ||
.txt | Converted | PlainTextConverter | | Passed through | A to D | |||
.wav | Converted | AudioConverter | audio-transcription | ffmpeg not needed for WAV | Metadata and a transcript | A | Audio and video | |
.xls | Converted | XlsConverter | xls | Same as .xlsx | B | Excel (XLSX, XLS) | ||
.xlsx | Converted | XlsxConverter | xlsx | One table per sheet, values not formulas, NaN for blanks | B to C | Excel (XLSX, XLS) | ||
.xml | Converted | PlainTextConverter or RssConverter for feeds | | Echoed, or a feed converted if it is RSS or Atom | A to D | CSV, JSON, XML, text | ||
.zip | Converted | ZipConverter | | Each member converted under its own heading | A to B | |||
.eml | Echoed unchanged | PlainTextConverter | | Raw message text, not converted | D | |||
.json | Echoed unchanged | PlainTextConverter | | The file's own text, unchanged | D | CSV, JSON, XML, text | ||
.jsonl | Echoed unchanged | PlainTextConverter | | The file's own text, unchanged | D | CSV, JSON, XML, text | ||
.py | Echoed unchanged | PlainTextConverter | | The file's own text | D | |||
.rtf | Echoed unchanged | PlainTextConverter | | Raw control codes, not converted | D | LibreOffice to .docx first (tested, identical) | ||
.svg | Echoed unchanged | PlainTextConverter | | The XML source, not converted | D | |||
.toml | Echoed unchanged | PlainTextConverter | | The file's own text | D | |||
.tsv | Echoed unchanged | PlainTextConverter | | The file's own text, not a table | D | |||
.yaml | Echoed unchanged | PlainTextConverter | | The file's own text | D | |||
.bmp | Refused | none | | UnsupportedFormatException | X | Convert to PNG with Pillow (then metadata only) | ||
.doc | Refused | none | | UnsupportedFormatException | X | LibreOffice to .docx first (tested, identical) | ||
.gif | Refused | none | | UnsupportedFormatException | X | Convert to PNG with Pillow (then metadata only) | ||
.odp | Refused | none | | UnsupportedFormatException | X | LibreOffice to .pptx first (tested, identical) | ||
.ods | Refused | none | | UnsupportedFormatException | X | LibreOffice to .xlsx first (tested, identical) | ||
.odt | Refused | none | | UnsupportedFormatException | X | LibreOffice to .docx first (tested, identical) | ||
.ppt | Refused | none | | UnsupportedFormatException | X | LibreOffice to .pptx first (tested, identical) | ||
.tiff | Refused | none | | UnsupportedFormatException | X | Convert to PNG with Pillow (then metadata only) | ||
.webp | Refused | none | | UnsupportedFormatException | X | Convert to PNG with Pillow (then metadata only) |
A grade of A means the structure survived, B that the content is complete but some structure was lost, C text only, D exit code 0 but nothing useful, X failure.
How MarkItDown decides what a file is
Extension first, content second
The extension wins when it names a text type: a PDF renamed .txt was echoed as raw PDF bytes. The content wins when the extension is binary or missing: the same PDF with no extension converted correctly, and a DOCX renamed .pdf converted as a DOCX.
%PDF-1.4
%“Œ‹ž ReportLab Generated PDF document (opensource)
1 0 obj
<<
/F1 2 0 R /F2 3 0 R
>>%PDF-1.4 %“Œ‹ž ReportLab Generated PDF document (opensource) 1 0 obj << /F1 2 0 R /F2 3 0 R
Hints you can give
The extension, MIME type and charset hints exist on the command line and as stream information in Python: CLI and Python API.
What "converted" does not promise
Exit code 0 means a converter accepted the file, not that the output is useful: scanned PDFs and bare images give nothing, and unknown text types are echoed. The two lists below cover those cases.
The main formats, in one line each
The grade on each card is the median over our test files of that type.
HTML, CSV, JSON and XML, audio and YouTube have their own pages as they are built.
ZIP archives
Each member is converted in turn under a ## File: heading with the member's name. Nested archives are opened (our nested sample produced the inner archive's members too), and a member that cannot be converted is skipped silently: the .gif in our test archive is simply absent. Members need the extras their own type needs, so a bare install silently drops the Word file (example).
The first line contains the path you gave, so the output differs between machines and between runs from different folders. That matters for caching and for tests that compare output.
Content from the zip file `corpus/synthetic/bundle.zip`:
## File: report.docx
Pilot Report: Field Station Alpha
# 1. Summary
This report covers **three sites** during *spring 2026* <u>with underlined</u> ~~and struck text.~~
## 1.1 Key findings
* Rainfall rose 12% year on year
* Sensor uptime reached 99.2%Content from the zip file corpus/synthetic/bundle.zip:
File: report.docx
Pilot Report: Field Station Alpha
1. Summary
This report covers three sites during spring 2026 <u>with underlined</u> and struck text.
1.1 Key findings
- Rainfall rose 12% year on year
- Sensor uptime reached 99.2%
EPUB e-books
A metadata block (title, authors, language, date, identifier), then the chapters with headings, emphasis and tables. No extra is needed. Our generated EPUB was grade A, as was a public-domain book.
**Title:** Pilot Book
**Authors:** Pilot Lab
**Language:** en-US
**Date:** 2026-11-15T14:56:21Z
**Identifier:** urn:uuid:a0de2859-d147-444c-a047-eae6f52e77eb
# Pilot Book
Pilot Lab
# Chapter One
Title: Pilot Book Authors: Pilot Lab Language: en-US Date: 2026-11-15T14:56:21Z Identifier: urn:uuid:a0de2859-d147-444c-a047-eae6f52e77eb
Pilot Book
Pilot Lab
Chapter One
Outlook messages (.msg)
A heading, From, To and Subject, then the body. It needs the outlook extra. We tested one message (a test file from the upstream project), so we do not know about attachments, Cc, HTML bodies or meeting invitations.
# Email Message
**From:** test.sender@example.com
**To:** test.recipient@example.com
**Subject:** Test Email Message
## Content
This is the body of the test email messageEmail Message
From: test.sender@example.com To: test.recipient@example.com Subject: Test Email Message
Content
This is the body of the test email message
.eml is not .msg: an .eml file is echoed as its raw text, and we have no tested route inside MarkItDown that converts it.
Jupyter notebooks (.ipynb)
Markdown cells pass through and code cells become fenced Python blocks, but cell outputs are dropped: the printed result of our code cell is missing. A notebook whose value is in its charts and tables loses it. We did not test an R notebook or a workaround for keeping outputs.
# Pilot Notebook
Some *markdown*.
```python
print(6*7)
```Pilot Notebook
Some markdown.
print(6*7)
RSS and Atom feeds
A feed becomes a title and one section per entry. Other XML is echoed (CSV, JSON and XML).
# Atom feed
## Entry one
Summary oneAtom feed
Entry one
Summary one
Echoed unchanged: types that "work" but are not converted
| Type | What you get | Tested workaround |
|---|---|---|
.eml | Raw message text, not converted | |
.json | The file's own text, unchanged | |
.jsonl | The file's own text, unchanged | |
.py | The file's own text | |
.rtf | Raw control codes, not converted | LibreOffice to .docx first (tested, identical) |
.svg | The XML source, not converted | |
.toml | The file's own text | |
.tsv | The file's own text, not a table | |
.yaml | The file's own text |
The RTF example is the dangerous one: our small RTF file came out as 47,000 characters of control codes, exit code 0. Converting it through LibreOffice to .docx first gave exactly the output of converting the original DOCX.
{\rtf1\ansi\deff4\adeflang1025
{\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman;}{\f1\froman\fprq2\fcharset2 Symbol;}{\f2\fswiss\fprq2\fcharset0 Arial;}{\f3\froman\fprq2\fcharset0 Liberation Serif{\*\falt Times New Roman};}{\f4\froman\fprq2\fcharset0 Cambria;}{\f5\froman\fprq2\fcharset0 Calibri;}{\f6\froman\fprq2\fcharset0 Courier{\*\falt Courier New};}{\f7\fswiss\fprq2\fcharset0 Liberation Sans{\*\falt Arial};}{\f8\fnil\fprq2\fcharset128 \'82\'6c\'82\'72 \'96\'be\'92\'a9;}{\f9\fnil\fprq2\fcharset128 \'82\'6c\'82\'72 \'83\'53\'83\'56\'83\'62\'83\'4e;}{\f10\fnil\fprq2\fcharset0 WenQuanYi Zen Hei;}{\f11\fnil\fprq2\fcharset0 ;}{\f12\fnil\fprq2\fcharset0 FreeSans;}{\f13\fswiss\fprq0\fcharset128 FreeSans;}}
{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;\red192\green80\blue77;\red64\green64\blue64;\red23\green54\blue93;\red79\green129\blue189;\red36\green63\blue96;\red54\green95\blue145;}
{\stylesheet{\s0\snext0\rtlch\af11\afs22\alang1025 \ltrch\lang1033\langfe1033\hich\af4\loch\sl276\slmult1\ql\widctlpar\sb0\sa200\ltrpar\hyphpar0\cf0\f4\fs22\lang1033\kerning0\dbch\af8\langfe1033 Normal;}{\rtf1\ansi\deff4\adeflang1025 {\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman;}{\f1\froman\fprq2\fcharset2 Symbol;}{\f2\fswiss\fprq2\fcharset0 Arial;}{\f3\froman\fprq2\fcharset0 Liberation Serif{*\falt Times New Roman};}{\f4\froman\fprq2\fcharset0 Cambria;}{\f5\froman\fprq2\fcharset0 Calibri;}{\f6\froman\fprq2\fcharset0 Courier{*\falt Courier New};}{\f7\fswiss\fprq2\fcharset0 Liberation Sans{*\falt Arial};}{\f8\fnil\fprq2\fcharset128 '82'6c'82'72 '96'be'92'a9;}{\f9\fnil\fprq2\fcharset128 '82'6c'82'72 '83'53'83'56'83'62'83'4e;}{\f10\fnil\fprq2\fcharset0 WenQuanYi Zen Hei;}{\f11\fnil\fprq2\fcharset0 ;}{\f12\fnil\fprq2\fcharset0 FreeSans;}{\f13\fswiss\fprq0\fcharset128 FreeSans;}} {\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;\red192\green80\blue77;\red64\green64\blue64;\red23\green54\blue93;\red79\green129\blue189;\red36\green63\blue96;\red54\green95\blue145;} {\stylesheet{\s0\snext0\rtlch\af11\afs22\alang1025 \ltrch\lang1033\langfe1033\hich\af4\loch\sl276\slmult1\ql\widctlpar\sb0\sa200\ltrpar\hyphpar0\cf0\f4\fs22\lang1033\kerning0\dbch\af8\langfe1033 Normal;}
Not supported, and what to do instead
| Type | Result | Tested workaround |
|---|---|---|
.bmp | UnsupportedFormatException | Convert to PNG with Pillow (then metadata only) |
.doc | UnsupportedFormatException | LibreOffice to .docx first (tested, identical) |
.gif | UnsupportedFormatException | Convert to PNG with Pillow (then metadata only) |
.odp | UnsupportedFormatException | LibreOffice to .pptx first (tested, identical) |
.ods | UnsupportedFormatException | LibreOffice to .xlsx first (tested, identical) |
.odt | UnsupportedFormatException | LibreOffice to .docx first (tested, identical) |
.ppt | UnsupportedFormatException | LibreOffice to .pptx first (tested, identical) |
.tiff | UnsupportedFormatException | Convert to PNG with Pillow (then metadata only) |
.webp | UnsupportedFormatException | Convert to PNG with Pillow (then metadata only) |
- Legacy Office and OpenDocument: convert with LibreOffice in headless mode, then MarkItDown. For
.doc,.ppt,.odt,.odpand.odsthis gave exactly the output of converting the original OOXML file (Word, PowerPoint)..xlsis supported with its own extra. - Images other than JPEG and PNG: convert to PNG first, and you then get metadata only (images). We did not test HEIC; heic.fyi, another site of ours, covers converting it.
- Apple iWork, OneNote, Visio, Publisher, other video containers: we did not test a route, so we cannot recommend one.
- A plugin is the supported way to add a converter (Python API).
Formats in the browser converter
Our in-browser converter runs the same library in WebAssembly. On 88 of our files it matched the native result on 80, failed the same way as the native library on 5 (corrupt, empty and password-protected files), and differed on 3: two ZIP archives, where image metadata needs ExifTool and the browser has none, and a Word file renamed .pdf, which the browser engine could not identify without its file-type model. Image metadata, audio and other formats that need a system tool are not available in the browser.
Which extra does my format need?
The docx, pdf, pptx, xlsx and xls extras, outlook and audio-transcription are in the matrix above; the extras page has the sizes. These need no extra at all: CSV, HTML, EPUB, ZIP, text, Markdown, notebooks, feeds and the echoed types. System tools are separate: ffmpeg for MP3 and M4A, ExifTool for image metadata.