PDF to Markdown Converter

Convert a PDF into clean Markdown with headings, lists and paragraphs, ready for AI tools, notes and documentation. Check the output for layout errors.

Supported formats: PDF with selectable text (scans need OCR first)
File size limit: No fixed limit; depends on your device memory
Privacy: Processed in your browser (client-side). Your file is not uploaded to our server.
Did this tool help? Rate it Be the first to rate this tool

Clean text from a PDF for AI tools

Pasting a PDF straight into a chatbot often brings broken lines, stray page numbers and lost structure. This converter reads the text layer of your PDF in your browser, joins lines back into paragraphs, turns larger text into Markdown headings, converts bullet and numbered lists, strips repeated headers and footers, and gives you a clean .md file that is ready for ChatGPT, Claude, a knowledge base or your notes. It also shows a rough token count so you can see whether the document fits a model's context window.

How it works

PDF files do not store headings or paragraphs, only positioned pieces of text with a font size. The tool groups text into lines by position, finds the most common font size as body text, and treats noticeably larger lines as headings, up to three levels. It merges lines that sit close together into paragraphs and repairs words split by a hyphen at the end of a line. Lines that repeat near the top or bottom of at least half the pages are treated as headers or footers and removed.

What it does not handle well

  • Scanned PDFs and images of text have no text layer, so they need OCR first.
  • Tables are not rebuilt. Their cell text comes out as plain lines, so check any table that matters.
  • Multi-column layouts can interleave columns, and complex layouts such as magazines may need manual tidying.
  • Mathematical formulas and special symbols depend on how the PDF encoded them.

Privacy

The conversion runs entirely in your browser. The PDF is never uploaded, so it is a reasonable way to prepare private documents. Always read the output before you rely on it: automatic structure detection is a best guess.

Turn documents into editable text

Markdown is a lightweight format for headings, lists and links that is easy to edit and publish. This tool extracts text from a PDF and formats it as Markdown.

Expect some clean-up

Tables, columns, footnotes and images do not always convert perfectly, and scanned PDFs need text recognition first. Check headings and lists after conversion and fix line breaks.

Good uses

Move documentation into a wiki or repository, prepare content for a static website or feed text to note-taking tools. Keep the original PDF for reference.

What converts well

Headings, paragraphs, bullet lists and basic emphasis convert cleanly. Tables, multi-column layouts, footnotes and scanned images may need manual cleanup. Scanned PDFs without text need OCR first.

After conversion

Check heading levels, fix broken line wraps and review links. Markdown works well for notes apps, documentation, static sites and feeding clean text to AI tools.

Best results

Use PDFs with real text rather than scans, and pick files with simple single-column layouts. After converting, run a spell check and compare a few headings with the original.

Fix tables

Tables often need manual formatting after conversion, so check columns and alignment. Use Markdown table syntax or an image for very complex tables.

Frequently asked questions

Why does my output have no text?

Your PDF is probably a scan or contains images of text. Run OCR to add a text layer, then convert it.

Does it keep tables?

Not as Markdown tables. Table contents appear as text lines, so rebuild important tables by hand.

How are headings decided?

Lines set in larger type than the body text, and short enough to be a title, become headings. The largest size becomes level one.

What is the token estimate?

A rough figure based on about four characters per token. Real counts vary by model.

Is my PDF uploaded?

No. Everything happens locally in your browser.

More in PDF Tools