PDF to Markdown Converter

Convert a PDF to clean Markdown in your browser: headings, lists, bold, tables and pictures. Copy it or save a .md file. Scans read with OCR. Free, no upload.

Runs in your browser. Your files are never uploaded. How it works

PDF to Markdown turns a PDF into clean Markdown: headings become # and ##, lines are joined into paragraphs, lists stay lists, bold and italic are kept, and tables and pictures come along if you want them. Copy the result straight from the page or download the .md file. Scanned pages are read with OCR, and the PDF never leaves your device.

How to convert a PDF to Markdown

  1. Choose a PDF. Password-protected PDFs open after you type the password.
  2. Tick Rebuild tables (downloads the table model the first time) or Keep pictures if you need them.
  3. Tick Mark where each page starts to add <!-- Page 3 --> comments, which are invisible when the Markdown is shown.
  4. Click Convert to Markdown. The file downloads, and the text appears below so you can copy it.

What you get

In the PDF In the Markdown
Large headings # Heading
Smaller or bold headings ## Heading
Paragraphs over several lines One line per paragraph, words broken by hyphens joined again
Bulleted lists - item
Numbered lists 1. item, with the original numbers
Bold and italic **bold**, *italic*
Tables (optional) GitHub-style Markdown tables
Pictures (optional) ![](images/image-1.png) and the pictures in a ZIP
Headers, footers, page numbers Left out
Two-column pages Read column by column
A two-page PDF converted to Markdown: the result appears in a text box starting with a # Service Agreement heading, a joined paragraph and a bulleted list, with a Copy Markdown button and a note that service-agreement.md (1.2 KB) was saved
A 2-page, 2.8 KB PDF converted to a 1.2 KB .md file. The heading became #, the wrapped lines were joined into one paragraph, and the list stayed a list.

The joining is the part worth looking at closely. A PDF stores each visual line separately, so a plain text extraction returns a paragraph as five or six broken lines; here they come back as one, which is what makes the output usable in a notes app or a static site rather than something you have to reflow by hand first.

Uses

  • AI chats: paste a report or paper into ChatGPT, Claude or Gemini with its structure intact.
  • Notes apps: Obsidian, Notion, Logseq and Bear all import Markdown.
  • Docs and READMEs: move old PDF manuals into a wiki, GitHub or a static site.
  • Editing: change the text in any editor, then make a new PDF with your usual tools.

Good to know

  • PDFs store text as positioned pieces, not as headings and lists, so the structure is worked out from font sizes, spacing and bullets. It is right for most documents; check headings in unusual layouts.
  • Formulas, footnotes and text inside diagrams come out as plain text or are left in the pictures.
  • To make a PDF from Markdown, use Markdown to PDF. For a web page instead of Markdown, use PDF to HTML. For plain text with no formatting, use PDF to Text. For an editable Word file with the layout, use PDF to Word.

Private by design

Your PDF is processed on your own device and never uploaded. See how it works.

Frequently asked questions

How do I convert a PDF to Markdown?

Choose the PDF and click Convert to Markdown. The .md file downloads, and the Markdown also appears on the page so you can copy it. Tick Rebuild tables or Keep pictures first if you need them.

What is kept?

Headings (as # and ##), paragraphs with the lines joined, bulleted and numbered lists, bold and italic text, and, if you choose, tables (as GitHub tables) and pictures. Repeated headers, footers and page numbers are left out.

Does it work with scanned PDFs?

Yes. Pages without a text layer are read with text recognition (OCR) in your browser. Choose the OCR language for non-English scans. Headings and lists in scans are found less reliably than in digital PDFs.

Where do the pictures go?

With Keep pictures ticked you get a ZIP: document.md and an images folder, with each picture linked from the Markdown where it appeared. Without it, you get a single .md file.

Why use Markdown for ChatGPT, Claude or other AI tools?

Markdown keeps the structure (headings, lists, tables) in plain text, which AI models read well and which uses fewer tokens than a PDF. Many people convert a PDF to Markdown before pasting it into a chat or a notes app.

Is my PDF uploaded?

No. The PDF is read and converted in your browser, on your device. Nothing is sent to a server.

Related tools