PDF to Markdown

How to convert a PDF to Markdown

Upload the PDF, get Markdown back. Headings, lists and tables stay in the structure they had on the page. Nothing to install and no account needed to try it.

Convert a PDF in three steps

  1. Open the app with the Try it free button.
  2. Upload your PDF. You can upload up to 10 files at once.
  3. Read the Markdown in the browser, then copy or download it.

The same steps work for Word (.docx), PowerPoint (.pptx), Excel (.xlsx), CSV, plain text and images.

What a good PDF to Markdown conversion keeps

A PDF is a set of drawing instructions: put this text at this position on this page. It does not store a heading, a paragraph or a table as such. A converter has to work them out again. Check these five things in any output.

  • Headings. A heading becomes a line that starts with #, so you can split the document by section.
  • Tables. A table becomes a Markdown table, with each value in its own cell. A table that turns into loose lines of text loses the link between a number and its column.
  • Reading order. On a two-column page the left column comes before the right one. A weak converter mixes the lines of both.
  • Page furniture. Repeated headers, footers and page numbers do not end up in the middle of a sentence.
  • The exact words. The text matches the file, character for character. A converted number that differs from the source is worse than a missing one.

This is how a financial table looks after conversion:

| ($ in millions) | Q2 FY27 | Q1 FY27 | Q/Q | | --- | --- | --- | --- | | Revenue | $96,221 | $81,615 | 18 % | | Gross margin | 75.0 % | 74.9 % | 0.1 pts |

Ways to convert a PDF to Markdown

MethodWorks well forWatch out for
Copy and paste from a PDF readerA few paragraphsTables, headings and columns all flatten into plain text
A code library you run yourselfSimple, text-only PDFs and developers who want full controlTables and scanned pages need extra work and tuning
An LLM that reads each pageA handful of complex pagesThe cost is per page and repeats on every re-run. The model can also rewrite numbers.
A conversion service such as docs2mdFiles with tables and scans, and archives of any sizeYou upload the file, so check the privacy terms first

Scanned PDFs

A scanned PDF has no text to copy, only a picture of each page. The converter has to read the picture with OCR before it can write any Markdown. docs2md does this for pages with no text layer, such as faint scans and phone photos.

Converting many PDFs

One file is a quick job. A whole archive is a cost question. Converting by page with a language model costs more with every page, and you pay again every time you change the prompt or move to a new model.

docs2md copies the text from the file instead of asking a model to rewrite it. An API is available for batches, so a data team can run an archive through a script.

Questions

Is it free?

You can try it free. Upload a file in the app and read the result before you decide anything.

Does it keep tables?

Yes. Tables come out as Markdown tables, so a row stays a row.

Can it convert a scanned PDF?

Yes. Pages without a text layer go through OCR.

Which other files can I convert?

PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx), CSV, plain text and images (PNG, JPG, TIFF, BMP, WebP). See the guides for DOCX and PPTX.

Is the output good for RAG and LLMs?

Markdown is a common input for both. Headings give you clean places to split a document into chunks, and tables stay whole.

Convert your own PDF

Upload a file and compare the Markdown with the original page.