PDF to Markdown
Convert a PDF to Markdown with headings and lists inferred from the layout.
Markdown sits between plain text and a formatted document: readable as-is, structured enough to keep headings and lists, and accepted by every note-taking app, wiki and static site generator. This converts a PDF into Markdown by inferring structure from how the text is laid out.
Your file never leaves your device. The PDF is read and converted by JavaScript running in this tab. Nothing is uploaded.
Enter your details
Result
Fill in the fields above and your result will appear here.
What the PDF to Markdown does
A PDF records no structure at all — no headings, no lists, no paragraphs, just positioned characters. Anything resembling structure has to be inferred, and this tool uses the signals that are actually available: line length, capitalisation, leading symbols and punctuation.
Short lines in capitals become level-two headings. Short lines starting with a capital and lacking end punctuation become level-three headings. Lines beginning with a bullet character, a number and a dot, or a letter and a bracket become list items. Everything else stays a paragraph.
How to use this tool
- Select your PDF. Conversion begins automatically.
- Read the preview and check the inferred headings look sensible.
- Download the .md file.
- Open it in your editor and correct any headings the heuristics got wrong — expect to do a little of this.
How structure is inferred
Worked example
Example: a policy document
| "ELIGIBILITY CRITERIA" | → ## Eligibility Criteria |
| "Documents required" | → ### Documents required |
| "1. Aadhaar card" | → - Aadhaar card |
| "Applicants must submit…" | → paragraph, unchanged |
Documents with consistent formatting convert well. Ones mixing capitalised emphasis with capitalised headings need editing afterwards.
What your result means
Expect to edit the result. The heuristics are reasonable but cannot be right every time, because the information they are inferring was never stored.
Headings are the most useful output — they give a document an outline that plain text lacks.
Tables do not convert. A PDF stores no table structure, so cells arrive as separate lines.
Important considerations
- Documents with clear typographic hierarchy convert best. Ones using capitals for emphasis will produce spurious headings.
- Numbered lists become unordered ones, since the original numbering is often part of the text rather than a list structure.
- Images are not extracted. Use the image extractor separately and reference them in the Markdown.
- For a straight text dump with no inference, PDF to TXT is more predictable.
- For an editable document rather than Markdown, use PDF to Word.
Limitations of this tool
- Scanned PDFs contain no text layer and produce nothing. OCR is required for those.
- Password-protected PDFs cannot be opened without the password.
- Multi-column layouts interleave, because text is read by vertical position across the page.
- Headings and lists are inferred from formatting cues and will sometimes be wrong.
- Tables, images and inline formatting such as bold and italics are not converted.
Frequently asked questions
Why are some headings wrong?
Because a PDF stores no heading information — it has to be guessed from capitalisation and line length. Documents that use capitals for emphasis will produce false headings. Expect to correct a few.
Do tables convert?
No. A PDF does not record that anything is a table, only where each piece of text sits. Cells come out as separate lines and need rebuilding by hand.
What about images?
They are not included. Use the image extractor separately, then reference the files in your Markdown.
Is this better than PDF to TXT?
It depends what you want. Markdown keeps an outline and list structure, which is better for notes and documentation. TXT is more predictable because it makes no guesses.