Code Bel Kalam
Menu
← tools

$ tools

Live

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.

toolsMarkdownPDFTokensWindows
Published
2026-11-08
Vendor
Microsoft
Pricing
Free

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.

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.

FormatTokens for ten pagesRoughly per page
PDF26,3492,635
Markdown12,9051,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?. For how much a model can hold in one conversation, see Why does AI forget what you told it?.

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:

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

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

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.

python -m pip install "markitdown[all]"

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

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.

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

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

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

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

Open the tool