Skip to main content
PDFON

Edit and extract text

How to Extract Text from a Scanned PDF with OCR

By PDFON team · Last reviewed:

A scanned document is a picture of text, so you cannot search it, select a sentence, or paste a paragraph into an email. Optical character recognition, or OCR, looks at the picture and works out which letters it shows.

The PDF OCR tool runs the open-source Tesseract engine in your browser, with English and Hindi language data loaded from this site. This guide explains how to use it, what results to expect, and why you should always check the result.

Step by step

  1. Open PDF OCR and add a scanned PDF or one or more photos (JPG, PNG, or WebP) with browse from device.
  2. Under Recognition Language, choose English, Hindi, or English + Hindi to match the document.
  3. For PDFs, choose an Image Resolution. 300 DPI reads small print more reliably, and 150 DPI is faster.
  4. Process all pages or a custom page range. One run can include up to 50 pages.
  5. Select Recognize Text (OCR) and wait. OCR is demanding, and phones take noticeably longer than computers.
  6. Read the extracted text preview, then use Copy Text or Download Searchable PDF.

What accuracy to expect

Results depend on the quality of the image more than anything else. In our tests with clean, straight, synthetic images, the word error rate was 0% for both English and Hindi. On a synthetic phone photo of an English page, it was 4.3%; every error came from one heading line that was not recognized at all. On a synthetic phone photo of a Hindi page, it was 16.9% at full resolution and 15.3% when the photo was scaled down to 2000 px, so a noticeable share of words was wrong.

Our tilted, blurred, low-contrast test images produced text that had nothing to do with the original. Real scans can be worse than our tests. Treat OCR output as a draft that needs checking, especially for names, numbers, and amounts.

Getting better results

  • Scan at 200 to 300 DPI. Lower resolutions lose the detail that separates similar letters.
  • Keep pages straight. A tilt of a few degrees can damage recognition badly.
  • Use even light without shadows across the text, and avoid glossy reflections when photographing pages.
  • Choose the right language. Running Hindi text with only English selected produces nonsense.
  • Crop away dark borders and fingers before adding photos.

Copying text versus a searchable PDF

Copying the text is the right choice when you want the words elsewhere: in an email, a spreadsheet, or a word processor, where you will edit them anyway. The preview lets you read through the text and spot mistakes before copying.

A searchable PDF is the right choice when you want to keep the document as it looks but make it findable, for example in an archive of scanned letters that you will search by name later. The scan stays as the visible page, so recognition mistakes do not change what readers see; they only affect what search finds.

Searchable PDFs

A searchable PDF keeps the page images and adds an invisible layer of recognized text on top, so you can search with Ctrl+F and select text while the page still looks like the scan. To keep files manageable, the page images in the searchable PDF are limited to 2000 px on the longest side.

For Hindi, search and selection work, but text copied from some PDF viewers can contain extra spaces inside words, because of how Devanagari characters are positioned. The text preview and the copy button give cleaner text than copying from the PDF.

Limitations and things to check

  • OCR makes mistakes. Always check the result before relying on it, and compare numbers and names with the original.
  • Handwriting, decorative fonts, tables, and multi-column layouts are recognized poorly or in the wrong order.
  • Only English and Hindi are available.
  • Processing is limited to 50 pages per run to keep the browser stable; split longer documents.
  • Large, high-resolution documents need a lot of memory and time, especially on phones.

Frequently asked questions

Is my document sent to a cloud OCR service?

No. Recognition runs on your device. The OCR engine and language files are loaded from this site, and our code does not upload your document.

Why is the text in the wrong order?

OCR reads text in blocks. Columns, sidebars, and tables can be read in an order that differs from how a person reads them. Fix the order after copying.

Can it read handwriting?

Not reliably. The engine is designed for printed text, and handwritten notes usually produce many errors.

Written by the PDFON team. Check results before relying on them.