# PDF to Markdown

Turn the text of a PDF into clean Markdown with our PDF to Markdown converter. It reads the text layer of the pages you select, turns larger type into headings, groups lines into paragraphs by their spacing, recognizes bulleted and numbered lists and rejoins words hyphenated at line ends. Ideal for writers, developers and knowledge workers who move reports and manuals into wikis, notes or docs.

## Frequently asked questions

### How does the converter find headings?

It measures the font size of every line and takes the size used for most of the text as the body size. Short lines set at least about 12 percent larger become headings, the largest size a level 1 heading, the next sizes levels 2, 3 and 4.

### How are paragraphs detected?

Lines that follow each other with the normal line spacing of the page are joined into one paragraph. A clearly larger gap, a change of font size, a heading or a list item starts a new block, and a word hyphenated at the end of a line is joined with the next line again.

### Which lists are recognized?

Lines that start with a bullet such as a dot, a circle, a square, a dash or an asterisk followed by a space become bulleted list items, and lines that start with a number and a period or parenthesis become numbered items. Indented bullets are nested up to three levels, and wrapped item lines are joined to their item.

### Can I convert only some pages?

Yes. Enter pages such as 1-3,5,8- in the pages field, where 8- means page 8 to the end. Leave the field empty to convert the whole document; one run handles at most 200 pages.

### Does it convert tables, images and bold text?

No. The converter works from the text layer, which records words and positions but not the structure of tables, so table cells come out as lines of text. Images are skipped and bold or italic styling is not carried over.

### What happens with page numbers, headers and footers?

A page number standing alone on the first or last line of a page, such as 12, Page 12 or 12 / 40, is left out. Other running headers and footers stay in the text, because they cannot be told apart from content reliably.

### Why does the converter say there is no text?

The selected pages have no text layer, which happens with scanned documents and photos saved as PDF. The converter does not perform OCR, so run the scan through an OCR program first and convert the result.

### Can I convert a password protected PDF?

Yes. Enter the password in the password field and the PDF is opened with it in memory. Files that only restrict printing or copying open without a password; the password is never stored or returned with the result.

### Are special characters in the text escaped?

Yes. Characters that Markdown would read as formatting, such as asterisks, underscores, backticks, brackets and a leading hash or number with a period, are escaped with a backslash. The text then renders exactly as it appears in the PDF.

### Which PDFs work best?

Documents created digitally from a word processor, a typesetting system or a browser give the best results, because their text layer follows the reading order. Multi-column layouts may interleave lines across columns, and PDFs up to 10 MiB are accepted.

Your ad here?

[Email us](mailto:hi@dennn.is?subject=Advertising%20on%20OneClick%20Pro)

[Ad The agent-ready plugin suite for WordPress.](https://sleekwp.com/?ref=oneclickpro)
