Convert PDF to Markdown

Extract text from any PDF as clean Markdown organized by page, ready to paste directly into AI tools, code editors, or any Markdown-based system.

🔒 All processing happens right in your browser — your files are never uploaded to any server.

About PDF to Markdown

AI assistants, note-taking apps and static site generators all work best with plain text, and Markdown is the plain-text format they understand most easily. This tool reads the text layer of a PDF and lays it out as Markdown: consecutive lines are joined back into paragraphs as they were in the document, and an option adds a heading for each page such as "## Page 3". Copy the result straight from the text box or download it as a .md file named after your PDF.

The extraction uses pdf.js, which reads the words a PDF already contains and their position on the page. Lines are rebuilt from top to bottom by grouping words that sit on the same baseline. The tool does not try to guess headings, bold text, lists or tables, and it does not read text inside images, and when pages have no text because they are scanned, the tool tells you how many and links to the PDF OCR tool. Everything happens in your browser, so the document is not uploaded.

Why use it

  • Gives you the text of a PDF in a format AI chat tools and note apps read cleanly.
  • Page headings and separators keep track of where each passage came from.
  • Copy the result in one click or download it as a .md file.
  • Works on long documents without a page limit set by the tool.
  • Private: the PDF is processed on your device and never uploaded.

How to use

  1. Upload the PDF

    Drag the PDF onto the upload area or click to pick it.

  2. Convert

    Click Convert to Markdown. The tool reads every page in turn and fills the text box with the result.

  3. Review the text

    Scroll through the output. Each page begins with its own heading, so you can spot pages that came out empty or out of order.

  4. Copy or download

    Press the copy button to put everything on the clipboard, or Download .md file to save it under your PDF's name.

Examples

Summarizing a long report with an AI assistant

A 40-page annual report is too heavy to paste page by page. Convert it, copy the Markdown and ask the assistant to summarize pages 10 to 18, which you can now point to by their headings.

Building a notes vault

Save lecture handouts as .md files and drop them into Obsidian or a similar app, where they become searchable notes you can link and annotate.

Quoting from a contract

You need the exact wording of clause 7 on page 5. Convert the PDF and copy the lines under "## Page 5" instead of retyping them.

Starting a web page from a brochure

A product brochure exists only as a PDF. Extract its text to Markdown, then edit the headings and paste it into your site builder or static site generator.

What carries over from the PDF
Content in the PDFIn the Markdown output
Normal selectable textKept, one line per paragraph
Page boundaries## Page N heading and a --- separator
Headings, bold, italicsKept as plain text, without Markdown styling
TablesCell text appears line by line, without table syntax
Images and text inside imagesNot included
Scanned pages without a text layerEmpty or nearly empty page

Tips

  • If a page comes out empty, the PDF is probably a scan. Run it through the PDF OCR tool first, then convert.
  • Two-column layouts can merge lines that sit at the same height in both columns; check those pages and fix the order by hand.
  • Before pasting into an AI chat, delete headers, footers and page numbers that repeat on every page to save space.
  • Add your own Markdown headings (# and ##) to important section titles after conversion for a cleaner structure.
  • For Arabic PDFs, check word order in a few lines, since it depends on how the PDF was created.

pdf.js reads the PDF inside your browser and the Markdown is built on your device; the file and its text are never uploaded.

Frequently asked questions

What does the Markdown output look like?

Each page starts with a level-two heading such as ## Page 1, followed by its lines of text as separate paragraphs. A --- line separates one page from the next.

Does it detect headings, lists and tables?

No. It keeps the words and their order, but not their styling. Headings and table cells appear as ordinary lines that you can format afterwards.

Why is my output empty?

The PDF most likely contains scanned images rather than text. Use an OCR tool to add a text layer, then convert the new file.

Can I paste the result into ChatGPT or Claude?

Yes. Markdown is plain text, so any AI assistant can read it. For very long documents, paste the pages you need rather than the whole file.

Is my PDF uploaded to a server?

No. The text is extracted in your browser, and nothing is sent to us or to any AI service.

Does it work with Arabic PDFs?

It extracts Arabic text when the PDF has a proper text layer. The word order inside a line depends on how the file was produced, so review a few lines.

Are images included?

No. The tool extracts text only. Use the PDF to JPG tool if you also need the pictures.

Can I edit the result on the page?

The text box is read-only. Copy the text or download the .md file and edit it in any text editor.

What is the downloaded file called?

It takes your PDF name with a .md extension, such as report.md: a plain-text file you can open in Notepad, VS Code, Obsidian or any Markdown editor.

Does it handle password-protected PDFs?

Files that need a password to open cannot be read. Save an unlocked copy first, then convert it.

Why are some lines in the wrong order?

The tool rebuilds lines by their height on the page. Multi-column layouts, sidebars and text boxes can interleave, so those pages may need a quick manual fix.

Is there a page limit?

The tool sets none. Very large documents simply take longer and use more memory on your device.

Last updated:

Share this tool:WhatsAppXTelegram