Docs

The markitdown command

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

markitdown converts exactly one input per run and writes Markdown to the screen, or to the file given with -o. Everything below was captured on version 0.1.9 on Ubuntu, Windows and macOS (62 scenarios each; all three systems agreed on every exit code).

Short answer

markitdown [options] [file]: with no file it reads standard input. To save the result:

Command
markitdown report.docx -o report.md

On Windows always use -o rather than >: the redirect loses characters.

Tested with markitdown 0.1.9 · Python Ubuntu 24.04, Windows Server 2025 and macOS 26 runners · Python 3.13 · 62 scenarios on each system (identical results on all three except where stated) · 2026-11-15 · evidence: cli-flags.json, cli-behaviour.csv, cli-options.csv, cli-exit-codes.csv

All options at a glance

Exactly the options defined by the 0.1.9 argument parser, from our own run of each:

Every option of markitdown 0.1.9 (the `since` column is the first stable release that has it)
OptionArgumentWhat it doesSinceSection
-v, --versionPrint the version and exit.v0.0.1help
-h, --helpPrint usage and exit.v0.0.1help
-o, --outputfile nameWrite the Markdown to a UTF-8 file instead of stdout. Needs an existing folder; overwrites silently.v0.0.1output
-x, --extensionextensionTell the converter what the input is when reading stdin. Dot optional, case-insensitive.v0.1.0hints
-m, --mime-typetype/subtypeMIME type hint. Must contain exactly one slash.v0.1.0hints
-c, --charsetnameCharset hint (any name Python knows).v0.1.0hints
-d, --use-docintelUse Azure Document Intelligence; needs -e or MARKITDOWN_DOCINTEL_ENDPOINT and a file. Not tested by us beyond argument handling.v0.0.1azure
-e, --endpointURLDocument Intelligence endpoint. The environment-variable default was added in 0.1.8.v0.0.1 (env default v0.1.8)azure
--use-cu, --use-content-understandingUse Azure Content Understanding; needs --cu-endpoint. Cannot be combined with -d.v0.1.6azure
--cu-endpointURLContent Understanding endpoint.v0.1.6 (env default v0.1.8)azure
--cu-analyzeranalyzer idPick a Content Understanding analyzer.v0.1.6azure
--cu-file-typescomma listRoute only these types to Content Understanding; unknown names are rejected.v0.1.6azure
-p, --use-pluginsLoad installed third-party plugins.v0.1.0plugins
--list-pluginsList installed plugins and exit 0.v0.1.0plugins
--keep-data-urisKeep full base64 data URIs (images) instead of truncating them.v0.1.0images
filenamepath, file: URI, data: URI or http(s) URLThe single input. Omit it to read stdin.v0.0.1input
Every option of markitdown 0.1.9 (the `since` column is the first stable release that has it) Source: Test T04 · run 43738688922 · markitdown 0.1.9 · cli-options.csv · Download CSV

There is no folder mode, no --quiet or --verbose, and no option for an LLM: image descriptions are Python-only (below).

Help and version

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown --version
[exit 0] 1.38s  stdin=none
--- stdout (17 bytes, first 2000)
markitdown 0.1.9

--- stderr

raw log

The full help text, which prints usage examples written for bash:

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown --help
[exit 0] 0.90s  stdin=none
--- stdout (2636 bytes, first 2000)
usage: SYNTAX:

    markitdown <OPTIONAL: FILENAME>
    If FILENAME is empty, markitdown reads from stdin.

EXAMPLE:

    markitdown example.pdf

    OR

    cat example.pdf | markitdown

    OR

    markitdown < example.pdf

    OR to save to a file use

    markitdown example.pdf -o example.md

    OR

    markitdown example.pdf > example.md

Convert various file formats to markdown.

positional arguments:
  filename

