I have a folder full of PDFs I paid for. Courses, swipe files, brand-deal decks, the ebook a guy on Instagram swore would change my life. For a long time, when I wanted AI to help me use them, I'd drag the PDF into the chat and hope.
Sometimes it worked. A lot of the time it didn't. Steps came back out of order. Tables turned into word soup. Whole sections just went missing, and I didn't notice until I was halfway through building something off bad notes.
The fix turned out to be boring and free: convert the file to plain text first, check it with my own eyes, then hand it to Claude. This is that setup. About ten minutes the first time, ten seconds every time after.
What's inside:
- The one-time setup (no coding experience needed)
- The single command that converts a file
- Copy-paste prompts for turning a converted file into something useful
- Fixes for the errors you'll most likely hit
- A final check so you know it actually worked
Why bother converting first
PDFs are built for printing, not reading. Under the hood, the text is scattered around the page in little pieces, and AI has to guess the order. Usually it guesses right. When it guesses wrong, you won't know unless you go look.
Markdown is just plain text with a few symbols for structure. A # means heading, a - means bullet. Converting your PDF to a Markdown file (it ends in .md) gives you three things:
- The structure survives. Headings, lists, and tables stay headings, lists, and tables.
- You can check it. Open the file in any text editor and you're reading exactly what Claude will read. No guessing.
- It's reusable. Drop the same
.mdfile into a Claude Project, Claude Code, or a custom GPT, and it works the same everywhere. It's also a fraction of the size of the PDF, so it eats less of the AI's attention.
The tool that does this is MarkItDown, a free, open-source converter from Microsoft. It runs on your own computer, so the file never gets uploaded anywhere during conversion. It also handles Word docs (.docx), PowerPoint decks (.pptx), Excel sheets, and more, so one setup covers almost everything in your downloads folder.
Before you start
- Python 3.10 or newer. Open Terminal (Mac) or Command Prompt (Windows) and type
python3 --version(on Windows,python --version). If you get a version number of 3.10 or higher, you're set. If not, grab the installer from python.org. - One test file. Pick a PDF you know well, so you can spot if something's off.
- An AI tool to hand it to. I use Claude, but any of them can read a
.mdfile.
That's it. No account, no API key, no cost.
Words you'll see
- Terminal. The text window where you type commands. On Mac it's an app called Terminal. On Windows, use Command Prompt or PowerShell.
- Markdown /
.mdfile. Plain text with light formatting symbols. Opens in any text editor. - Virtual environment. A private little box for a tool's files, so it doesn't tangle with anything else on your computer. You make it once per folder.
- Scanned PDF. A PDF that's really just photos of pages. There's no text inside for a converter to grab.
- OCR. Short for optical character recognition. Software that reads text out of an image.
The setup
Step 1: Open Terminal in the folder with your PDF
Make a folder for this (I call mine ai-ready) and put your test PDF in it.
On Mac, type cd (with a space after it), drag the folder into the Terminal window, and press Enter. On Windows, open the folder, click the address bar, type cmd, and press Enter.
Step 2: Make a virtual environment
Paste this and press Enter:
python3 -m venv .venv
Then turn it on. On Mac:
source .venv/bin/activate
On Windows:
.venv\Scripts\activate
You'll see (.venv) appear at the start of the line. That means it's on.
Step 3: Install MarkItDown
pip install 'markitdown[all]'
On Windows, use double quotes instead: pip install "markitdown[all]". Give it a minute. You only do this once per folder.
Step 4: Convert your file
Swap in your file's name and run:
markitdown [YOUR-FILE].pdf -o [YOUR-FILE].md
A new .md file shows up in the same folder.
Step 5: Read it yourself first
Don't skip this. Open the .md file in any text editor (TextEdit, Notepad, VS Code, whatever you have) and skim it. Are the sections in order? Did the tables come through? Is anything missing?
If the file is empty or nearly empty, you've got a scanned PDF. Jump to the section below on scanned files.
Step 6: Hand it to Claude
Upload the .md file instead of the PDF, then use one of the prompts below.
Every time you open a new Terminal window, run the activate command from Step 2 again before using markitdown. The install sticks around. You just have to turn the box back on.
Copy these prompts
Turn a course into an action plan
I've attached [YOUR-FILE].md, converted from a course I bought.
Read only the section called [SECTION NAME OR NUMBER].
Turn it into a step-by-step checklist I can actually follow this week.
Use only what's in the file. Don't add advice of your own.
For each step, quote the heading it came from.
If any step looks cut off, out of order, or unclear, flag it
instead of guessing.
Pull the money parts out of a brand-deal deck or contract
I've attached [YOUR-FILE].md. List every deliverable, deadline,
payment amount, usage right, and exclusivity clause in it.
Quote the exact wording for each one and say where it appears.
If something I'd normally expect to see is missing, tell me.
Don't summarize anything you can't point to in the file.
Turn an old lead magnet into new content
I've attached [YOUR-FILE].md, a lead magnet I wrote. Give me
10 short-form video hooks and 3 email ideas pulled straight from
the points inside it. For each one, note which section it came
from so I can check it against the original.
The pattern in all three is the same: use only the file, quote where it came from, flag gaps instead of guessing. That's what keeps the AI from filling holes with confident nonsense.
Scanned PDFs
If your converted file came out empty, the PDF is probably images of pages, not real text. You've got two easy options:
- Let Claude read it directly. Claude can look at PDF pages as images. Upload the original PDF and ask it to transcribe the pages to Markdown word for word. Then save what it gives you as a
.mdfile and check it like in Step 5. Fine for a few pages. - Use MarkItDown's OCR add-on. For longer files, MarkItDown has an OCR plugin that sends page images to an AI model to read. It needs an API key and costs a little per page, and the setup changes from time to time, so follow the current instructions on the MarkItDown GitHub page.
Either way, the rule doesn't change: read the result yourself before you trust it.
Things worth knowing
- Same command, other files.
markitdown deck.pptx -o deck.mdandmarkitdown notes.docx -o notes.mdwork exactly the same way. - Convert a whole folder at once (Mac). This loop converts every PDF in the folder:
for f in *.pdf; do markitdown "$f" -o "${f%.pdf}.md"; done
- It's built for AI, not for looks. The
.mdwon't look like the pretty PDF. Fonts, colors, and images are gone. That's the point. You're keeping the words and the structure. - Respect what you bought. Converting a course you paid for so you can actually use it is fair game. Reposting someone else's paid material isn't.
If something goes wrong
- "command not found: markitdown" → Your virtual environment isn't on. Run the activate command from Step 2, then try again.
- "externally-managed-environment" → You skipped Step 2. Make the virtual environment, turn it on, then install.
- The
.mdfile is empty → It's a scanned PDF. See the scanned PDFs section. - Tables came out messy → Fix the one you need by hand, or ask Claude: "Rebuild the table on page [X] of the original as a clean Markdown table."
- "python3: command not found" → Python isn't installed yet. Grab it from python.org and restart Terminal.
Final check
You're done when all three of these are true:
- You can open the
.mdfile and read your test section in the right order. - Claude's checklist matches what's actually in that section.
- Claude didn't add any steps that aren't in the file.
If all three pass, every PDF in your downloads folder just became something your AI can work with properly.
Built for beginners sitting on a pile of PDFs they paid for and never used. No team, no agency, AI is my staff.
Want more workflows like this? They're all in the Resource Hub.