Skip to content

PDF to Markdown

Convert PDF to Markdown in your browser. Headings, lists, tables, bold text and links are written as Markdown, in the order the document reads, and shown beside the pages with a rendered preview before you save anything. Copy the Markdown or download it as an MD file, ready for ChatGPT, Claude, Obsidian, Notion or a README. Scanned pages are read with OCR on your device. The file is never uploaded.

Input
One PDF, or up to 20
Output
An MD file (a ZIP of them for several), or copied Markdown
Runs
In your browser. The file never leaves your device.
Cost
Free. No sign-up, no watermark.

How to convert PDF to Markdown

  1. Choose the PDF

    Drop a PDF onto the page, or click to choose one. You can add up to 20 at once. They stay on your device.

  2. Check the Markdown

    The box above the pages holds the Markdown as it will be saved. Click Preview to see it as a reader would: headings, lists, tables and links. Headers and footers is set to Leave out, so running titles and page numbers do not end up in the text; choose Keep if you want them.

  3. Pick pages, read scans

    Click the pages you want, or pick none to convert them all. Open a page to read it beside its own Markdown. If a page has no text because it is a scan, click Read scanned pages and its text is recognised on your device.

  4. Copy or download

    Click Copy Markdown to take it straight to the clipboard, or Convert to Markdown to download an MD file. Several PDFs come back as a Markdown file each, in a ZIP. More options sets what goes between pages and the language of scanned pages.

A PDF to Markdown converter you can check before you save

The Markdown, and how it reads

The Markdown appears as soon as the file is opened, in a box you can scroll, with its count of words and characters. Preview shows the same text rendered, so a heading that came out at the wrong level or a table that lost a column is seen before the file is saved, not after.

Headings from the document's own sizes

Text set larger than the running text becomes a heading. The largest size in the document is #, the next ##, and so on, and the levels are worked out for the whole document, so a section title on page 9 gets the level it has on page 2.

Lists and tables kept

Bulleted and numbered lines become list items, set in under the item they belong to. Rows of cells that stand under one another become a Markdown table, with the first row as its header.

Bold, italic, code and links

Bold and italic words keep their marks, text in a fixed-width font becomes code, and a link in the PDF becomes a Markdown link to the same address. Characters Markdown would misread, such as a star or a bar in a table, are escaped.

In the order it reads

A PDF stores text in the order it was drawn. Here two columns are read down the left and then down the right, a title above them comes first, and a paragraph that runs over a column or a page is joined back into one.

Clean text for an LLM or a note app

Page numbers and running headers are left out, lines are joined into paragraphs and words hyphenated at a line end are mended. What is left is the document itself, which costs fewer tokens in ChatGPT or Claude and reads well in Obsidian, Notion or on GitHub.

Scanned PDFs to Markdown

A page that is only a picture says so, and Read scanned pages recognises its text with OCR in your browser, in any of 38 languages. The words then get the same headings, lists and paragraphs as any others.

Only the pages you want

Click pages on the grid, or type numbers and ranges. Each page shows how many words it gives, so an empty or scanned page is easy to spot.

Several PDFs at once

Add up to 20 files. Their pages share one grid, each marked with its file's letter, and every PDF becomes a Markdown file of its own in one ZIP.

Never uploaded, free

The PDF is read by your own browser, so even confidential documents never reach a server. There is no account, no page limit and no daily limit, and the result is a plain UTF-8 file that opens in any editor.

Frequently asked questions

How do I convert a PDF to Markdown?

Open the PDF here. Its Markdown is shown at once, with headings, lists and tables in place. Click Copy Markdown to paste it somewhere, or Convert to Markdown to download it. It is free and online, and the PDF is converted in your browser without being uploaded.

How do I convert a PDF to an MD file?

Open the PDF and click Convert to Markdown. The download is a file ending in .md, named after the PDF, in UTF-8. Several PDFs give an MD file each, together in one ZIP.

Does it keep headings, lists and tables?

Yes. Headings are found from the size of their letters, lists from their bullets and numbers, and tables from text that stands in columns under a first row. Bold, italic, code and links inside a line are kept too. Preview shows how all of it reads.

How are heading levels chosen?

By size. Text larger than the document's running text is a heading, and each larger size is one level higher, up to #. A bold line of ordinary size is written as bold, not as a heading, because it is as often a name or a total as it is a title.

Can I use the Markdown with ChatGPT, Claude or another LLM?

Yes. Markdown keeps a document's structure in plain text, which a language model reads more reliably than text copied from a PDF. Running headers and page numbers are left out and broken lines are joined, so there is less noise and fewer tokens. For retrieval, choose the page number as a comment under More options to keep track of where each part came from.

Can I convert a PDF to Markdown for Obsidian or Notion?

Yes. Download the MD file and put it in your Obsidian vault, or copy the Markdown and paste it into a Notion page, which turns the headings, lists and tables into blocks. The same file works as a README on GitHub.

Can I convert a scanned PDF to Markdown?

Yes. A scanned PDF is a picture of each page, so there is no text in it to convert. Open it here and click Read scanned pages: the text is recognised with OCR on your device and written as Markdown. Recognition can misread a name or a figure, so check those against the page.

Are images included in the Markdown?

No. The Markdown holds the document's text and structure, which keeps the file small and plain. To save the pictures inside a PDF use Extract Images, and to save whole pages as pictures use PDF to JPG.

Does it work with two-column PDFs?

Yes. Columns are read one after the other, not line by line across the page, and a paragraph that ends one column and goes on in the next is joined. A title or a table that spans both columns is kept in its place between them.

Why did a table come out as plain lines?

A table is recognised when its rows have text in the same columns. A table with merged cells, or with one column only, may be written as lines of text. For a table as a spreadsheet, PDF to Excel finds tables by their ruled lines as well.

Are formulas converted to LaTeX?

No. A formula is written with the characters the PDF holds for it, in reading order, not as LaTeX. Simple expressions read well; fractions and stacked symbols may need tidying by hand.

How are pages separated in the Markdown?

They are not: the document runs on, and a sentence that crosses a page is joined up. Under More options you can put a rule (---) between pages, or the page number as a comment such as <!-- Page 3 -->, which does not show when the Markdown is rendered.

Can I convert only some pages, or several PDFs at once?

Yes to both. Click pages on the grid, or type their numbers under Pages to convert, to convert only those. Add up to 20 PDFs to convert them together: each becomes an MD file named after it, in one ZIP.

What is the difference between PDF to Markdown and PDF to Text?

Markdown marks what the text is: a heading, a list item, a table, bold. Plain text has only the words. Use Markdown when the result will be read by a program or rendered, and PDF to Text when you want the words alone, line by line or with the page's layout kept by spaces.

Is my PDF uploaded?

No. The PDF is read, and scanned pages are recognised, by your own browser on your device. Nothing is sent to a server, so it works for confidential documents and keeps working if the connection drops after the page has loaded.

What if the PDF is password-protected?

A PDF that needs a password to open cannot be read. Open it with Unlock PDF first, using its password, then convert the unlocked copy.

Is my file uploaded anywhere?

No. PDF to Markdown runs entirely in your browser: the file is opened and processed on your own device and is never sent to our server. More in the privacy policy.

Is PDF to Markdown free to use?

Yes. PDF to Markdown is free, with no account to create and no software to install — open the page in a modern browser and start.

Choose what IwillPDF may use. You can come back and change this at any time from “Cookie settings” at the bottom of every page.

Details in the privacy policy.