options:
  -h, --help            show this help message and exit
  -v, --version         show the version number and exit
  -o, --output OUTPUT   Output file name. If not provided, output is written
                        to stdout.
  -x, --extension EXTENSION
                        Provide a hint about the file extension (e.g., when
                        reading from stdin).
  -m, --mime-type MIME_TYPE
                        Provide a hint about the file's MIME type.
  -c, --charset CHARSET
                        Provide a hint about the file's charset (e.g., UTF-8).
  -d, --use-docintel    Use Document Intelligence to extract text instead of
                        offline conversion. Requires a valid Document
                        Intelligence Endpoint.
  --use-cu, --use-content-understanding
                        Use Azure Content Understanding to extract text.
                        Requires --cu-endpoint.
  -e, --endpoint ENDPOINT
                        Document Intelligence Endpoint. Required if using
                        Document Intelligence. Defaults to the
                        MARKITDOWN_DOCINTEL_ENDPOINT environment variable.
  --cu-endpoint CU_ENDPOINT
                        Content Understanding Endpoint. Required if using
                        --use-cu. Defaults to the MARKITDOWN_CU_ENDPOINT
                        environment variable.
  --cu-analyzer CU_ANALYZER
                        Content Understanding analyzer ID. If not specified,
                        auto-selects by file type.
  --cu-file-types CU_FILE
--- stderr

raw log

Input

One file per run

Two paths, a folder and a shell wildcard that expands to several files all fail:

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown report.docx data.csv
[exit 2] 0.89s  stdin=none
--- stdout (0 bytes, first 2000)

--- stderr
usage: SYNTAX:

    markitdown <OPTIONAL: FILENAME>
    If FILENAME is empty, markitdown reads from stdin.

EXAMPLE:

    markitdown example.pdf

    OR

    cat example.pdf | markitdown

    OR

    markitdown < example.pdf

    OR to save to a file use

    markitdown example.pdf -o example.md

    OR

    markitdown example.pdf > example.md
markitdown: error: unrecognized arguments: data.csv

raw log

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown 'sub dir'
[exit 1] 0.90s  stdin=none
--- stdout (0 bytes, first 2000)

--- stderr
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.13.18/x64/bin/markitdown", line 6, in <module>
    sys.exit(main())
             ~~~~^^
  File "/opt/hostedtoolcache/Python/3.13.18/x64/lib/python3.13/site-packages/markitdown/__main__.py", line 257, in main
    result = markitdown.convert(
        args.filename, stream_info=stream_info, keep_data_uris=args.keep_data_uris
    )
  File "/opt/hostedtoolcache/Python/3.13.18/x64/lib/python3.13/site-packages/markitdown/_markitdown.py", line 349, in convert
    return self.convert_local(source, stream_info=stream_info, **kwargs)
           ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.13.18/x64/lib/python3.13/site-packages/markitdown/_markitdown.py", line 399, in convert_local
    with open(path, "rb") as fh:
         ~~~~^^^^^^^^^^^^
IsADirectoryError: [Errno 21] Is a directory: 'sub dir'

raw log

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown *.docx
[exit 2] 0.87s  stdin=none
--- stdout (0 bytes, first 2000)

--- stderr
usage: SYNTAX:

    markitdown <OPTIONAL: FILENAME>
    If FILENAME is empty, markitdown reads from stdin.

EXAMPLE:

    markitdown example.pdf

    OR

    cat example.pdf | markitdown

    OR

    markitdown < example.pdf

    OR to save to a file use

    markitdown example.pdf -o example.md

    OR

    markitdown example.pdf > example.md
markitdown: error: unrecognized arguments: edge-zero-bytes.docx report.docx

raw log

For folders see the batch page.

Reading from standard input

Pipe the file in, or redirect it. With no hint, a DOCX, a PDF and a CSV were all recognised from the bytes alone:

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown < report.docx
[exit 0] 1.16s  stdin=pipe
--- stdout (851 bytes, first 2000)
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%
* Two stations need new batteries
* Nested item under batteries

## 1.2 Next steps

1. Order batteries
2. Recalibrate sensors
3. Publish dataset

# 2. Measurements

|  |  |  |  |
| --- | --- | --- | --- |
| Station | Rainfall (mm) | Uptime | Notes |
| Alpha | 412.5 | 99.2% | Battery low |
| Bravo | 388.0 | 97.8% | OK | stable |
| Charlie | 451.3 | 99.9% | New sensor |

## 2.1 Chart

![](data:image/png;base64...)

Figure 1: Quarterly revenue chart.

### 3. Deep heading level three

Contact: hello@example.org — see https://example.org/data for the dataset. Unicode check: café, naïve, 東京, Ω, emoji 🙂.

--- stderr

raw log

