M
Runs in your browserNo upload · runs locally

PDF to Markdown

Turn a PDF into clean Markdown with headings, lists and links kept, ready to paste into notes, a repo or an AI prompt.

Loading tool…
Short answer

PDF to Markdown converts a PDF into a clean .md file in your browser. Headings are inferred from font size, bullets and numbered items become Markdown lists, and wrapped lines are joined back into paragraphs. The result is ready for notes, a repository or an AI prompt. Nothing is uploaded.

What are PDF and Markdown?

What is a PDF?

PDF (Portable Document Format, ISO 32000) records where each run of text sits on the page and in what size, but not whether it is a heading, a list item or body copy. A converter has to work that structure out from the geometry: lines set noticeably larger than the rest are probably headings, lines beginning with a bullet character are list items. This tool does exactly that, and needs a text layer to do it.

What is Markdown?

Markdown is plain text with lightweight markup: # for headings, - for bullets, 1. for numbered lists, **bold** and _italic_. It was designed to be readable as-is and to convert cleanly to HTML, and it is standardised by the CommonMark specification. GitHub, Obsidian, Notion, static-site generators and most AI tools read it natively, which makes it the best format for text you plan to edit, version or paste into a prompt.

Why convert PDF to Markdown?

  • Paste into notes and wikis. Obsidian, Notion and GitHub wikis are Markdown-native. A converted PDF drops in with its headings and lists intact instead of as a wall of text.
  • Better input for AI tools. Language models read Markdown structure well. Headings and lists give a prompt more signal than raw text, and the file is far smaller than the PDF.
  • Version it like code. Plain text diffs cleanly. Put a specification or policy in a repository and see exactly what changed between versions.
  • Structure without the layout baggage. You keep the outline of the document, headings, lists, paragraphs, and lose the fonts, columns and page furniture you did not want anyway.
  • Private and offline. Extraction runs with pdf.js in your browser. Internal reports and unpublished drafts are never uploaded.

How to convert PDF to Markdown, step by step

  1. Open PDF to Markdown and drop your PDF Drag the file onto the drop zone or click to choose it. The PDF is read locally.
  2. Decide how headings are detected Under Options, leave Headings on Detect from font size to turn lines set noticeably larger than the body text into #, ## or ###. Choose Plain paragraphs only for a flat document.
  3. Choose page breaks Set Page breaks to One continuous document to join pages into flowing text, or Rule (---) between pages to keep a horizontal rule where each page ended.
  4. Run PDF to Markdown Click Run PDF to Markdown. The progress bar names each page as it is read.
  5. Download the .md file The file downloads automatically, named after the PDF. Open it in any editor, or paste it straight into your notes.

Frequently asked questions

How does PDF to Markdown decide what is a heading?

It measures the text height most of the document is set in, then compares every line to it. Lines about 1.6 times the body size become #, about 1.35 times ##, and about 1.15 times ###. Documents whose headings use bold at the same size will come out as plain paragraphs.

Are lists, links and bold kept?

Bullet characters and 1. or a) markers become Markdown list items, and wrapped lines are rejoined. Bold and italic are not detected. Hyperlinks are not converted: a URL written out in the text survives as text, but link text that hides its address loses it.

Why is the Markdown file empty?

The PDF has no text layer, so it is a scan or an image export, and the tool says so under the result. Run OCR PDF first to make it searchable, then convert the OCR output.

Will tables come across?

No. Table cells arrive as lines of text, not as a Markdown table. For tabular data, try PDF to Excel, which splits lines on wide gaps into cells, then paste the cells into a Markdown table by hand or with an editor plugin.

Is my PDF uploaded?

No. The text is extracted and the Markdown assembled inside your browser tab with pdf.js. Nothing reaches a server, and there is no account or history to clear afterwards.

Looking for the long version? The guides cover each of these jobs in depth.