Skip to content
TOOL FOR EVERYTHING
Open menu

Convert PDF to text online

Choose a PDF and this PDF to text converter pulls out every word, using OCR for scanned pages, ready to copy or save as a text file.

Last updated Built and maintained by Rana Huzaifa

Your files never leave your device. Everything is processed in your browser and nothing is uploaded.

How to use the PDF to text converter

  1. Press Choose PDF, or drop a PDF onto the box.
  2. Keep Read scanned pages with OCR ticked if some pages are scans or photos, and choose their language.
  3. Press Extract text.
  4. Copy the text or download it as a .txt file. Each page is marked so you can find your place.

How the PDF to text converter works

Most PDFs made from documents already contain a hidden text layer. The converter reads it with pdf.js, the open-source engine behind Firefox's PDF viewer, which is fast and exact. Scanned PDFs are different: each page is just a picture, so there is no text to read.

For those pages, the tool draws the page as an image and runs OCR (optical character recognition) with the Tesseract engine to recognise the words. It decides automatically: a page with fewer than 20 letters in its text layer is treated as scanned. Everything happens in your browser, so the PDF is never uploaded.

The logic

For each page: read the text layer; if it has fewer than 20 letters or digits and OCR is on, render the page at twice its size and recognise the text with OCR; then add the page's text under a "Page n" marker.

Example

A 30-page report exported from Word is converted in a few seconds, because every page has a text layer and no OCR is needed. The summary reads "30 pages, 61,240 characters".

A 5-page scanned contract has no text layer at all, so all five pages go through OCR. That takes longer, around a few seconds per page, and the summary reports "5 pages, 5 read with OCR".

Tips and common mistakes

Only need a few pages?

Split the PDF first so OCR runs only on the pages you need. It saves a lot of time on long scans.

Check OCR text

OCR can misread characters on poor scans. Proofread names and numbers, or run the text through the grammar checker.

Text in a photo instead?

For screenshots and photos, use the image to text converter, which also accepts pasted images.

Prefer to listen?

The PDF text to speech reader reads the same text aloud or saves it as an audio file.

Frequently asked questions

Is my PDF uploaded?

No. Text extraction and OCR both run in your browser, so the file never leaves your device.

Can it read scanned PDFs?

Yes. Turn on OCR and choose the language of the text. Scanned pages take longer than pages with a text layer.

Does it keep the formatting?

It keeps line breaks and paragraphs, but not fonts, tables or columns, because the result is plain text.

Can I convert a password-protected PDF?

No. Remove the password in your PDF reader first and save an unprotected copy.