How to use
- Drop a PDF on the page. If it is password-protected, enter the password to open it.
- Choose the page range, whether to remove headers and page numbers, the page separator, and whether to mark bold and italic.
- Press Convert to Markdown. The beginning of the result appears. Use Download MD to save it or Copy to take the whole text.
How the guessing works, and where it fails
A PDF has no notion of headings or lists, only the position and size of characters, so this conversion uses heuristics (rules of thumb) to guess the structure. On documents where the rules do not fit it can be wrong, so read the result and edit it.
| What it guesses | Rule | Where it often fails |
|---|---|---|
Headings (#, ##, ###) |
A line at least 1.15 times larger than the body or a single bold line. 1.6 times or more is #, 1.3 times or more is ## |
A heading the same size as the body becomes a paragraph. Large cover or ad text becomes a heading. |
Lists (-, 1.) |
Lines starting with a bullet, a dash, 1., a circled number or a Korean letter marker, and short indented lines; indentation nests | A number that happens to start a body sentence |
| Tables (pipe tables) | Three or more lines sharing the same column positions, with three or more columns | Tables without lines, two-column tables and right-aligned number columns are missed or shifted |
| Paragraphs | A gap over 1.5 times normal line spacing starts a new paragraph; a sentence cut at a page end is joined | Short-line paragraphs such as poems may split line by line |
| Bold and italic | When the PDF font name contains Bold or Italic | PDFs whose font names do not reveal weight show no marks |
Pictures, shapes, equations, footnote placement and text boxes are not carried over. Scanned PDFs have no text layer and cannot be converted; run PDF OCR first.
How Markdown symbols are handled
If the PDF text contains symbols such as *, _, [ or <, a \ is put in front so they are not read as formatting. The same goes for #, >, - and 1. at the start of a line. So when you open the result in a Markdown viewer, the PDF’s text appears as written. In table cells | becomes \| and line breaks become spaces.
Options
| Option | What it does |
|---|---|
| Remove headers, footers and page numbers | Drops lines repeating on 3 or more pages at the top and bottom, and lines that are only a page number. |
| Join paragraphs across a page break | Merges a sentence cut at a page boundary into one paragraph. |
| Page separator | None, a rule (---), or a <!-- page N --> comment. |
| Mark bold and italic | When off, only the text comes out without emphasis marks. |
Frequently asked questions
How do I convert a PDF to Markdown?
Drop the PDF on this page and press Convert to Markdown. You can copy the result right away or download it as an .md file.
My table came out as a paragraph, not a pipe table.
Tables aligned with spaces instead of lines, or with only two columns, may not be recognised. Pull the table out with the “every line as a table” feature of PDF to Excel, then move it with Markdown table generator.
The heading levels are wrong.
Heading levels come from text-size ratios, so they can be off depending on the document design. Open the result and adjust the number of #.
How do I check the MD file?
Paste it into Markdown preview to see right away how headings, lists and tables render.
Is my file uploaded?
No. The PDF is read and converted in your browser and never sent to a server.
Related tools
For HTML use PDF to HTML, for plain text PDF to text, and for an editable document PDF to Word. To turn Markdown back into a PDF use Markdown to PDF, and to turn HTML into Markdown use HTML to Markdown. Your file is processed only in your browser and never sent to a server.