Formats

Which file formats does MarkItDown support?

Updated 2026-11-15·Upstream source ↗
Markdown view

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:

Command
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

Every extension we tested: outcome, converter, extra, system tool and the range of fidelity grades (A is best, X is failure)
ExtensionOutcomeConverterExtraSystem toolWhat you getGradesDetailsTested workaround
(none)ConvertednoneDetected from the contentC
.csvConvertedCsvConverterA Markdown tableA to DCSV, JSON, XML, text
.docxConvertedDocxConverterdocxHeadings, lists, tables, links; header-row and pipe caveatsA to XWord (DOCX)
.epubConvertedEpubConverterMetadata block, then chaptersA
.htmlConvertedHtmlConverterReadable Markdown without navigationA to DHTML, URLs, Wikipedia, RSS
.ipynbConvertedIpynbConverterMarkdown cells and code cells; outputs droppedB
.jpgConvertedImageConverterExifTool for metadataMetadata lines only (needs ExifTool); no descriptionCImages
.m4aConvertedAudioConverteraudio-transcriptionffmpegMetadata and a transcript (needs ffmpeg)AAudio and video
.mdConvertedPlainTextConverterPassed throughA
.mp3ConvertedAudioConverteraudio-transcriptionffmpegMetadata and a transcript (needs ffmpeg)AAudio and video
.msgConvertedOutlookMsgConverteroutlookFrom, To, Subject and bodyA
.pdfConvertedPdfConverterpdfText, no headings; tables only when words alignA to XPDF to Markdown
.pngConvertedImageConverterExifTool for metadataMetadata lines only (needs ExifTool); no descriptionDImages
.pptxConvertedPptxConverterpptxSlide markers, titles, notes, tables, charts as dataA to BPowerPoint (PPTX)
.txtConvertedPlainTextConverterPassed throughA to D
.wavConvertedAudioConverteraudio-transcriptionffmpeg not needed for WAVMetadata and a transcriptAAudio and video
.xlsConvertedXlsConverterxlsSame as .xlsxBExcel (XLSX, XLS)
.xlsxConvertedXlsxConverterxlsxOne table per sheet, values not formulas, NaN for blanksB to CExcel (XLSX, XLS)
.xmlConvertedPlainTextConverter or RssConverter for feedsEchoed, or a feed converted if it is RSS or AtomA to DCSV, JSON, XML, text
.zipConvertedZipConverterEach member converted under its own headingA to B
.emlEchoed unchangedPlainTextConverterRaw message text, not convertedD
.jsonEchoed unchangedPlainTextConverterThe file's own text, unchangedDCSV, JSON, XML, text
.jsonlEchoed unchangedPlainTextConverterThe file's own text, unchangedDCSV, JSON, XML, text
.pyEchoed unchangedPlainTextConverterThe file's own textD
.rtfEchoed unchangedPlainTextConverterRaw control codes, not convertedDLibreOffice to .docx first (tested, identical)
.svgEchoed unchangedPlainTextConverterThe XML source, not convertedD
.tomlEchoed unchangedPlainTextConverterThe file's own textD
.tsvEchoed unchangedPlainTextConverterThe file's own text, not a tableD
.yamlEchoed unchangedPlainTextConverterThe file's own textD
.bmpRefusednoneUnsupportedFormatExceptionXConvert to PNG with Pillow (then metadata only)
.docRefusednoneUnsupportedFormatExceptionXLibreOffice to .docx first (tested, identical)
.gifRefusednoneUnsupportedFormatExceptionXConvert to PNG with Pillow (then metadata only)
.odpRefusednoneUnsupportedFormatExceptionXLibreOffice to .pptx first (tested, identical)
.odsRefusednoneUnsupportedFormatExceptionXLibreOffice to .xlsx first (tested, identical)
.odtRefusednoneUnsupportedFormatExceptionXLibreOffice to .docx first (tested, identical)
.pptRefusednoneUnsupportedFormatExceptionXLibreOffice to .pptx first (tested, identical)
.tiffRefusednoneUnsupportedFormatExceptionXConvert to PNG with Pillow (then metadata only)
.webpRefusednoneUnsupportedFormatExceptionXConvert to PNG with Pillow (then metadata only)
Every extension we tested: outcome, converter, extra, system tool and the range of fidelity grades (A is best, X is failure) Source: Test T05 · 113 files · markitdown 0.1.9 · 2026-11-15 · format-matrix-summary.csv · Download CSV

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.

A PDF renamed .txt
%PDF-1.4
%“Œ‹ž ReportLab Generated PDF document (opensource)
1 0 obj
<<
/F1 2 0 R /F2 3 0 R
>>
synthetic_pdf-renamed-as.txt.md · 1,972 bytes · first 6 of 75 lines shown output (.md)

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.

markitdown bundle.zip
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%
synthetic_bundle.zip.md · 1,363 bytes · first 14 of 71 lines shown output (.md)

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.

markitdown book.epub
**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
synthetic_book.epub.md · 319 bytes · first 12 of 21 lines shown output (.md)

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.

An Outlook message
# 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 message
synthetic_test_outlook_msg.msg.md · 173 bytes output (.md)

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

A notebook
# Pilot Notebook
Some *markdown*.

```python
print(6*7)
```
synthetic_notebook.ipynb.md · 59 bytes output (.md)

RSS and Atom feeds

A feed becomes a title and one section per entry. Other XML is echoed (CSV, JSON and XML).

An Atom feed
# Atom feed

## Entry one
Summary one
synthetic_feed-atom.xml.md · 37 bytes output (.md)

Echoed unchanged: types that "work" but are not converted

Accepted by the plain-text converter and printed back as they are
TypeWhat you getTested workaround
.emlRaw message text, not converted
.jsonThe file's own text, unchanged
.jsonlThe file's own text, unchanged
.pyThe file's own text
.rtfRaw control codes, not convertedLibreOffice to .docx first (tested, identical)
.svgThe XML source, not converted
.tomlThe file's own text
.tsvThe file's own text, not a table
.yamlThe file's own text
Accepted by the plain-text converter and printed back as they are Source: Test T05 · T07 · format-matrix-summary.csv · Download CSV

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.

An RTF file
{\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;}
synthetic_report.rtf.md · 47,312 bytes · first 4 of 344 lines shown output (.md)

Not supported, and what to do instead

Types with no converter: they raise UnsupportedFormatException
TypeResultTested workaround
.bmpUnsupportedFormatExceptionConvert to PNG with Pillow (then metadata only)
.docUnsupportedFormatExceptionLibreOffice to .docx first (tested, identical)
.gifUnsupportedFormatExceptionConvert to PNG with Pillow (then metadata only)
.odpUnsupportedFormatExceptionLibreOffice to .pptx first (tested, identical)
.odsUnsupportedFormatExceptionLibreOffice to .xlsx first (tested, identical)
.odtUnsupportedFormatExceptionLibreOffice to .docx first (tested, identical)
.pptUnsupportedFormatExceptionLibreOffice to .pptx first (tested, identical)
.tiffUnsupportedFormatExceptionConvert to PNG with Pillow (then metadata only)
.webpUnsupportedFormatExceptionConvert to PNG with Pillow (then metadata only)
Types with no converter: they raise UnsupportedFormatException Source: Test T05 · T07 · format-matrix-summary.csv · Download CSV
  • Legacy Office and OpenDocument: convert with LibreOffice in headless mode, then MarkItDown. For .doc, .ppt, .odt, .odp and .ods this gave exactly the output of converting the original OOXML file (Word, PowerPoint). .xls is 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.