A hint helps when the type cannot be recognised; it is the next section. A single dash is not stdin: markitdown - looks for a file named -.

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown -
[exit 1] 0.93s  stdin=pipe
--- stdout (0 bytes, first 2000)

--- stderr
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.13.18/x64/bin/markitdown", line 6, in <module>
    sys.exit(main())
             ~~~~^^
  File "/opt/hostedtoolcache/Python/3.13.18/x64/lib/python3.13/site-packages/markitdown/__main__.py", line 257, in main
    result = markitdown.convert(
        args.filename, stream_info=stream_info, keep_data_uris=args.keep_data_uris
    )
  File "/opt/hostedtoolcache/Python/3.13.18/x64/lib/python3.13/site-packages/markitdown/_markitdown.py", line 349, in convert
    return self.convert_local(source, stream_info=stream_info, **kwargs)
           ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.13.18/x64/lib/python3.13/site-packages/markitdown/_markitdown.py", line 399, in convert_local
    with open(path, "rb") as fh:
         ~~~~^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '-'

raw log

URLs and URIs

The argument may be an http(s) URL, a file: URI or a data: URI. All three worked:

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown https://example.com
[exit 0] 0.94s  stdin=none
--- stdout (157 bytes, first 2000)
This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.

--- stderr

raw log

Some sites refuse automated requests: Wikipedia answered 403 in our test.

Reproduced by us

requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://en.wikipedia.org/wiki/Markdown

The library's default request identifies itself as python-requests, which some sites (Wikipedia from our lab network) refuse. Pages that allow it convert normally (example.com worked).

Affected: 0.1.9 (tested from a data-centre network) · last reproduced 2026-11-15 · Upstream report

Paths that fail

A missing file ends in a full Python traceback, and the same message appears for a missing output folder (below):

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown missing.docx
[exit 1] 1.00s  stdin=none
--- stdout (0 bytes, first 2000)

--- stderr
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.13.18/x64/bin/markitdown", line 6, in <module>
    sys.exit(main())
             ~~~~^^
  File "/opt/hostedtoolcache/Python/3.13.18/x64/lib/python3.13/site-packages/markitdown/__main__.py", line 257, in main
    result = markitdown.convert(
        args.filename, stream_info=stream_info, keep_data_uris=args.keep_data_uris
    )
  File "/opt/hostedtoolcache/Python/3.13.18/x64/lib/python3.13/site-packages/markitdown/_markitdown.py", line 349, in convert
    return self.convert_local(source, stream_info=stream_info, **kwargs)
           ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.13.18/x64/lib/python3.13/site-packages/markitdown/_markitdown.py", line 399, in convert_local
    with open(path, "rb") as fh:
         ~~~~^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'missing.docx'

raw log

UNC and device paths on Windows worked in our tests, contrary to what the upstream release notes suggest (Windows page). File names with spaces work when quoted.

Output

To a file with -o

-o writes UTF-8 and prints nothing, even on Windows (where the file has Windows line endings). It overwrites an existing file without asking and does not create missing folders:

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown report.docx -o out.md
[exit 0] 1.16s  stdin=none
--- stdout (0 bytes, first 2000)

--- stderr

raw log

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown report.docx -o nodir/out.md
[exit 1] 1.15s  stdin=none
--- stdout (0 bytes, first 2000)

--- stderr
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.13.18/x64/bin/markitdown", line 6, in <module>
    sys.exit(main())
             ~~~~^^
  File "/opt/hostedtoolcache/Python/3.13.18/x64/lib/python3.13/site-packages/markitdown/__main__.py", line 261, in main
    _handle_output(args, result)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.13.18/x64/lib/python3.13/site-packages/markitdown/__main__.py", line 267, in _handle_output
    with open(args.output, "w", encoding="utf-8") as f:
         ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'nodir/out.md'

raw log

An -o with no value is an argument error (exit 2, not 1):

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown report.docx -o
[exit 2] 0.90s  stdin=none
--- stdout (0 bytes, first 2000)

--- stderr
usage: SYNTAX:

    markitdown <OPTIONAL: FILENAME>
    If FILENAME is empty, markitdown reads from stdin.

EXAMPLE:

    markitdown example.pdf

    OR

    cat example.pdf | markitdown

    OR

    markitdown < example.pdf

    OR to save to a file use

    markitdown example.pdf -o example.md

    OR

    markitdown example.pdf > example.md
