How to OCR a Scanned PDF (English and Arabic)
6 min read
A scanner produces pictures, not text. That is why you cannot search a scanned contract, cannot copy a paragraph out of a scanned book, and get an empty file when you try to extract its text.
Optical character recognition solves this by reading the shapes of the letters and reconstructing the words. This guide explains how to run it, what determines whether the result is accurate, and how Arabic scans differ from English ones. Recognition runs on your device — the engine downloads once from a public CDN, but your pages are read locally.
1. Confirm you actually need OCR
OCR is slower and less perfect than reading embedded text, so only use it when you have to. Try selecting a sentence in your PDF: if the text highlights, it contains real characters and the PDF to Text tool will extract them instantly and exactly.
Only if nothing selects — or the page highlights as a single block — are you dealing with a scan that needs recognition. Many documents are a mix, with some pages typed and others scanned.
2. Run recognition on the document
The PDF OCR tool renders each page with pdf.js and passes it to a recognition engine running inside your browser. You choose the language, watch per-page progress, and download the recognised text as a .txt file.
There is a 30-page cap per document and a limit of three documents at a time. Rendering plus recognition is genuinely heavy work — the cap is there so a long scan does not make the tab unresponsive. For a longer document, split it first and process it in parts.
3. Scan quality decides accuracy
This is the part within your control, and it matters more than any setting. Recognition works by matching letter shapes, so anything that distorts those shapes costs you accuracy: low resolution, skew, shadows, uneven lighting, and creases in the page.
Aim for a straight, evenly lit scan at 200 DPI or more with good contrast between the text and the paper. If you are photographing a page with a phone rather than scanning it, hold the camera parallel to the page rather than at an angle, and avoid casting your own shadow across it.
If a scan is faint or greyish, increasing the contrast before recognition often produces a noticeably better result than feeding the washed-out original straight in.
- 200 DPI or higher, straight and evenly lit
- Good contrast between ink and paper
- Photograph pages square-on, not at an angle
- Boost contrast first if the scan looks washed out
4. Arabic, English and mixed documents
You can recognise English, Arabic, or both together. Choose the mode that matches the document: selecting a single language when the document really is monolingual generally gives cleaner results than the bilingual mode, because the engine has a narrower set of shapes to match against.
Arabic is intrinsically harder to recognise than Latin script — letters join, change form depending on position in the word, and carry dots and diacritics that a marginal scan can blur together. Expect to proofread Arabic output more carefully, and give Arabic scans the best resolution you can manage.
Whatever the language, treat OCR output as a draft. It is dramatically faster than retyping a document, but it is a reconstruction rather than a copy, and proper nouns, numbers and anything in an unusual font deserve a check.
Tools used in this guide
FAQ
Very good on clear, straight, high-contrast text at 200 DPI or more. Accuracy falls with blurry, skewed, low-resolution or heavily stylised text. Always proofread the result.
Yes — Arabic, English, or a bilingual mode for mixed documents. Arabic is harder to recognise because letters join and change shape, so use the best scan quality you can.
Rendering each page and then recognising it is heavy work. The cap keeps your browser responsive. Split longer documents and process them in parts.
No. Pages are rendered and read inside your browser. Only the recognition engine and its language data download once from a public CDN, then stay cached.