# Install MarkItDown on Windows 11

> From no Python to a converted file in PowerShell, with the PATH fix, the activation error and why > corrupts your output. Tested on Windows runners.

Source: https://markitdown.dev/install/windows/ · Updated 2026-11-15·Upstream source ↗

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:
> 
> **PowerShell**
> 
> ```bash
> python -m venv .venv
> .venv\Scripts\Activate.ps1
> pip install "markitdown[all]"
> markitdown --version
> ```
> 
> **Command Prompt**
> 
> ```bash
> python -m venv .venv
> .venv\Scripts\activate.bat
> pip install "markitdown[all]"
> markitdown --version
> ```
> 
> Always save results with `-o`, never with `>`: see [why](#redirect).

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](https://markitdown.dev/evidence/T28/windows-latest.log), [windows-2022.log](https://markitdown.dev/evidence/T28/windows-2022.log), [windows-11-arm.log](https://markitdown.dev/evidence/T28/windows-11-arm.log), [windows-11-arm-extras.log](https://markitdown.dev/evidence/T28/windows-11-arm-extras.log)

## The short version

*Diagram: Five stations, three places to fall off. Install Python, open a new terminal, create and activate an environment, install MarkItDown, convert. The three failures on Windows: the command is not recognized because the terminal or environment is wrong, activation is blocked by the execution policy, and redirecting output with the greater-than sign loses characters.*

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

```bash
winget install --id Python.Python.3.12 --exact
py -0p
```

> **Open a new window after installing Python:** A window that was open before the install keeps the old PATH. Close it and open a new one, then run py -0p to see every Python on the machine.

`py` 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](https://markitdown.dev/install/)).

### What the installer looks like

![The first screen of the Python 3.13.1 installer with the Add python.exe to PATH box unchecked](https://markitdown.dev/_astro/win-python-installer.BaJ-b2eU_1XwFGQ.webp)

The Python installer's first screen: the PATH box is unchecked by default · Windows Server 2025 runner (build 26100) · Python 3.13.1 installer · 2026-11-16

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:

```console
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
```

*markitdown n/a · Windows PowerShell 5.1 · policy Restricted (process scope) · Server 2025 runner · 2026-11-15*

The fix applies to the current window only and disappears when you close it:

```bash
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned
.venv\Scripts\Activate.ps1
```

> **What that line does:** -Scope Process changes the policy for this window alone; your machine and your account keep their settings. RemoteSigned lets scripts you created on this machine run. We never need to change the machine-wide policy, and you should not either. On the runners the machine policy was already RemoteSigned, so the error above was produced by setting the process policy to Restricted.

In 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:

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

*markitdown n/a · PowerShell 7.6 · Server 2025 runner · 2026-11-15*

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

![A PowerShell window with the red error that running scripts is disabled on this system when activating a virtual environment](https://markitdown.dev/_astro/win-activation-policy-error.CsKahEpr_YURKQ.webp)

Activating a virtual environment with the Restricted execution policy · Windows Server 2025 runner (build 26100) · PowerShell 5.1 policy Restricted · 2026-11-16

## Step 4: Install MarkItDown

Use the install line from the first block. The quotes matter in one place:

Does pip install markitdown\[pdf\] work? Each form in each Windows shell
| 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 |  |

*Does pip install markitdown[pdf] work? Each form in each Windows shell Source: evidence/T28/windows-latest.log · windows-quoting.csv · Download CSV*

Double quotes work in every shell. Single quotes fail in Command Prompt, because it passes them to pip literally:

```console
$ pip install -q 'markitdown[pdf]'
ERROR: Invalid requirement: "'markitdown[pdf]'": Expected package name at the start of dependency specifier
    'markitdown[pdf]'
    ^
```

*markitdown pip 26.2.2 · Command Prompt · Server 2025 runner · 2026-11-15*

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](https://markitdown.dev/install/extras/) to make that smaller.

## Step 5: Convert your first file

Download [report.docx](https://markitdown.dev/samples/report.docx) into your folder, then:

```bash
markitdown report.docx -o report.md
markitdown report.docx
```

The 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](https://markitdown.dev/quickstart/).

![A PowerShell window in Windows Terminal showing markitdown 0.1.9 and the first lines of a converted Word report](https://markitdown.dev/_astro/win-first-conversion.Dgg04sY2_Z1czkuB.webp)

markitdown report.docx -o report.md, then the first lines of report.md · Windows Server 2025 runner (build 26100) · markitdown 0.1.9 · 2026-11-16

## Always save with `-o` on Windows

> **Saving with > silently replaces characters:** Our test document contains 東京, an emoji and café. With the default settings, markitdown report.docx > report.md lost the Japanese and the emoji in every shell, and Windows PowerShell 5.1 even wrote the file as UTF-16. -o kept everything.

One Word file saved different ways (default settings, Windows runners)
| 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 |

*One Word file saved different ways (default settings, Windows runners) Source: evidence/T17 · run 43740808452 · windows-redirect-table.csv · Download CSV*

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](https://markitdown.dev/errors/unicodeencodeerror/). We could not test a real non-Western Windows installation, only emulated code pages.

![Notepad showing a converted file with Arabic, Hebrew, Cyrillic and Greek text intact, saved as UTF-8](https://markitdown.dev/_astro/win-notepad-correct.pjM83u8E_1XbgPw.webp)

Converted with -o: the same file, text intact, UTF-8 · Windows Server 2025 runner (build 26100) · markitdown 0.1.9, Notepad · 2026-11-16

![Notepad showing a converted file in which the non-Latin letters have become question marks, saved as UTF-16 LE](https://markitdown.dev/_astro/win-notepad-redirect-garbled.-3GhiwiH_Z27dXBU.webp)

Converted with > in Windows PowerShell 5.1: the letters are lost and the file is UTF-16 · Windows Server 2025 runner (build 26100) · markitdown 0.1.9, Windows PowerShell 5.1 · 2026-11-16

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](https://markitdown.dev/errors/unicodeencodeerror/)).

## "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:

```bash
python -m markitdown --version
```

We 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](https://markitdown.dev/errors/command-not-found/). The first fix is a virtual environment or a tool installer, not editing PATH by hand.

The PATH variable is edited here:

![The Windows Environment Variables dialog with the user Path variable selected](https://markitdown.dev/_astro/win-path-dialog.skgnON2H_1Ebfkf.webp)

Where the PATH variable is edited · Windows Server 2025 runner (build 26100) · Windows build 26100 · 2026-11-16

## 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](https://markitdown.dev/install/), which also explains the uv 0.12 requirement).

```bash
winget show --id astral-sh.uv --exact
uv tool install --python 3.13 "markitdown[all]"
uv tool update-shell
```

```bash
pipx install --fetch-missing-python --python 3.13 "markitdown[all]"
pipx ensurepath
```

## Things 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](https://markitdown.dev/formats/)). 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:

```console
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.~~
```

*markitdown 0.1.9 · PowerShell 7.6 · Server 2025 runner · 2026-11-15*

```bash
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:

```bash
winget install --id Gyan.FFmpeg --exact
winget install --id OliverBetz.ExifTool --exact
```

```console
$ 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
```

*markitdown ffmpeg 9.0.2, ExifTool 13.61 · Windows Server 2025 runner · winget · 2026-11-15*

winget adds them to PATH for new windows only. [The ffmpeg page](https://markitdown.dev/errors/ffmpeg/) 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:

```console
$ 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
```

*markitdown 0.1.9 · Windows 11 Enterprise ARM64 runner · Python 3.13 ARM64 · 2026-11-15*

Asking pip for wheels only makes it choose the older `cryptography` that does have one, and everything installs and converts:

```bash
pip install --only-binary=:all: "markitdown[all]"
```

```console
$ 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
```

*markitdown 0.1.9 · Windows 11 Enterprise ARM64 runner · Python 3.13 ARM64 · 2026-11-15*

### 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](https://docs.python.org/3.13/using/windows.html), 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](https://markitdown.dev/install/linux/).

## 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:

```console
$ winget search markitdown
No package found matching input criteria.
```

*markitdown n/a · Windows Server 2025 runner · winget · 2026-11-15*

A search of the Microsoft Store source for "microsoft markitdown" found nothing either. Programs with buttons: [third-party apps](https://markitdown.dev/apps/). To convert a file now with no install: [the online converter](https://markitdown.dev/online/).

## Next steps on Windows

-   [Convert a whole folder with PowerShell](https://markitdown.dev/batch/)
-   [Connect to Claude Desktop](https://markitdown.dev/mcp/claude-desktop/)
-   [CLI reference](https://markitdown.dev/cli/)
-   [Fix an error](https://markitdown.dev/errors/)

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.

## Related

- [Install MarkItDown](https://markitdown.dev/install/): Every install route, the Python rules and the command builder.
- [UnicodeEncodeError and garbled output on Windows](https://markitdown.dev/errors/unicodeencodeerror/): The full experiment on why redirected output loses characters.
- [markitdown is not recognized / command not found](https://markitdown.dev/errors/command-not-found/): Full diagnosis when markitdown is not recognized.
- [MCP in Claude Desktop](https://markitdown.dev/mcp/claude-desktop/): Connect MarkItDown to Claude Desktop on Windows.
- [Convert a folder](https://markitdown.dev/batch/): Convert a whole folder with PowerShell.

---
Independent guide to the open-source MarkItDown library. Not affiliated with or endorsed by Microsoft. Official source: https://github.com/microsoft/markitdown
