About this tool

PDF to Markdown Converter

Turn a PDF into a Markdown file with its structure in place: headings, bold and italic text, bullet and numbered lists, links and simple tables. Repeated headers and page numbers are left out. Your PDF is never uploaded.

  • Opens with Markdown ready
  • Headings from font sizes
  • Lists, links and simple tables
  • Your PDF stays on your device

TL,DR: To convert a PDF to Markdown, add the PDF above, pick the pages, keep Markdown selected and press the button. Larger text becomes # to ### headings, bold, lists, links and simple tables are kept, and repeated headers are removed. Copy the result or download the .md file; nothing is uploaded.

Price
Free, no account
Upload
None, runs in your browser
Formats
Plain text (.txt) or Markdown (.md)
Pages
All, or only the ones you pick
Scanned PDFs
Not read (no OCR)

Last updated

Why convert a PDF to Markdown?

Markdown is plain text with a few marks for structure: # for a heading, - for a list item, **bold**, [text](link). It opens in any editor and is what wikis, note apps, GitHub and docs sites use.

It is also a good format for AI assistants and search tools. They read the headings and lists as structure, so a PDF in Markdown is easier for them to summarise and quote than the same words as one long block.

How to convert a PDF to Markdown

  1. Add the PDF

    Drop it on the box or tap Select PDF files. Add more than one if you like.

  2. Pick the pages

    All pages start selected. Click the ones you don't need, or type the pages you want, e.g. 1-3, 6.

  3. Choose the settings

    Pick Text or Markdown, join paragraphs or keep the PDF's lines, and leave Remove repeated headers and footers on.

  4. Copy or download

    Press the button, check the preview, then press Copy text or Download. Several files come in a ZIP.

What can this PDF text converter do?

  • Real paragraphs, not broken lines

    Lines of the same paragraph are joined, and a word split by a hyphen at the end of a line (exam- ple) is put back together. Prefer the PDF's own lines? Choose Keep PDF lines.

  • Two-column pages in reading order

    Papers, newsletters and magazines set in two columns are read down the left column, then the right, instead of mixing the two sides line by line.

  • Headers and footers removed

    Page numbers, running titles and other text repeated at the top or bottom of most pages can be left out, so they don't interrupt your sentences.

  • Markdown with structure

    Larger text becomes #, ## or ### headings, bold and italic stay, bullets and numbered lists become Markdown lists, and links keep their address.

  • Simple tables

    Rows of aligned columns become a Markdown pipe table, or tab-separated lines in a .txt file that paste straight into a spreadsheet.

  • Pick the pages you need

    Every page is shown as a thumbnail. Click to leave a page out, Shift+click for a run, or type 3-7, 12 and read just those.

  • Preview and copy

    See the text before you download it, and copy it all with one button to paste into a document, a chat or an AI assistant.

  • Many PDFs, or a file per page

    Add several PDFs at once and get one text file each, or split every page into its own file. Several files come in one ZIP.

When do you need the text of a PDF?

  • Quoting and editing

    Copy a section of a report or contract into your own document without retyping it or fixing broken lines by hand.

  • Notes and wikis

    Turn a PDF handout into Markdown for Obsidian, Notion, a GitHub README or a docs site, with the headings and lists already in place.

  • Feeding AI tools

    Chat assistants and search indexes work best with clean text. Remove the headers and page numbers first and the text reads as one piece.

  • Searching and comparing

    Plain text is easy to search with grep, compare with a diff tool or load into a script, unlike the PDF itself.

  • Accessibility

    A .txt file reflows on any screen and works well with screen readers and text-to-speech apps.

  • Archiving

    Text files are tiny and will open in any editor decades from now, which makes them a good companion copy of an important PDF.

How to get text from a PDF on any device

On Windows or Mac

Open this page in Chrome, Edge, Firefox or Safari, drop the PDF on the box, click any pages you don't want, choose Text or Markdown and press the button. Copy the preview or download the file.

On iPhone or iPad

Open the page in Safari, tap Select PDF files and pick the PDF from Files. After converting, tap Copy text to paste it into Notes or Mail, or Share / Save to Files to keep the file.