markitdown: error: argument -o/--output: expected one argument

raw log

To the screen or a pipe

Text goes to standard output in the console's encoding, with characters it cannot encode replaced by ?. On Windows that makes > unsafe: in our experiment -o kept café, 東京 and an emoji and every redirect lost the last two (full results).

stderr

Tracebacks and Python warnings go to standard error, so redirected Markdown stays clean. On Linux virtual machines you may see a grey onnxruntime … GetPciBusId line there: it is harmless (error index), and so is the ffmpeg warning (details).

Type and charset hints

Use -x (extension), -m (MIME type) and -c (charset) when the input has no file name or MarkItDown guesses wrong. -x takes the extension with or without the dot and is case-insensitive; an empty -x is treated as no hint.

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown -x .csv < data.csv
[exit 0] 0.92s  stdin=pipe
--- stdout (148 bytes, first 2000)
| station | rainfall_mm | notes |
| --- | --- | --- |
| Alpha | 412.5 | Battery, low |
| Bravo | 388.0 | OK \| stable |
| Charlie | 451.3 | café |

--- stderr

raw log

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown -m text/csv < data.csv
[exit 0] 0.93s  stdin=pipe
--- stdout (148 bytes, first 2000)
| station | rainfall_mm | notes |
| --- | --- | --- |
| Alpha | 412.5 | Battery, low |
| Bravo | 388.0 | OK \| stable |
| Charlie | 451.3 | café |

--- stderr

raw log

