---
collection: tools
slug: markitdown
locale: en
title: "MarkItDown, turn a PDF into Markdown with a right-click before you upload it to AI"
summary: "A free Microsoft tool that converts PDF, Word and Excel to Markdown. With a community add-on it becomes a right-click in Windows, and the model receives only the text."
publishedAt: 2026-11-08
status: live
tags: ["tools","Markdown","PDF","Tokens","Windows"]
canonical: https://codebelkalam.com/en/tools/markitdown
---

# MarkItDown, turn a PDF into Markdown with a right-click before you upload it to AI

A free Microsoft tool that converts PDF, Word and Excel to Markdown. With a community add-on it becomes a right-click in Windows, and the model receives only the text.

## The short version

When you upload a PDF to Claude, it reads every page twice: once as an image and once as text, and both reads count against your usage. Converting the file to Markdown first means only the text arrives. In our sample the result was roughly half the tokens, but that is one sample, not a promise, and the details are below.

**MarkItDown** is a free, MIT-licensed tool from Microsoft that converts PDF, Word, Excel, PowerPoint and more into Markdown. To run it with a right-click on Windows we use an open-source community add-on called **Right Click to Markdown**, which is not from Microsoft.

> **Warning:**
>
> The add-on is a third-party project. It writes an entry into your account's Windows registry and runs scripts on your machine. Read the files in its `scripts/windows/` folder before installing, or ask a coding agent to explain them to you.

## Why does this save tokens?

A page in a PDF reaches the model twice: an image of the page as it looks, and the text extracted from it. The image is the expensive part. A Markdown file is text only, with headings, lists and tables, and no page images.

We measured this on Claude Haiku inside Claude Code on 8 November 2026. We took ten pages from NASA's systems engineering handbook (a 297-page PDF), read them once as a PDF and once as their converted Markdown text, and subtracted each run's fixed session baseline.

| Format | Tokens for ten pages | Roughly per page |
|---|---|---|
| PDF | 26,349 | 2,635 |
| Markdown | 12,905 | 1,290 |

So Markdown cost about 43 to 49% of the PDF in this sample. Treat the number with care:

- It is ten pages of one file, with one model and one tool. Pages full of images and charts will give a different ratio.
- The Markdown figure includes the line numbers the reading tool adds, so it is slightly higher than what you would pay by pasting the text directly.
- File size in megabytes tells you nothing about tokens. Most of a PDF's weight is fonts, images and compression, not words.

To understand tokens themselves, see [How does AI think?](/en/learn/what-is-a-token). For how much a model can hold in one conversation, see [Why does AI forget what you told it?](/en/learn/context-and-memory).

## What do you lose in the conversion?

Know this before you rely on the method:

- **Images and charts are dropped.** Markdown is text, so the model will not see a graph or a diagram. If your question is about those, upload the original PDF.
- **A scanned PDF may come out nearly empty.** A file that is only page images has no text layer to extract. We have not tested this case ourselves, so try it on one file before depending on it.
- **Formatting is not perfect.** In our test the handbook's cover came out as broken text and the table of contents kept its dot leaders. The tool is built to feed models readable text, not to produce a beautiful document for people, as its own repository says.

## How do you install it?

There are two ways.

### Way one: let an agent install it

Send these two links to Claude Code or Codex along with the request below:

- [microsoft/markitdown](https://github.com/microsoft/markitdown): the converter itself.
- [qCanoe/right-click-to-markdown](https://github.com/qCanoe/right-click-to-markdown): the Windows right-click add-on.

```prompt
Install MarkItDown from these two links and add it to the Windows right-click menu.
```

This is the fastest route, but it lets the agent run commands on your machine.

### Way two: install it by hand

### 1.

Install Python 3.10 or newer from its official site, and tick `Add python.exe to PATH` during setup.

### 2.

Open a terminal and paste the command below, then wait for it to finish. It pulls in many libraries, so it can take a while.

```bash
python -m pip install "markitdown[all]"
```

To check that it worked, run `markitdown --version`.

### 3.

Download the add-on's repository from GitHub as a ZIP and unzip it, then put the folder somewhere permanent that you will not move afterwards. The install records absolute paths, so if you move the folder you must install again.

### 4.

Open the folder, type `powershell` in the address bar and press Enter, then paste the install command below.

```powershell
.\scripts\windows\install-markitdown-context-menu.ps1
```

If your execution policy blocks the script, the repository suggests this instead:

```powershell
powershell.exe -NoProfile -ExecutionPolicy Bypass -File ".\scripts\windows\install-markitdown-context-menu.ps1"
```

If the new entry does not appear straight away, restart Windows Explorer from Task Manager, or sign out and back in.

## How do you use it?

Right-click a PDF, Word or Excel file and choose **Convert to Markdown (MarkItDown)**. On Windows 11 you will find it under **Show more options**, because the add-on registers a classic-style entry that the short Windows 11 menu does not show.

When the conversion finishes, a `.md` file with the same name appears in the same folder. Upload that to the model instead of the PDF. Conversion time varies with the file size and your machine.

## Before you depend on it

- **MarkItDown as a tool.** MarkItDown itself runs from the command line regardless of the add-on: `markitdown report.pdf -o report.md`.
- **The add-on is Windows only.** On another system, use the command line directly.
- **Some features go online.** The tool's repository says image description and audio transcription rely on web-hosted services.

## Related lessons

- [How does AI think?](/en/learn/what-is-a-token): what a token is and why what you send is counted.
- [Why does AI forget what you told it?](/en/learn/context-and-memory): how much fits in one conversation.