On Android

Open the page in Chrome, tap Select PDF files, pick the pages and tap the button, then Copy text or Download. The file lands in your Downloads folder.

On a Chromebook or Linux

It runs in any modern browser, so there's nothing to install.

Which parts of the PDF become Markdown?

The converter looks at how the text is set on the page:

  • Headings: short lines set clearly larger than the body text. The biggest size becomes #, the next ##, and smaller ones ###.
  • Bold and italic: words in a bold or italic font are wrapped in ** or *.
  • Lists: lines starting with •, ◦, ▪, -, – or * become bullet items; 1. and 1) stay numbered; a) items are kept with their letter. Indented items are nested.
  • Links: text under a web or email link in the PDF becomes [text](address).
  • Tables: rows of cells that line up in columns become a pipe table.
  • Characters such as *, _, # and | in the text are escaped, so they show as written.

How is the text put back in reading order?

A PDF doesn't store lines or paragraphs. It stores short pieces of text, each drawn at an exact spot on the page. Mozilla's PDF.js, the PDF engine inside Firefox, reads those pieces and their positions in your browser.

Pieces on the same baseline are joined into a line, with a space wherever there's a gap. An empty vertical band that the lines don't cross marks two columns. Lines are then grouped into paragraphs by the space between them, by indents and by changes of font size, and list markers such as • or 1. start a new item.

How does it compare with copying text from a PDF viewer?

ComparedThis toolSelect all and copy
Where the PDF goesStays on your deviceStays on your device
Line breaksParagraphs joined, hyphens fixedA break at the end of every line
Two columnsLeft column, then rightOften mixed line by line
Headers and page numbersCan be removedCopied into the text
Headings and listsKept as MarkdownLost
Many pages or PDFsOne click, one file or a ZIPPage by page
Scanned pagesNot read (no OCR)Not read

Frequently asked questions

How do I convert a PDF to Markdown for free?

Add the PDF on this page, keep the pages you need selected, leave Markdown chosen and press the button. Copy the Markdown from the preview or download the .md file. There's no sign-up and no limit.

Why did a heading come out as normal text?

Headings are found by font size. A heading set in the same size as the body text, only in bold, is kept as **bold** text rather than a heading. A long line in a large font isn't treated as a heading either, because headings are short.

Is my PDF uploaded?

No. Your browser opens the PDF, reads its text and writes the file on your device. Nothing is sent anywhere, and there's no account and no file limit.

Why is the text empty for some pages?

Those pages have no text layer: they are pictures of text, usually from a scanner or a phone camera. This tool reads stored text and doesn't do OCR, so the result lists those pages. You can still save them as images with the PDF to image converter.

Can I convert only some pages?

Yes. Click a page to leave it out, Shift+click to change a run of pages, use Odd or Even, or type the pages you want, like 2-5, 9, and press Select these.

Does it handle two-column layouts?

Yes, for pages with two text columns: the left column is read top to bottom, then the right one, and titles that run across both columns stay in place. Pages with three or more columns, or text boxes scattered around the page, may come out in a different order.

What does Remove repeated headers and footers do?

It looks at the top and bottom 8% of every page and leaves out text that appears there on at least 60% of the pages, ignoring numbers. That removes running titles and lines like Page 3 of 20, but keeps a heading that appears only once.

Are tables kept?

Simple tables are. When two or more lines have cells that line up in columns, they become a Markdown table, or tab-separated lines in a .txt file. Merged cells, cells with several lines of text and tables without clear gaps may come out as plain lines instead.

Can I convert a password-protected PDF?

If the PDF opens without a password and only blocks printing or copying, yes. If it asks for a password to open, save a copy without the password first.

Which encoding do the files use?

UTF-8, so accented letters, symbols and non-Latin scripts are kept. Notepad, TextEdit, VS Code and every modern editor open it correctly.

Built with the open-source PDF.js and fflate libraries (MIT and Apache-2.0 licences). Mozilla's PDF.js reads the text and its position on each page; lines, columns and paragraphs are rebuilt in your browser, so nothing leaves your device.