PDF to text

Extract text from a PDF

This reads the text stored in the PDF, so it is fast and exact, and scanned pages are read with OCR on the way. Pages with two or three columns are read one column at a time. Markdown marks headings with # signs and keeps tables, lists, bold and italic text, HTML gives a web page with a section for each PDF page, and JSON lists pages, headings, paragraphs and tables with their positions for use in your own code.

Also known as PDF to TXT, extract text from PDF, PDF to Markdown and copy text from PDF.

  1. Choose a PDF.
  2. Pick Plain text, Markdown, Web page (HTML) or Data file (JSON).
  3. Select Extract text and download the file.

Read the PDF to text guide

PDF to text: questions and answers

How do I extract text from a PDF?

Choose a PDF, pick Plain text, Markdown, Web page (HTML) or Data file (JSON), and select Extract text. Download the file or copy it. The text stored in the PDF is read directly, so it is fast and exact, and pages with two or three columns are read one column at a time.

Can I convert a PDF to Markdown?

Yes. Pick Markdown and headings become # and ## lines, while bullet lists, bold, italic and tables are kept as Markdown. Charts drawn in the PDF have their data written as a table under the chart’s title. The result also shows an estimate of how many tokens the text is for an AI model.

Does PDF to text work on scanned PDFs and photos of pages?

Yes. Scanned pages are recognized with OCR as they are read, which takes longer, and a Stop button appears while it runs. You can also choose a JPG or PNG photo, scan or screenshot of a page, or paste a screenshot with ⌘V or Ctrl+V, and it is read as a one-page scanned PDF.

Can I extract text from Word, Excel or PowerPoint files too?

Yes. A .docx, .xlsx, .pptx, .odt, .ods or .odp file is laid out as a PDF in your browser first, the same way Word to PDF does it, and then its text is read in the format you picked. That gives you Markdown or JSON from an Office file in one step.

What is the JSON output for?

JSON is for using the text in your own code. It lists pages and their blocks, such as headings, paragraphs, list items, tables and charts, each with its type and its box on the page, plus fonts and a section outline with page ranges. Page headers and footers are marked, so you can skip them.

Related tools