PDF to Markdown
PDF to Markdown is a free browser tool that turns the text of a PDF into Markdown, finding headings, paragraphs and lists from the layout.
Turn the text of a PDF into Markdown, with headings, paragraphs and lists worked out from the layout. It runs in your browser, so your file stays on your device.
Also searched as: pdf to md · convert pdf to markdown · pdf markdown converter · extract text from pdf
Loading the tool…
How to use it
- 1
Add your PDF
Choose a PDF that has selectable text.
- 2
Convert
Press Convert to Markdown.
- 3
Copy or download
Copy the Markdown, or save it as a .md file.
Questions about PDF to Markdown
How does it find headings?
It treats text that is clearly larger than the body text as a heading, and a bullet or a number at the start of a line as a list item.
Are tables and pictures converted?
No. Only text is converted. Tables come out as lines of text, and pictures are left out.
Is my file uploaded?
No. The text is read and converted in your browser.
Why are two columns mixed together?
The text is read line by line across the page, so a page with two columns may need tidying by hand.
Does it keep bold and italic?
No. Only the structure is found, not the weight or style of the text.
How the layout is read
A PDF stores text as pieces placed on a page, with no idea of headings or lists, so this tool reads the layout instead. Text much larger than the body text becomes a heading: 60% larger or more is a top-level heading, 30% larger a second-level one, and 12% larger a third-level one. A line that starts with a bullet or a number becomes a list item. Lines that sit close together are joined into one paragraph, and a word split by a hyphen at the end of a line is put back together.
| What the PDF has | What you get |
|---|---|
| Large title text | # Heading |
| Slightly larger subheading | ## or ### heading |
| A line starting with a bullet | - list item |
| A line starting with 1. or 2) | 1. numbered item |
| Lines close together | One paragraph |
Limits and clean-up
Tables come out as lines of text, pictures are left out, and bold and italic are not kept. Pages with two columns are read straight across, so the columns can be mixed and may need tidying by hand. A scanned PDF has no text to read; use PDF to Word OCR for that.
Read the result through before you use it, then copy it or save it as a .md file. Nothing is uploaded.