A PDF into Markdown you can edit anywhere
Documentation trapped in a PDF, a contract that should live in a repository, notes you want in a plain-text editor: the text is read line by line from each page, and lines set larger than the body text become # headings according to how much larger they are, bullet runs become - items, and the other paragraphs come out as written.
- Heading levels inferred from font size against the document median
- Bulleted and numbered runs kept as list items
- Page breaks written as <hr> rules
- Preview of the output before you commit to it
Drop, convert, copy
- 1
Drop the PDF
Pages and text runs are read in the tab.
- 2
Convert to Markdown
The character count tells you how much came across.
- 3
Check the preview
Skim the first lines — the heading inference shows up there immediately.
- 4
Download the .md
Open it in any editor, commit it, or feed it to a tool that reads Markdown.
PDF to Markdown — common questions
How does it decide what is a heading?
It measures the size of every line and works out the median, which is almost always the body text. Lines meaningfully larger than that become headings, split into three levels by how far above the body they sit. A document that used size arbitrarily will need a pass by hand.
Are tables preserved?
As lines of text, not as pipe tables. Reconstructing a table needs to know which runs belong to which column, and that information is not reliably in the file. For a table you must reproduce exactly, PDF to CSV guesses at columns from the gaps and gets a long way there.
What about footnotes and page numbers?
They come out as ordinary lines, because that is what a PDF says they are. Delete them with a find-and-replace if you do not want them.
Will the reading order be right on two-column pages?
Not always. Text is grouped into lines by vertical position, so a two-column layout can interleave the columns. One column per page reads correctly; magazine layouts are better retyped than converted.
Can I turn the Markdown back into a PDF?
Yes, with Markdown to PDF, which renders headings, lists, code, quotes and pipe tables as selectable text again.
Related free tools
- PDF to JPGExport pages as images
- JPG to PDFCombine images into a PDF
- Image to PDFPNG, WebP, GIF, BMP or TIFF
- Text to PDFTXT file to a paginated PDF
- Markdown to PDFMD to a formatted PDF
- CSV to PDFSpreadsheet export as a table
- All 41 toolsEvery tool is free and unlimited