Skip to content
Toolwright

PDF to Markdown

PDF to Markdown converts a PDF into clean Markdown in your browser: headings from font sizes, lists, tables from aligned rows, and no repeated headers or page numbers. Scanned pages can be read with OCR. It shows the token count, so you know what you paste into an AI chat.

Tool 094 · Markdown
Outside requests …How to checkRuns on this deviceWorks offline once opened

How to use PDF to Markdown

  1. Drop a PDF up to 30 MB. Existing text works up to 100 pages; OCR works up to 30.
  2. Choose how to read the PDF, and whether to detect tables, drop repeated headers and footers, and mark pages.
  3. Press Convert to Markdown, check the result, then copy it or download the .md file.

Frequently asked questions

Why convert a PDF to Markdown before giving it to an AI?

Markdown keeps the structure an AI needs to follow a document, such as headings, lists and tables, as plain text it can read directly. Repeated headers, footers and page numbers are left out, so the model reads only the content. The token count shows how much of the context window the text will use.

Does Markdown use fewer tokens than a PDF?

Compared with raw HTML or Word markup, Markdown is usually much smaller. Compared with plain text copied out of a PDF it is about the same size, sometimes slightly larger, because the # and | characters count too. The gain for PDFs is the structure and the removed clutter, and the page shows the real count for your file.

Is my PDF uploaded?

No. The PDF reader and the OCR engine run in your browser. Their files load from this site; your document and its text never leave your device.

How are headings and tables found?

A PDF stores positioned text, not headings or tables. Text clearly larger than the body becomes a heading, a short bold line becomes a sub-heading, and three or more rows of cells that line up become a table. Check complex layouts such as multi-column pages and merged table cells after converting.

Can it read scanned PDFs and Arabic?

Yes. Automatic mode uses English or Arabic OCR on pages that have no text. OCR gives plain paragraphs: it does not recover headings or tables from a picture of a page. Check names and numbers carefully.

What does Mark pages do?

It adds a line such as <!-- page 3 --> before each page. It is hidden when the Markdown is displayed, but an AI can see it and tell you which page an answer came from.

Next step

Combining it with a prompt? Count the whole thing before you paste it. Open AI Token Counter.

  1. 095

    PDF to Text

  2. 096

    PDF to Word

  3. 001

    AI Token Counter

  4. 073

    Markdown Previewer