Install
Install MarkItDown on Windows 11
By the end of this page you will have a markitdown command that works in a PowerShell window and a Word file converted to Markdown with every accent intact. We ran each step on Windows runners (Windows Server 2025, which is the Windows 11 code base, Server 2022 and Windows 11 on ARM64); PowerShell comes first and Command Prompt is shown where it differs. We could not capture screenshots of the Windows desktop in our test setup, so the steps are text and terminal output only.
Short answer
If you already have Python 3.10 or newer, open PowerShell in your folder and run:
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install "markitdown[all]"
markitdown --versionpython -m venv .venv
.venv\Scripts\activate.bat
pip install "markitdown[all]"
markitdown --versionAlways save results with -o, never with >: see why.
Tested with markitdown 0.1.9 · Python Windows Server 2025 (Windows 11 era), Windows Server 2022, Windows 11 Enterprise ARM64 · PowerShell 7.6, Windows PowerShell 5.1, Command Prompt, Git Bash · Python 3.13 (GitHub runners) · 2026-11-15 · evidence: windows-latest.log, windows-2022.log, windows-11-arm.log, windows-11-arm-extras.log
The short version
Step 1: Install Python (skip if py -0p shows 3.10 or newer)
Which Python to install
We tested the winget route: it installs the python.org build silently, registers it with the py launcher and adds both the Python folder and its Scripts folder to your user PATH. We did not test the python.org installer by hand or the Microsoft Store build, so we cannot compare them; winget is the one we can show working.
winget install --id Python.Python.3.12 --exact
py -0ppy is the Python launcher: it finds installed Pythons even when python is not on PATH. MarkItDown needs 3.10 to 3.14 (version rules and the Python 3.9 trap).
What the installer looks like
The box that adds Python to PATH is unchecked until you tick it. We captured this on a Windows Server 2025 runner, not on Windows 11, so the window frame can differ on your machine.
Step 2: Open PowerShell in your folder
In File Explorer, right-click inside the folder (or the folder itself) and choose Open in Terminal. Everything below runs in PowerShell 7 and in Windows PowerShell 5.1; where Command Prompt differs it has its own tab.
Step 3: Create and activate a virtual environment
A virtual environment keeps MarkItDown and its dependencies in a .venv folder next to your files, so nothing touches your system Python.
Activate it, and the red error you may see
PowerShell may refuse to run the activation script. This is what it prints when script execution is switched off:
PS> .\v\Scripts\Activate.ps1
$ .\v\Scripts\Activate.ps1
& : File D:\a\work\work\results\windows-latest\_c_activate_restricted.ps1 cannot be loaded
because running scripts is disabled on this system. For more information, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:74
+ ... d -Force; & 'D:\a\work\work\results\windows-lat ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess The fix applies to the current window only and disappears when you close it:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned
.venv\Scripts\Activate.ps1In Command Prompt activation uses a batch file and no policy is involved: use the Command Prompt tab above.
The line from most tutorials, source .venv/bin/activate, is for Linux and macOS. On Windows it fails in PowerShell and in Command Prompt:
PS> source v/bin/activate
$ source v/bin/activate
source: D:\a\work\work\results\windows-latest\_c_activate_bash_style_pwsh.ps1:1
Line |
1 | source v/bin/activate
| ~~~~~~
| The term 'source' is not recognized as a name of a cmdlet, function, script file, or executable program. Check
| the spelling of the name, or if a path was included, verify that the path is correct and try again. How to tell it is active
The prompt starts with (.venv), and Get-Command python shows a path inside your .venv\Scripts folder.
The error as it appears
Step 4: Install MarkItDown
Use the install line from the first block. The quotes matter in one place:
| Shell | Form | Result | Error |
|---|---|---|---|
| PowerShell 7 | "markitdown[pdf]" | works | |
| PowerShell 7 | 'markitdown[pdf]' | works | |
| PowerShell 7 | markitdown[pdf] (no quotes) | works | |
| Windows PowerShell 5.1 | "markitdown[pdf]" | works | |
| Windows PowerShell 5.1 | 'markitdown[pdf]' | works | |
| Windows PowerShell 5.1 | markitdown[pdf] (no quotes) | works | |
| Command Prompt | "markitdown[pdf]" | works | |
| Command Prompt | 'markitdown[pdf]' | fails | ERROR: Invalid requirement: "'markitdown[pdf]'": Expected package name at the start of dependency specifier |
| Command Prompt | markitdown[pdf] (no quotes) | works | |
| Git Bash | "markitdown[pdf]" | works | |
| Git Bash | 'markitdown[pdf]' | works | |
| Git Bash | markitdown[pdf] (no quotes) | works |
Double quotes work in every shell. Single quotes fail in Command Prompt, because it passes them to pip literally:
$ pip install -q 'markitdown[pdf]'
ERROR: Invalid requirement: "'markitdown[pdf]'": Expected package name at the start of dependency specifier
'markitdown[pdf]'
^ Then check it: markitdown --version prints markitdown 0.1.9. The [all] install took 34 to 40 seconds on the Windows runners (one Python 3.10 run took 75) and about 340 MB; choose fewer extras to make that smaller.
Step 5: Convert your first file
Download report.docx into your folder, then:
markitdown report.docx -o report.md
markitdown report.docxThe first line writes report.md, which you can open in Notepad or VS Code; the second prints the result in the window. What to do next: the quickstart.
Always save with -o on Windows
| Shell | How it was saved | File is | 東京 | Emoji | café |
|---|---|---|---|---|---|
| cmd | > out | Windows-1252 | lost | lost | kept |
| cmd | -o | UTF-8 | kept | kept | kept |
| pwsh 7 | > out | Windows-1252 | lost | lost | kept |
| pwsh 7 | | Out-File | UTF-8 | lost | lost | lost |
| pwsh 7 | | Out-File -Encoding utf8 | UTF-8 | lost | lost | lost |
| pwsh 7 | | Set-Content | UTF-8 | lost | lost | lost |
| pwsh 7 | -o | UTF-8 | kept | kept | kept |
| pwsh 7 | > out after setting OutputEncoding to UTF-8 | Windows-1252 | lost | lost | kept |
| Windows PowerShell 5.1 | > out | UTF-16 | lost | lost | lost |
| Windows PowerShell 5.1 | | Out-File | UTF-16 | lost | lost | lost |
| Windows PowerShell 5.1 | | Out-File -Encoding utf8 | UTF-8 + BOM | lost | lost | lost |
| Windows PowerShell 5.1 | | Set-Content | UTF-8 | lost | lost | lost |
| Windows PowerShell 5.1 | -o | UTF-8 | kept | kept | kept |
| Windows PowerShell 5.1 | > out after setting OutputEncoding to UTF-8 | UTF-16 | lost | lost | lost |
Setting PYTHONUTF8=1 first makes most redirects safe, but not Windows PowerShell 5.1 (it still writes UTF-16 or loses characters), so the rule stays: use -o. The complete experiment with code-page variants is on the UnicodeEncodeError page. We could not test a real non-Western Windows installation, only emulated code pages.
The file written by > in Windows PowerShell 5.1 opens as UTF-16 LE in Notepad (see its status bar) and every non-Latin letter is a question mark. The -o version of the same conversion keeps the text (encoding errors).
"markitdown is not recognized" after a successful install
Three causes, most likely first: you are in a window where the environment is not active; the install went to a user Scripts folder that is not on PATH; the window was open before Python was installed. The fastest workaround needs no PATH at all:
python -m markitdown --versionWe tried to reproduce the PATH warning with pip install --user on the runners and could not, because their user Scripts folder was already on PATH (it is %APPDATA%\Python\Python313\Scripts); on a machine where it is not, pip prints that folder in a warning at the end. The full diagnosis is on the command-not-found page. The first fix is a virtual environment or a tool installer, not editing PATH by hand.
The PATH variable is edited here:
Prefer one command, no environments? Use uv or pipx
These put markitdown on your PATH once, with nothing to activate. Both were run end to end on Windows (see the install page, which also explains the uv 0.12 requirement).
winget show --id astral-sh.uv --exact
uv tool install --python 3.13 "markitdown[all]"
uv tool update-shellpipx install --fetch-missing-python --python 3.13 "markitdown[all]"
pipx ensurepathThings that are different on Windows
Line endings
Files written with -o use Windows line endings: our test output had 36 CRLF in 886 bytes. The text is otherwise identical to Linux and macOS output (the cross-platform test). It matters for Git diffs and hashes.
Paths
A file name with spaces and Japanese characters (my report 東京.docx) converted normally and -o wrote a similarly named file. Quote paths that contain spaces.
Network paths: the upstream release notes suggest UNC and device paths are rejected from 0.1.8. We did not see that. Both a UNC path (through the loopback share \\localhost\D$) and a \\?\ device path converted on 0.1.9, on the command line and from Python, and on 0.1.7:
PS> markitdown "\\localhost\D$\...\my report 東京.docx"
Pilot Report: Field Station Alpha
# 1. Summary
This report covers **three sites** during *spring 2026* <u>with underlined</u> ~~and struck text.~~ raw log · Same on 0.1.9 and, run separately, on 0.1.7
markitdown "\\server\share\report.docx"We only tested the loopback share, not a remote file server; a mapped drive test did not run properly, so we say nothing about it.
ffmpeg and ExifTool
Only audio (MP3, M4A, MP4) needs ffmpeg and only image and audio metadata needs ExifTool. Both exist in winget and installed on our runner:
winget install --id Gyan.FFmpeg --exact
winget install --id OliverBetz.ExifTool --exact$ winget install --id Gyan.FFmpeg --exact; winget install --id OliverBetz.ExifTool --exact
Path environment variable modified; restart your shell to use the new value.
Successfully installed
Successfully installed
C:\Users\runneradmin\AppData\Local\Microsoft\WinGet\Links\ffmpeg.exe
C:\Users\runneradmin\AppData\Local\Programs\ExifTool\ExifTool.exe
ffmpeg version 9.0.2-full_build-www.gyan.dev Copyright (c) 2000-2026 the FFmpeg developers
13.61 winget adds them to PATH for new windows only. The ffmpeg page explains the warning.
Windows on ARM
On a Windows 11 ARM64 machine with Python 3.13 for ARM64, every extra installed except pdf, and therefore all. pip picks the newest cryptography, which has no ARM64 wheel, tries to build it from source and fails for lack of OpenSSL:
$ pip install "markitdown[pdf]"
ERROR: Failed building wheel for cryptography
[notice] A new release of pip is available: 26.2.2 -> 26.3
[notice] To update, run: C:\a\work\work\v7\Scripts\python.exe -m pip install --upgrade pip
Failed to build cryptography
error: failed-wheel-build-for-install Asking pip for wheels only makes it choose the older cryptography that does have one, and everything installs and converts:
pip install --only-binary=:all: "markitdown[all]"$ pip install --only-binary=:all: "markitdown[all]"
### pip install --only-binary=:all: markitdown[all] [pwsh]
[exit 0]
version: markitdown 0.1.9
cryptography 46.0.3 Windows 10 and older
We ran the same steps on Windows Server 2022, which shares its code base with Windows 10 version 21H2; everything passed. We did not test Windows 10 itself. Python 3.13 supports Windows 8.1 and later and Python 3.14 and 3.15 support Windows 10 and later, according to the Python documentation, and python.org marks its 3.13 installers as not usable on Windows 7.
Should you use WSL instead?
Use WSL if you already work in it or need Linux tools; otherwise native Windows is simpler, and desktop apps such as Claude Desktop launch Windows programs. We did not test WSL. The Linux steps are on the Linux page.
Is there a Windows app or a download from Microsoft?
No installer, no Store app and no winget package for MarkItDown exists. On the test date winget search markitdown answered:
$ winget search markitdown
No package found matching input criteria. A search of the Microsoft Store source for "microsoft markitdown" found nothing either. Programs with buttons: third-party apps. To convert a file now with no install: the online converter.
Next steps on Windows
Checklist: Python 3.10 or newer shows in a new window; the environment is active or the tool is installed; markitdown --version prints; the sample converted with -o; the file opens with accents intact.