Skip to content
All tools

PDF to Text Converter

Extract the plain text from a PDF.

Extract the plain text from a PDF into a .txt file. The text is read line by line in reading order, so you can paste it into an email, a note or any editor, search it, or use it in another program.

For scanned PDFs, which contain pictures of pages instead of text, you can turn on OCR to recognize the words first.

How to convert PDF to text

  1. Drop your PDF on the page or choose it from your device. If it is password protected, enter the password when asked.
  2. Choose all pages or a page range. Turn on OCR if the PDF is a scan, and Add page markers if you want a marker at the start of each page.
  3. Select Extract text, check the preview, and download the .txt file.

Why no upload matters

The text inside a PDF is the content itself, such as the clauses of a contract or the figures in a statement. The text is extracted in your browser on your own device, and OCR also runs on your device. Nothing is sent to a server to extract it. OCR data is downloaded from this site the first time you use it, and your browser usually keeps it for next time.

What converts well

  • PDFs created from text, such as reports, articles, e-books, statements and exported documents.
  • Lines are rebuilt in reading order. With Add page markers on, each page starts with a marker.
  • Text in any language the PDF contains, saved as UTF-8 so special characters and other alphabets are kept.
  • Only the pages you choose, with a range such as 1-3, 7.
  • Scanned pages, when OCR is turned on. The text is recognized in the language of this page (English).

Limits

  • The result is plain text. Fonts, bold text, images, tables and layout are not kept. For an editable document with formatting, use PDF to Word.
  • Multi-column pages and tables may come out with lines from different columns next to each other.
  • OCR accuracy depends on the scan quality. Handwriting and very small or blurred text are not recognized reliably.
  • If a PDF has no real text and OCR is off, the result is empty and the tool tells you so.

Frequently asked questions

How do I extract text from a PDF?

Drop the PDF here and select Extract text. You can copy the text from the preview or download it as a .txt file.

Why is my text file empty?

The PDF is probably a scan, which contains images of pages instead of text. Turn on OCR and extract again.

Can I extract text from only some pages?

Yes. Choose Custom pages and type the pages you need, for example 2-4, 9.

Can I extract text from a password-protected PDF?

Yes, if you can open it. If a password is needed, you enter it when you open the file and it is only used on this device. The exported file has no password or restrictions, so only do this with files you own or have permission to use.

Is my PDF uploaded?

No. Text extraction and OCR both run in your browser on your own device. Nothing is sent to a server to extract the text. OCR data is downloaded from this site the first time you use it, and your browser usually keeps it for next time.

Which encoding is the text file in?

UTF-8, which opens correctly in current text editors.

How do I keep headings and formatting?

Use PDF to Word for an editable document, or PDF to Markdown for text with headings and lists marked up.