Convert PDF to Markdown

Markdown is plain text with a light touch of formatting: a # for a heading, a dash for a list item, stars around bold words. This tool reads a PDF's text and rebuilds its structure in Markdown, so you can paste a report into a wiki, a README or a notes app without retyping it or cleaning up a mess of broken lines. Your PDF is converted in your browser and never uploaded.

  • Free
  • No sign-up
  • Nothing uploaded
Loading the tool…
  • Headings, lists, bold and italic
  • Links and code kept
  • Tables from tagged PDFs
  • Preview, copy or save as .md

How to convert a PDF to Markdown

Four steps, start to finish.

  1. 1

    Open the PDF

    Choose, drop or paste a PDF up to 100 MB. Its text is read page by page.

  2. 2

    Check the result

    See it as it reads in Preview, or as Markdown text. Leave out headers and footers, or mark page breaks.

  3. 3

    Copy or download

    Copy the Markdown, or download it as a .md file named after the PDF.

How the PDF is turned into Markdown

A PDF doesn't store paragraphs and headings the way a word processor does: it stores pieces of text and where to draw them. So the converter works out the structure from what it can read, in one of two ways.

  • Tagged PDFs. Many PDFs saved from Word and other office apps carry tags, the same structure a screen reader follows: this is a heading, this a paragraph, this a table with rows and cells. When a PDF has them, they decide the Markdown, including real tables. Text the tags mark as page furniture, such as running heads, is left out.
  • Other PDFs. Without tags, the layout decides. The most common text size is taken as body text and larger sizes as headings, the largest first (#, ##, ###). Lines close together become one paragraph, and a word broken by a hyphen at a line's end is joined up again. A line starting with a bullet or a number such as "1." starts a list item, nested by its indent. Lines in a fixed-width font become a code block.

In both, bold and italic words stay bold and italic (between stars in the Markdown), words set in a fixed-width font become inline code (between backticks), and words under a web or email link stay a link to the same address.

Headers, footers and page breaks

Lines repeated at the top or bottom of most pages (a document title, a company name, "Confidential") and page numbers are left out, since in Markdown they would interrupt the text on every page. Switch Leave out headers and footers off to keep them.

A paragraph that runs onto the next page is joined up across the page break when the next page carries on mid-sentence. If you would rather see where each page ended, switch on Mark page breaks: a horizontal rule (---) is put between pages, and nothing is joined across them.

What isn't converted

  • Pictures. Photos, charts and drawings aren't part of the Markdown; only text is.
  • Tables in untagged PDFs. Without tags a table's cells come out as lines of text, since there is no reliable way to tell a table from columns of words.
  • Several columns. Text in two or three columns comes out in the order the PDF stores it, which is usually, but not always, column by column.
  • Scans. A scanned PDF has pictures of text, not text. Make it searchable with OCR PDF first, then convert the searchable copy here.

Up to 300 pages are converted at a time; split a longer document with Split PDF. Everything happens in your browser, on your device: the PDF is never uploaded, and there is no account or daily limit. An encrypted PDF has to be unlocked first. To compare two versions of a document's wording instead, use Compare PDF.

Updated

PDF to Markdown: common questions

What people ask before they use it.

How do I convert a PDF to Markdown?

Open the PDF here; it is converted as soon as its text is read. Check the preview, then copy the Markdown or download the .md file.

Does it keep tables?

Yes, in tagged PDFs, which many office apps write: their tables become Markdown tables. In untagged PDFs a table's cells come out as lines of text.

Why is my Markdown empty?

The PDF has no text in it, only pictures of text, as a scan does. Run it through OCR PDF first, then convert the searchable copy.

Does it use AI?

No. It follows fixed rules about the PDF's tags, text sizes, spacing and markers, so the same PDF always gives the same Markdown.

Is my PDF uploaded?

No. It is converted in your browser, on your device, and never sent anywhere.