Convert PDF to Markdown

Drop in a PDF and get clean Markdown back in a few seconds. The text, headings, lists and tables come through ready to paste into ChatGPT, Claude, or any AI tool, or to feed your RAG pipeline. It runs in your browser, so the file stays on your device.

How it works

How to convert a PDF to Markdown

  1. 1

    Add your PDF

    Drag a PDF onto the box above, or click to pick one from your computer.

  2. 2

    Let it convert

    The tool reads the PDF’s text layer in your browser and turns it into Markdown. Most files are done in a few seconds.

  3. 3

    Copy or download

    Copy the Markdown with one click, or download a .md file, then paste it into ChatGPT, Claude, or any AI tool.

Sample output

What a converted PDF looks like

A page from a report comes back as plain, structured Markdown.

## Q4 Revenue Summary

Revenue rose across every region in the fourth quarter, led by demand in EMEA.

- Total revenue: $4.2M, up 18% year over year
- New customers: 320
- Net revenue retention: 112%

| Region | Q3 | Q4 |
| --- | --- | --- |
| Americas | $1.6M | $1.9M |
| EMEA | $1.1M | $1.5M |
| APAC | $0.6M | $0.8M |
Why convert first

Why convert a PDF before sending it to AI

A PDF is built for printing, not for reading by a model. Inside, it stores fonts, character positions and other layout data that an AI has to read through, and you pay for every token of it. Converting to Markdown drops that overhead and leaves plain, structured text. The same document usually shrinks 30 to 40 percent in token count, which means a lower bill and more room in the context window.

Token cost Example: a 10-page report
As PDF text ~12,400 tokens
As Markdown ~8,350 tokens
~33% fewer tokens Typical example. The exact saving depends on the document.

Scanned PDFs will not work

This converter reads the text layer of a PDF. If your file is a scan or a photo of a page, there is no text to read and the result comes back empty. There is no OCR here. Quick test: if you can select and copy the words in your PDF viewer, the file will convert.

What converts

What converts from a PDF

What comes through

  • Headings and section order
  • Bulleted and numbered lists
  • Simple tables
  • Body text in reading order

What stays behind

  • Scanned or photographed pages
  • Fonts, colours and page layout
  • Embedded images and figures
Guide

Converting PDF to Markdown for AI, explained

PDF is the format almost every document ends up in, and the most awkward one to hand straight to an AI. Here is what actually happens when you convert a PDF to Markdown, why it makes a model cheaper and more accurate to work with, and where the conversion has real limits worth knowing about.

Read the full guide Show less

Why a PDF is hard for an AI to read

A PDF was built to look the same on every screen and printer, not to be read by a machine. Inside the file, your text is not stored as flowing sentences. It is stored as thousands of small instructions that place each character at an exact point on the page, next to font tables, embedded metadata and layout data. A person sees a clean page. A language model sees that raw stream, and it has to spend tokens working through all of it before it reaches your actual words.

Markdown is the opposite. It keeps the parts that carry meaning, the headings, paragraphs, lists and tables, and writes them as plain text with a few light symbols. A model reads that the way it reads most of its training data, so it spends its attention on your content rather than the packaging around it.

What the converter actually does

When you drop a PDF here, the tool reads the file’s text layer, meaning the real, selectable characters stored inside it, and works out the reading order, the headings and any tables it can find. It then writes that out as Markdown, so a top-level title becomes a heading, a bulleted list stays a list, and a simple table becomes a Markdown table with a header row. The open-source MarkItDown engine runs inside your browser through WebAssembly, so the file never leaves your device and nothing is uploaded to a server.

The result is plain text you can paste straight into ChatGPT, Claude, Gemini or Copilot, or load into a RAG pipeline or a vector database. There is no account, no install and no Python to set up, even though MarkItDown is normally a Python library.

The token and cost angle

