PDF to Markdown

Get the text out of a PDF as clean Markdown or plain text, ready for ChatGPT, Notion or Obsidian. Free, and it all happens in your browser.

or drop a PDF here
Read on your device. Your file never leaves it.

How it works

  1. The PDF is opened in this tab. pdf.js reads every piece of text on every page, with its position and size.
  2. Lines and paragraphs are rebuilt. Text at the same height becomes a line. A bigger gap than usual starts a new paragraph, and words split across a line with a hyphen are joined.
  3. Structure becomes Markdown. Lines set much larger than the body text become headings, and bullet points become list items. Plain text mode leaves the marks out.
  4. Scanned pages are flagged. A page with almost no text is a picture of paper. You get its page numbers instead of a silent gap.

Scanned PDFs

A scanned book has no text to extract until OCR reads the page pictures. If most of your pages are flagged, the free Is my PDF scanned? check confirms it, and making a scanned PDF searchable explains the options. Once a book has a text layer, this converter can read it.

Questions

How do I convert a PDF to Markdown for free?

Choose the PDF above. The text appears as Markdown in a few seconds, with headings marked by size and paragraphs joined back together. Copy it or download a .md file. No sign-up, nothing uploaded.

Can I paste the result into ChatGPT or Claude?

Yes. Markdown is the format these assistants read best: headings and paragraphs survive, and there are no broken line ends in the middle of sentences. For a long book, paste one chapter at a time.

Why does it say some pages are scanned?

Those pages are pictures of paper with no text behind them, so there is nothing to extract. They need OCR first, which reads the letters in the picture. FixMyScan cleans the pages and adds that text; then this tool can read them.

Does it keep tables and images?

Images are left out and tables come out as lines of text. Headings, paragraphs and bulleted lists are kept. For academic papers with complex tables, check the numbers against the original.

How are headings detected?

By size. Lines set much larger than the body text become # or ## headings. A book that sets chapter titles in the body size, only in bold, will show them as plain lines.

What about two-column layouts?

pdf.js reports text in the order the PDF stores it, which is usually column by column. Some PDFs interleave the columns; if lines from both columns alternate, the source file is the cause.

Is my file uploaded anywhere?

No. The PDF is read with pdf.js, Mozilla’s open-source PDF library, in this tab, and never sent to us.

More free tools