Skip to main content
ScanReviverGet a pass

PDF to Markdown headings become headings, not just bigger text

A PDF you want to paste into a wiki, a README, or any tool that reads Markdown: without every heading turning into a plain paragraph.

  • 0copies of your file kept
  • 250 MBper file, free
  • 52scan and PDF tools on ScanReviver

More PDF tools

Free to use: no account, no sign-up.

What it costs

Everything here is free. A pass lifts the limits on a few tools, such as runs a day, file size or length.

Payment, VAT and refunds

Text that is clearly larger than the rest of the page becomes a Markdown heading; everything else stays as ordinary text.

Convert PDF to Markdown before you hand a document to an LLM or a retrieval (RAG) pipeline: each heading comes out as a # line, so the text can be split into sections at the headings instead of at an arbitrary character count. In a quick test, a one-page PDF with two headings came back as two # lines with the paragraphs under them. This works for PDFs that already have a text layer; scanned pages need OCR first, and tables or columns still need manual cleanup.

Your file never touches our disk. This tool works entirely in memory and hands the result straight back in the same response: unlike the other tools on this site, there is no 45-minute copy sitting on our server afterwards, because none is ever written (files of about 80 MB or more go up in pieces and are kept on our disk at most 30 minutes so you can download the result, then deleted).

Why font size, not layout tags

A PDF has no real concept of "heading" the way HTML or Markdown does: it only knows where each character sits and how big it is. Comparing each line's size against the page's own median is a simple, reliable way to separate what visually reads as a heading from ordinary paragraph text, without needing a layout model trained on a specific document style.

What doesn't carry over

Tables, multi-column layout and images are not reconstructed: this extracts the text content, not the visual design. For a document that leans heavily on layout, treat the Markdown as a starting point to clean up rather than a finished conversion.

About your file

This tool works entirely in memory and hands the result straight back in the same response: there is no copy sitting on our server afterwards, because none is ever written (files of about 80 MB or more go up in pieces and are kept on our disk at most 30 minutes so you can download the result, then deleted).

Need the plain text instead of Markdown formatting? Image to Text does OCR and returns copyable text without the heading detection. Starting from a scan with no text layer yet? Run it through that tool first. Want a clickable jump-to-heading list inside the PDF itself instead of a separate markdown file? PDF Bookmarks builds that as the file's own table of contents. Want the gist instead of the structure? Summarize PDF reads the same text and writes a short summary instead of headings and lists. Markdown output breaking somewhere it shouldn't, or a diff showing a change that isn't visible on screen? An invisible character carried over from the PDF's own text layer is the usual cause: TextNinja's invisible character remover finds it, free.

Sources

Common questions

How do I convert a PDF to Markdown?

Drop the PDF in. The Markdown appears in the box below, ready to copy or download as a .md file.

How does it know what's a heading?

By comparing each line's font size to the median size on that page. A line noticeably larger than most of the page's text becomes a # heading; everything else is left as plain text.

Does it produce nested headings like ## or ###?

No, only a single heading level. It distinguishes "this line stands out as a heading" from "this is body text": it does not try to guess a full outline hierarchy from font sizes alone.

Does it preserve tables, images or columns?

No. This reads the text content page by page; layout elements like tables, images and multi-column flow are not reconstructed in the Markdown output.

Does this work on a scanned PDF?

Only if the scan already has a text layer, for example from this site's own OCR tool. A scanned image with no underlying text has nothing for this tool to extract.

Is there a page limit?

25 pages per file. There is no account, no watermark and no daily cap.

Is this a free PDF to Markdown converter online?

Yes. Drop in any PDF, get Markdown out, no account and no sign-up required. There is a 25-page limit per file.

Can I convert Markdown to PDF here?

This tool converts PDF to Markdown. For Markdown to PDF, a word processor or a free converter like Pandoc works well.

What is the best PDF to Markdown converter for plain-text documents?

A tool that reads the text layer directly, like this one, gives clean output for text-heavy PDFs. For scanned documents, run OCR first so there is a text layer to extract.