Home › Guides

🔎 How to Extract Text from a Scanned PDF with OCR (and Why Results Vary)

By the MZScan team · Updated 23 November 2026 · 6 min read

A scanned PDF looks like a document, but it is really a set of pictures. You cannot search it, copy a sentence or paste it into an email. Optical character recognition, or OCR, reads the letters in those pictures and turns them into real text. This guide explains how OCR works, how to prepare a scan so that the result is accurate, and what to check afterwards.

Read text from a scanned PDF in your browser

Open PDF OCR →

What OCR actually does

OCR software looks at the picture of a page, finds blocks of text, separates lines and characters and then matches shapes to letters it knows. The output is text that you can search, copy and edit. It does not understand meaning, so it can confuse look-alike characters, for example the letter O and the number zero, or the letter l and the number one.

What affects accuracy

Prepare the scan first

  1. Place the page flat on a plain dark surface and photograph it from directly above, in even light.
  2. Avoid shadows from your phone or your hand. Daylight from a window is usually enough.
  3. Use the scanner tool to crop to the page edges, straighten it and remove the grey background.
  4. Choose black and white for plain text pages, or keep colour when stamps or highlights matter.
  5. Save the result as a PDF or a clear image.

Run OCR step by step

  1. Open the OCR tool and choose your scanned PDF or image.
  2. Choose the language of the document. The tool offers Urdu and English, or both together.
  3. Start the recognition. Pages with a lot of text can take a little time, because the work is done on your own device.
  4. Copy the text or save the result, then compare it with the original picture.

Check the result carefully

Never assume that OCR output is perfect. Read it once against the scan, with special attention to names, phone numbers, dates, amounts, addresses and anything with numbers. A single wrong digit in a bank account or an identity number can cause real trouble. For legal, medical or financial documents, keep the original scan as the reference.

Handwriting, tables and other languages

Handwriting is difficult for any OCR engine, so expect poor results. Tables and multi-column pages may need manual tidying afterwards. Scripts that join letters, such as Urdu Nastaliq, are harder to read than plain printed English, so treat the output as a rough draft and proofread it carefully.

When OCR is the right tool

Privacy

Recognition runs in your browser, so the document is not uploaded. Some scripts and language files may be downloaded the first time, but your own pages stay on your device.

Quick summary

OCR turns pictures of text into real text. Better scans give better results: straight, evenly lit, high-contrast pages at around 300 DPI. Always proofread important details before you rely on the output.

Frequently asked questions

Does OCR work on handwriting?
Not well. OCR is designed for printed text, and handwriting usually gives poor results with any tool.

Will tables and columns be kept exactly as in the scan?
The focus is on the text. Tables and multi-column pages often need some manual tidying after recognition.

Are my pages uploaded during OCR?
No. Recognition runs in your browser, so your pages stay on your device.

Related guides

🔍 How to Improve Scanned Document Quality: Lighting, Crop, Skew and ReadabilityFix grey backgrounds, shadows, skewed pages and blurry text. A practical checklist for better phone scans, with the MZScan controls that matter.📷 How to Scan a Document with Your Phone (Free, No App Needed)Learn how to turn a phone photo into a clean, sharp document scan in your browser. Step-by-step tips for lighting, cropping and saving as PDF, JPG or PNG.✏️ How to Edit Text in a PDF or an Image Online (Your Own Files)Fix a typo, update a date or add text to your own PDF or photo in the browser. Learn the Edit, Erase and Add text tools, plus responsible-use rules.