The clearest reason to convert first is cost. Most paid AI tools bill by the token, and a PDF carries a lot of tokens that say nothing about the content. Reducing it to Markdown commonly cuts the token count of a document by 30 to 60 percent, depending on how much layout and formatting the original carried. Fewer tokens means a smaller bill on every request and more room left in the context window for the model to reason over what you sent.

For retrieval the win is about accuracy more than price. A RAG system splits a document into chunks before it searches them. Raw PDF text has no clean structure, so a naive splitter cuts a chunk in the middle of a sentence or a table, and the resulting embeddings represent position on the page instead of meaning. Markdown gives the splitter real boundaries to work with. You can chunk on headings and sections, each chunk stays about one thing, and retrieval gets noticeably more accurate as a result.

Which PDFs convert best

The sweet spot is any text-first document: reports, research papers, contracts, manuals, whitepapers, meeting notes and books exported to PDF. These are mostly prose and simple tables, which is exactly what Markdown handles well, and they tend to be the documents people most want to feed to an AI in the first place.

Forms, invoices and financial statements sit in the middle. The text converts, but the layout that made them readable on paper does not always survive, so it is worth checking any figure that matters. Image-only material, such as a scanned receipt, a printed contract that was scanned back in, or a photo of a page, sits outside what this tool can do, because there is no text in it to read.

Where PDF conversion gets messy

It is worth being honest about the limits. PDFs do not really store the structure you see on screen, so the converter has to infer it, and some layouts make that hard. Pages laid out in two or more columns can come out with the text interleaved when the reading order saved in the file is unusual. Tables with merged cells, stacked headers or cells that wrap onto several lines are the most common thing to come out rough, because a PDF stores a table as lines and positioned text, not as real rows and columns.

Heavily designed pages, like magazine spreads or marketing one-pagers, convert less cleanly than a plain report or a contract. If a converted table looks scrambled, that usually means the original was complex, not that something went wrong. The quick fix is to copy just that section on its own, or to keep the source file handy for anything where the exact numbers count.

Scanned PDFs and why there is no OCR

Two PDFs can look identical on screen and behave completely differently here. A born-digital PDF, exported from Word, a browser or a design tool, has a real text layer underneath. A scanned PDF is a photograph of a page wrapped in a PDF, with no text under it, only an image. This tool reads text, so a scan comes back empty. It does not run OCR, the separate process that recognises letters inside an image.

There is a one-second test before you convert. Open the PDF in any viewer and try to select a sentence with your cursor. If the text highlights, the file has a text layer and it will convert here. If your cursor only draws a box over a picture and nothing highlights, the file is a scan, and you would need an OCR step first to pull the words out.

Getting the cleanest result

A few habits make a real difference. Start from the original export rather than a printed and rescanned copy whenever you can, since a born-digital file always converts better. Keep files under the 15 MB limit, and split a very long PDF into parts if your browser runs low on memory on a big one. After converting, skim the Markdown for any table that looks off and tidy those by hand, since tables are the part a model is most likely to misread. For everything else, the output is ready to paste into your AI tool exactly as it comes out.

FAQ

PDF to Markdown questions

Is it free?

Yes. No account, no limits, no cost. Convert as many PDFs as you want.

Do my PDFs get uploaded?

No. The conversion runs in your browser, so the file stays on your device and its contents are never sent to a server.

Why is my converted PDF empty?

Your PDF is probably a scan or an image with no text layer. The tool reads text, it does not run OCR, so a scanned page has nothing to pull out. If you cannot select the text in a PDF viewer, it will not convert here.

Will tables and headings survive?

Most of the time, yes. Headings, bullet lists and simple tables come through as Markdown. Very complex layouts, multi-column pages, or tables with merged cells can come out messy, because a PDF does not really store that structure.

What can I do with the Markdown?

Paste it straight into ChatGPT, Claude, Gemini or Microsoft Copilot, or load it into a RAG pipeline, a vector database, or a notes app. Markdown is the format these tools handle best.

How big a PDF can I convert?

Up to 15 MB. Larger files can run your browser out of memory, so the tool stops before that happens. For a very large PDF, splitting it first usually works.