A hint is trusted over the content, so a wrong one misleads: DOCX bytes declared as CSV came out as raw characters, exit 0:

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown -x .csv < report.docx
[exit 0] 0.97s  stdin=pipe
--- stdout (32148 bytes, first 2000)
| PKwo]Л[Content_Types].xmlOO0\|(PVM9 | p\(b3i |  |  |  |  |
| --- | --- | --- | --- | --- | --- |
| 'ghذ)[Dg{gzdMwuqTMv˺_'E$]#wPtv0o`bu" |  |  |  |  |  |
| ?@+WZ$~KK?&c#pTRg3hPvH~`g^SVk7 | IÊIdF+I\y7K:GʮW:!7\|*.yn ~K]Bc*Gտp}jWk˒7M~IC>.Xpِ6V>÷;&>؈wq*@OɚX(Gs01Ho= |  |  |  |  |
| vU_[B q~=y61VmA.$ˤҎlF#aqm\|"PKwo]y&K@_rels/.relsJ1>E%nUD^DM>n~HھQD]Xcf֛+lWbYՂX)_	!xTYl#@e&6fV >+[)ABD_*mHt(Wu}-ooFL5lw?tH`@pSNd18IqCIώPh[.COS^x$ͼ8g<ѸG-$#WzfuރQp0Z}[6PKwo]BvdocProps/core.xmlMO0@jC Th!!qӅI{ҬˋX&ce0.2Tr(	e؃ |  |  |  |  |  |
| EtΔ4`'6gmuNe[h;B2-Ehvi)H dJ&4pF$ZrbLk<+gd+'z | Nފ	neu'~GV`V(A4 |  |  |  |  |
| G`A0$>`(*3+1;{}eFhtV Pl@U24 |  |  |  |  |  |
| x]ŸCvdwJ$4Jueo?ΟG9y0 |  |  |  |  |  |
| 3oPKwo]ldocProps/app.xmlTn0+]tiAQAC"J1~}9/;;AfNhUPq |  |  |  |  |  |
| sV]q_ʭ-	tWP{bpsO+t@޴{Np\|e@EvPޘQ0Ohy=5GY |  |  |  |  |  |
| Fa3yi(وFM 1`hj{tdgm[<#@ | p |  |  |  |  |
| c@~Fp( SW퐿XAǠ95C(#jaoXq;K;BD*CZo78X杰@iٺ$}>E˰J.!='$b+c)WCZ]N[5v%~o'k=PGvZh.m1u=w8~		lɌlߗ>W$;U{lOI?OG//	PKwo]җm*word/document.xmlYOo6Sl@kI&BIhfIiBIðϰ>0켏GJq\{H?yzq2Ȼ;a#!"aц	"'OQ""Du4qK8Fb%F | 2_ |  | T70p-DZ#C*LѸn6` | b\|(@!RB>BLI |  |
| 3bu0W<0M4 |  |  |  |  |  |
| 2^/֖VB"dIrT܉+(undZ | UxNٱscW?)2^J1VR"M$7^4϶'Jr"ba"G	sR(\((Z؈z"دt?g}.̄G#ʻ%3<ğ.p?wƸ0P&"xB.k)$\|9@m> |  |  |  |  |
| 20	MnG-ZEZu |  |  |  |  |  |
| 4x˔i$6@Oɴ_PLϤ |  |  |  |  |  |
| hf@/'I |  |  |  |  |  |
|  |  |  |  |  |  |
| -cch6u;5-ŒII'8!YbW(xx""Mc=7oqyH^„Xn~Ŵ9(8ЀrNp;	"Y^kH! |  |  |  |  |  |
| fN~`.–!#9 ƤO`}.v)h | pWde`8hS.::YB7>b~1嬯B`Ί>g:%	5Tdm6kP`kr>>UG=pNK | 7NB#<aL_	qc9zȹW]NgA=]/01M{_=GςJy᭨9/—5N%\|L8.+1♍k}H_-;zթI\ | l˼޺Te&M鶪hJfcw<n;6	b@ёزjFm=nmEo^omYtaJvrht`Y\|tZhX\5bYR6er{nt
--- stderr

raw log

Bad values are rejected with exit 1:

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown -m foo
[exit 1] 0.88s  stdin=pipe
--- stdout (23 bytes, first 2000)
Invalid MIME type: foo

--- stderr

raw log

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown -c nosuchcharset data.csv
[exit 1] 0.90s  stdin=pipe
--- stdout (26 bytes, first 2000)
Invalid charset: nonsense

--- stderr

raw log

Charset before and after

A Windows-1252 CSV without a charset hint, then with -c cp1252:

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown data-cp1252.csv
[exit 0] 1.52s  stdin=none
--- stdout (86 bytes, first 2000)
| station | notes |
| --- | --- |
| Alpha | cafķ dķjÓ vu |
| Bravo | na’ve Ć5 |

--- stderr

raw log

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown -c cp1252 data-cp1252.csv
[exit 0] 0.96s  stdin=none
--- stdout (86 bytes, first 2000)
| station | notes |
| --- | --- |
| Alpha | café déjà vu |
| Bravo | naïve €5 |

--- stderr

raw log

Keeping images

By default images in a Word file are replaced by a shortened placeholder. --keep-data-uris keeps the full base64 image, which makes the output much larger:

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown docx-images-no-alt.docx
[exit 0] 1.12s  stdin=none
--- stdout (104 bytes, first 2000)
# Images

![](data:image/png;base64...)

Picture above has no alt text.

![](data:image/jpeg;base64...)

--- stderr

raw log

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown docx-images-no-alt.docx --keep-data-uris
[exit 0] 1.10s  stdin=none
--- stdout (34508 bytes, first 2000)
# Images

![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAFoCAIAAABIUN0GAAAgmUlEQVR4nO3dd1yV5f/H8QsPIgii4gAHigriwJl7pObELe7ZMCvN3KY2rF+WWZm5MsscmFsEBPeepaLIcCGomOYELARB4cDvj1PnSxykcw7IR+H1fPjwIfd9n/v+3Nd13+fNPbVI+OueAgAAeauQdAEAABREBDAAAAIIYAAABBDAAAAIIIABABBAAAMAIIAABgBAAAEMAIAAAhgAAAEEMAAAAghgAAAEEMAAAAgggAEAEEAAAwAggAAGAEAAAQwAgAACGAAAAQQwAAACCGAAAAQQwAAACCCAAQAQQAADACCAAAYAQAABDACAgIIewDGxsQsWLuntNajBSy2qunk0aNSy34BhPyz9+eHDh9KlCRg89DVnF/dV3mukC0FmQ4ePrFSlxsVLEdKF5DLxTa6zZy9nF/eAwO1SBWSSnp7e2bOXW416t27flq4Fz1yBDuANG31av9xx7rwFZ4LPxsTGpqSkxMTEnDwVNHvONy1f7rBr917pAv/Hq99gZxf39Rs2SxcCAfv2Hzxy9Fj3bp41a7hL14JckM3ubGFhMWXy+OTk5Nlfzs37wpDHCm4AL/t55dRpHyYkJlarWmXBd9+cOXXsauS5k78dmjP7s3LlnB48+PPt0eN8/QKky0RBp9VqZ30+x8LCYvKkcdK1IC907PBKvXp1tgZsCwkNk64Fz1YBDeAzwWe/+PIbpVSbl1vt3rnVq0/PsmXLFC5cuHy5ckOHDNy3O7BOndppaWnTP5h59Vq0dLEo0PbuO3D1WnTTJo2rVa0iXQvyyJBBA5RSPy1bIV0Inq0CGsBff/OdVqstW7bMksXfFSlSJNNYe3v7n5YuLlrUJikpacHC70UqBHS8V69VSvXv11u6EOSdHt09ixQpsnPX3nv37kvXgmeoIAZwdPT1X387qZR6843X7O3ts5ymYoXyA/r3VUoFBO5ISEjQD3evVd/ZxT0s7Fym6W/e/MPZxd3Zxf3x48f6gQkJCX7+gW+PHteuvad7rfruteq379T989lf378fY7hE/c0g165dnzz1g+Yt21V182jVpqOvX4Czi3vQ6WCl1PvTP9ItxdnFve0rXTJ+/NSp0+++N6lp87ZV3TxqerzU22vQKu81KSkpRi7FsJ7792OquNZ2dnEPDz9vODYx8VGN2g2cXdwPHzmWZQOatMTsi79z565LtVrOLu7nL1w0nH9SUlLN2g2dXdz3HziUaZQxbaIv749bt6bN+Fg3cf2GzUe/Oz4q6orh4kzaAIwv42lu3b597PhvhQoV6tI5iz5KTk5e+uPPPXr1r+nxUlU3j2Yt2vUfOHzFytUPHvypn8a8jfDqtejxE6c2atq6qptH0+ZtZ376+Z9//qWUSk9P37DRp7fXoFp1GlWvWb+316ADBw8/bSZRUVfGTZiim0njZi+/P/2j27fvGLPWOW83naCgM+MmTGne6hVX97p1GzTt3qvfgoVLnhZpxmwAOd+jG7zUwpjduVixYi+3bpmamurnz1Ww/MxSugABv504pfuHZ5csvtT0unp2XuW9JjU19UxwSJuXW5mxoC9mf7Nm3YaMQy5fjrx8OXLLFv+N672rV3cz/MjJU6cnT/0gOTlZ92NaWtp/LiU9Pf3/Zs1evmK1fkhKSsqZ4LNngs/6+Qeu/WW5nZ2dGUspU6a0Z5dOgdt2rFm34asvZ2Ua67c1IDHxUeXKlV5u3fI/K8xmicYU7+Tk2LpVi0OHj2728a0988NMc96xc09CYmLZsmXatmltdpsEnw2ZNmOm/jet2Li4bdt3HTp8LMBvo5ubqzErmCUzuiaT47+eUEq5ulYz/E3xyZMn/QYOCw0N1w/549atP27dOnHy1LlzF+Z9O0c30IyN8FTQmYyddev27ZWrfjl2/LdtW30mTZm2fcdu/ZRngs++PvKdpUsWeHbp
--- stderr

raw log

Plugins

Plugins are off unless you pass -p. With none installed, --list-plugins prints one line and exits 0, and -p changes nothing:

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown --list-plugins
[exit 0] 0.88s  stdin=none
--- stdout (151 bytes, first 2000)
Installed MarkItDown 3rd-party Plugins:

  * No 3rd-party plugins installed.

Find plugins by searching for the hashtag #markitdown-plugin on GitHub.


--- stderr

raw log

Azure Document Intelligence and Content Understanding flags

The options -d, -e, --use-cu, --cu-endpoint, --cu-analyzer and --cu-file-types select two Azure services. We did not test either service: it needs an Azure account we do not have. What we did test is what the command says without them:

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown -d report.docx
[exit 1] 0.89s  stdin=none
--- stdout (133 bytes, first 2000)
Document Intelligence Endpoint is required when using Document Intelligence. Pass -e/--endpoint or set MARKITDOWN_DOCINTEL_ENDPOINT.

--- stderr

raw log

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown --use-cu report.docx
[exit 1] 0.88s  stdin=none
--- stdout (130 bytes, first 2000)
Content Understanding Endpoint (--cu-endpoint) is required when using --use-cu. Pass --cu-endpoint or set MARKITDOWN_CU_ENDPOINT.

--- stderr

raw log

-d and --use-cu together are an argument error:

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown -d --use-cu report.docx
[exit 2] 0.89s  stdin=none
--- stdout (0 bytes, first 2000)

--- stderr
usage: SYNTAX:

    markitdown <OPTIONAL: FILENAME>
    If FILENAME is empty, markitdown reads from stdin.

EXAMPLE:

    markitdown example.pdf

    OR

    cat example.pdf | markitdown

    OR

    markitdown < example.pdf

    OR to save to a file use

    markitdown example.pdf -o example.md

    OR

    markitdown example.pdf > example.md
markitdown: error: argument --use-cu/--use-content-understanding: not allowed with argument -d/--use-docintel

raw log

One behaviour to know: pointing -d at an endpoint that does not exist did not fail for a DOCX; the file was converted locally and no error was printed.

markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown -d -e http://127.0.0.1:9 report.docx
[exit 0] 1.21s  stdin=none
--- stdout (851 bytes, first 2000)
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%
* Two stations need new batteries
* Nested item under batteries

## 1.2 Next steps

1. Order batteries
2. Recalibrate sensors
3. Publish dataset

# 2. Measurements

|  |  |  |  |
| --- | --- | --- | --- |
| Station | Rainfall (mm) | Uptime | Notes |
| Alpha | 412.5 | 99.2% | Battery low |
| Bravo | 388.0 | 97.8% | OK | stable |
| Charlie | 451.3 | 99.9% | New sensor |

## 2.1 Chart

![](data:image/png;base64...)

Figure 1: Quarterly revenue chart.

### 3. Deep heading level three

Contact: hello@example.org — see https://example.org/data for the dataset. Unicode check: café, naïve, 東京, Ω, emoji 🙂.

--- stderr

raw log

The 0.1.9 parser has no --docintel-model-id, --docintel-features or --docintel-query-fields option.

Environment variables

Variables the command reads
VariableRead byEffectVerified
MARKITDOWN_DOCINTEL_ENDPOINT-e / -ddefault for --endpoint (Document Intelligence)yes: c48, conversion proceeded with only the variable set
MARKITDOWN_CU_ENDPOINT--cu-endpoint / --use-cudefault for --cu-endpoint; without it the CLI prints 'Content Understanding Endpoint (--cu-endpoint) is required'yes: the message names it; with it set to an unreachable host the file still converted
EXIFTOOL_PATHimage and audio metadatapath to the ExifTool program to use instead of the one on PATHyes: a wrong path produced 'Failed to invoke exiftool at /nonexistent/exiftool'
AZURE_API_KEY--use-docintel, --use-cukey for the Azure services; otherwise a default Azure credential is usednot tested by us (no Azure account); read from the source
PYTHONUTF8, PYTHONIOENCODINGPython itselfoutput encoding when redirecting (not a MarkItDown variable)yes: see the Windows encoding page
Variables the command reads Source: Test T04, T41 · cli-env.csv · Download CSV

Exit codes

Measured without pipes, on three systems. Argument errors from the parser exit 2; the CLI's own one-line messages and unhandled conversion exceptions exit 1; success exits 0, including when the output is empty:

Exit codes by situation (ubuntu, macos, windows)
SituationLinuxmacOSWindowsLast line printed
markitdown --version000markitdown 0.1.9
-o writes a file000(nothing printed)
-o into a folder that does not exist111FileNotFoundError: [Errno 2] No such file or directory: 'nodir/out.md'
-o with no value222markitdown: error: argument -o/--output: expected one argument
-m with an invalid MIME type111Invalid MIME type: foo
-c with an unknown charset111Invalid charset: nonsense
-d without an endpoint111Document Intelligence Endpoint is required when using Document Intelligence. Pass -e/--endpoint or set MARKITD
--use-cu without an endpoint111Content Understanding Endpoint (--cu-endpoint) is required when using --use-cu. Pass --cu-endpoint or set MARK
-d and --use-cu together222markitdown: error: argument --use-cu/--use-content-understanding: not allowed with argument -d/--use-docintel
an unknown option222markitdown: error: unrecognized arguments: --nope
two files222markitdown: error: unrecognized arguments: data.csv
a folder111IsADirectoryError: [Errno 21] Is a directory: 'sub dir'
a missing file111FileNotFoundError: [Errno 2] No such file or directory: 'missing.docx'
an unsupported type (.gif)111markitdown._exceptions.UnsupportedFormatException: Could not convert stream to Markdown. No converter attempte
a zero-byte DOCX111 - DocxConverter threw BadZipFile with message: File is not a zip file
an encrypted PDF111 - PdfConverter threw PDFPasswordIncorrect with message:
-d with an unreachable endpoint (the file still converts)000Pilot Report: Field Station Alpha
Exit codes by situation (ubuntu, macos, windows) Source: Test T04 · run 43738688922 · cli-exit-codes.csv · Download CSV

What the CLI does not do

LimitationWhat to use instead
Several files or a folderA loop or the Python API
Image descriptions or OCR: the options of the OCR plugin's README are not CLI options, and --llm-client is an unknown argumentThe Python API
A password for an encrypted PDFRemove the password with another tool first
markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown --llm-client openai --llm-model gpt-4o report.docx
[exit 2] 0.93s  stdin=none
--- stdout (0 bytes, first 2000)

--- stderr
usage: SYNTAX:

    markitdown <OPTIONAL: FILENAME>
    If FILENAME is empty, markitdown reads from stdin.

EXAMPLE:

    markitdown example.pdf

    OR

    cat example.pdf | markitdown

    OR

    markitdown < example.pdf

    OR to save to a file use

    markitdown example.pdf -o example.md

    OR

    markitdown example.pdf > example.md
markitdown: error: unrecognized arguments: --llm-client report.docx

raw log

Shell differences in one place

Quote any path with spaces ("my file.docx"). > and | behave differently on Windows PowerShell 5.1 (it writes UTF-16), PowerShell 7 and Command Prompt: use -o. In zsh and bash a wildcard such as *.docx is expanded by the shell, so it becomes several arguments. See Windows and macOS.

Common CLI errors

MessageCauseGo to
markitdown: error: unrecognized argumentsA second file, a wildcard, or a flag from an old tutorialOne file per run
IsADirectoryErrorYou passed a folderBatch conversion
FileNotFoundErrorWrong path, or a missing output folderPaths that fail
Invalid charset / Invalid MIME typeA bad -c or -m valueType and charset hints
Document Intelligence Endpoint is required-d without -eAzure flags
UnsupportedFormatExceptionNo converter for the typeMissing dependency and unsupported types
…threw MissingDependencyExceptionAn extra is not installedThe same page
markitdown 0.1.9 · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15
$ markitdown unsupported.gif
[exit 1] 0.90s  stdin=none
--- stdout (0 bytes, first 2000)

--- stderr
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.13.18/x64/bin/markitdown", line 6, in <module>
    sys.exit(main())
             ~~~~^^
  File "/opt/hostedtoolcache/Python/3.13.18/x64/lib/python3.13/site-packages/markitdown/__main__.py", line 257, in main
    result = markitdown.convert(
        args.filename, stream_info=stream_info, keep_data_uris=args.keep_data_uris
    )
  File "/opt/hostedtoolcache/Python/3.13.18/x64/lib/python3.13/site-packages/markitdown/_markitdown.py", line 349, in convert
    return self.convert_local(source, stream_info=stream_info, **kwargs)
           ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.13.18/x64/lib/python3.13/site-packages/markitdown/_markitdown.py", line 403, in convert_local
    return self._convert(file_stream=fh, stream_info_guesses=guesses, **kwargs)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.13.18/x64/lib/python3.13/site-packages/markitdown/_markitdown.py", line 693, in _convert
    raise UnsupportedFormatException(
        "Could not convert stream to Markdown. No converter attempted a conversion, suggesting that the filetype is simply not supported."
    )
markitdown._exceptions.UnsupportedFormatException: Could not convert stream to Markdown. No converter attempted a conversion, suggesting that the filetype is simply not supported.

raw log