What Markdown is, and why convert to it
Markdown is plain text with a few simple marks for structure: # for a heading, - for a bullet, | between table cells. It opens in any text editor, pastes cleanly into Notion, Obsidian, GitHub, Jira and most content systems, and it’s the format AI assistants read most reliably. Converting a PDF to Markdown gives you the words and the outline of the document, without the fixed page layout that makes PDFs hard to edit.
How to use it
- Choose a PDF that contains selectable text (see the scanned-PDF note below).
- Choose clean-up options. Remove page numbers drops lines that contain only a number or “Page 3 of 10”. Remove repeated headers and footers drops lines that appear at the top or bottom of most pages, such as a report title or a confidentiality notice.
- Press Convert to Markdown, check the result, then copy it or download a
.mdfile.
How the structure is detected
PDFs don’t store “this is a heading”; they store text at a size and position. The converter works out the document’s normal body text size, which is the size used by the most characters, and then:
- marks short lines set much larger than body text as headings: about 1.6× larger becomes
#, 1.3× becomes##, and slightly larger becomes###; - turns lines starting with •, ▪, – or * into bullet items, and lines starting with “1.” or “a)” into numbered items;
- joins lines of the same size into paragraphs, starting a new paragraph at a larger vertical gap, and repairs words hyphenated across lines;
- turns lines with wide gaps between columns into Markdown table rows.
This works well for reports, manuals, academic papers and slide handouts. It’s a best guess, so review headings before publishing. Bold and italic text, images, footnote links and complex tables with merged cells aren’t converted.
Scanned or complex PDFs
If the converter finds no text, the PDF is a scan. Further down the page you can load an external AI converter that uses OCR to read page images. It handles scans and complicated layouts better, but it runs on a third-party server, so your file is uploaded there, and it can take a minute to start.
Tips
- Converting only the chapter you need is faster and gives cleaner output: extract it first with Split PDF.
- Giving Markdown to an AI assistant instead of a raw PDF often produces better summaries, because headings tell it how the document is organized.
- If a heading level looks wrong throughout, use your editor’s find-and-replace on
##to promote or demote them all at once.
Scanned PDFs: AI converter for scanned or complex PDFs
The tool at the top of the page reads text that’s already in the PDF. For scanned pages you can use the external engine below. It does more work (recognising characters in page images), takes longer, and requires uploading the file to a third-party service.
Load the external engine
AI converter for scanned or complex PDFs runs on an open-source application hosted on Hugging Face Spaces by its independent developer, not on ilovpdf. When you load it, your browser connects to huggingchat-pdf-to-markdown.hf.space, and files you upload in the panel are sent to that service.
- Don’t upload confidential or personal documents (ID cards, medical, financial or legal records) to external engines.
- If the engine hasn’t been used for a while it may take up to a minute to start. Occasionally it may be unavailable; try again later.
- We check each engine regularly and replace engines that stop working well.
Frequently asked questions
Is my PDF uploaded?
No, the built-in converter runs entirely in your browser. Only the optional AI converter further down the page uploads files to an external service.
Why are some headings missing or wrong?
Headings are detected from font size. Headings set in the same size as body text, only in bold, can’t be told apart reliably. Review and adjust the result.
Does it convert tables?
Simple tables with clear gaps between columns become Markdown tables. Tables with merged cells or wrapped text inside cells may need tidying. For spreadsheets, use PDF Table Extraction.
Are images included?
No. Markdown output contains text only.
Which apps can open the .md file?
Any text editor, plus Notion (Import → Markdown), Obsidian, VS Code, Typora, GitHub and most wikis.
This tool is built and maintained by ilovpdf. It runs entirely in your browser using the open-source pdf-lib and PDF.js libraries, which we host ourselves. Your file is read and processed on your device and is never uploaded. See our Privacy Policy.