Skip to content
DoItJag

PDF to Markdown

Turn a PDF into Markdown for notes, documentation, wikis, GitHub or AI chat tools. Headings, paragraphs, bold and italic, bulleted and numbered lists and simple tables are written as Markdown, and broken lines are joined back into paragraphs. Pictures can be saved alongside in a .zip. Scanned pages can be read with OCR.

or drop a file here · PDF · up to 200 MB

Processed on your device. Your files are not uploaded.

About PDF to Markdown

Markdown marks structure with a handful of characters: # for a heading, - for a bullet, ** around bold words and pipes for tables. GitHub, Obsidian, Notion and AI chat tools all read it well. Pasting raw PDF text into them gives you broken lines, stray page numbers and no headings. This converter produces tidy Markdown instead.

What it does

It reads the font size, weight and position of every piece of text. Lines in a noticeably larger font become headings, with the biggest size as #, the next as ## and the third as ###. Short lines that are entirely bold become small headings too. Lines of one paragraph are joined back together, and a word split by a hyphen at the end of a line is rejoined. Bullets and numbered points become Markdown lists, aligned columns become pipe tables, and on two-column pages the left column is read before the right one.

Pictures are optional. When you include them, the download is a .zip holding the .md file and an images folder, with links that work when you unzip both side by side.

How to use it

  1. Drop in your PDF, with a page range when the whole file is not needed.
  2. Pick how a new page is marked: not at all, with a --- line, or with a hidden comment that names the page number.
  3. Tick pictures if you need them, and OCR if the PDF is a scan.
  4. Select Convert to Markdown. Switch between the raw text and the formatted preview, then copy it or download.

Limits

The structure is inferred, not read from the file, so a decorative font size can produce an unwanted heading and an unusual list marker may stay as plain text. Links, footnotes, colours and the page layout are not carried over. Scanned pages need OCR, and recognised text can contain mistakes. Your PDF is processed in the browser and never uploaded.

To edit the result with a live preview, paste it into the Markdown Editor.

How to use PDF to Markdown

  1. Choose the PDF (optionally type the pages you want).
  2. Pick how page changes are marked and whether to include pictures. For a scanned PDF, tick OCR and the language.
  3. Select Convert to Markdown, check the text or the formatted preview, then copy it or download the .md file.

Privacy: how it works

Your PDF is read and converted on your own device by your browser. It is not uploaded. If you use OCR for scanned pages, the OCR engine and language data are downloaded once from cdn.jsdelivr.net.

Frequently asked questions

How is this different from Extract PDF Text?

Extract PDF Text gives plain text line by line, as it sits on the page. PDF to Markdown also works out the structure: it marks headings and lists, joins lines back into paragraphs, rejoins words split by a hyphen at a line end, and writes tables as Markdown tables.

How are headings found?

From the text size: lines in a clearly larger font become headings (the largest size becomes #, the next ##, then ###), and short lines that are all bold become small headings. A PDF with unusual styling can give a few wrong headings; they are easy to fix in the text.

Are links and footnotes kept?

No. Links, footnote numbers, page layout and colours are not written to the Markdown. Pictures are only included if you tick the option, as files in an images folder in the .zip.