All guides

How to OCR confidential documents without the cloud

Optical character recognition (OCR) turns a picture of text — a scan, a fax, a photo saved as a PDF — into real text you can search, copy, and edit. It is how a stack of scanned paperwork becomes something you can actually work with.

The catch is that most OCR services run in the cloud, and the documents people most need to OCR are often the most private ones. PDFPrivy’s PDF OCR tool runs the recognition in your browser instead, so scanned pages never leave your device.

How to convert a scanned PDF to text locally

  1. Open the PDF OCR tool and select your scanned PDF.
  2. Optionally limit the page range — OCR is CPU-heavy, so recognizing only the pages you need finishes faster.
  3. Click Extract text & preview and let the recognition run on your device.
  4. Review the recognized text, then copy it or download it as a file. Proofread anything important before you rely on it.

Why cloud OCR is a problem for confidential documents

A cloud OCR service needs the full page images on its servers, because that is where the recognition happens. For confidential paperwork that means another company holds a copy of exactly the content you were trying to protect, at least for a while.

PDFPrivy uses Tesseract.js, an open-source OCR engine, running inside your browser. Each page is rendered and recognized on your own device; your PDF and its pages are not uploaded to any server. The first run downloads the OCR engine and its language model (English or Arabic) from this site — those requests are the only ones you will see in the Network tab, and none of them carries your document.

Local OCR for legal, medical, and HR documents

Legal teams often need searchable text from signed contracts, court filings, or discovery scans. Running OCR locally means a draft agreement or a client’s correspondence isn’t handed to a third-party processor just to make it searchable.

In healthcare settings, referral letters, lab results, and insurance forms frequently arrive as scans. Keeping recognition on the device avoids sending patient information to an outside service for a task that doesn’t need one.

HR departments handle employment contracts, payslips, ID scans, and medical certificates. Local OCR lets you pull text out of them without adding another vendor to the list of places that personal data has been.

Local processing removes the OCR provider from the picture; it doesn’t replace your organisation’s own rules. Follow your policies on where confidential files may be stored and shared, and check the recognized text carefully — OCR mistakes in a name, a date, or a dosage matter.

Offline OCR, once it is set up

OCR needs two things on your device: the app itself, which your browser stores on your first visit with a connection, and the OCR engine plus its English language model (about 6 MB; Arabic adds about 0.7 MB), which is downloaded the first time you run OCR online. After that, OCR works with no connection at all.

The tool page shows “Available offline on this device” only once both are stored. If you open it offline before that, it tells you the OCR files are missing instead of failing halfway through.

Make the scan searchable, or turn it into Word

If you want the text inside the PDF rather than in a separate file, use Searchable OCR PDF, which adds an invisible text layer over the scan. For an editable document, Scanned PDF to Word puts the recognized text into a .docx. For a wider look at what to check in any online PDF tool, see the guide to whether online PDF tools are safe.

When local OCR is the right choice

  • Your PDF is a scan or photo with no selectable text, and you need the words out of it.
  • The document is confidential — legal, medical, financial, or personnel files — and should not go to a cloud OCR service.
  • You need OCR on a machine that is offline, or where uploading files is not allowed (after setting it up once online).

Honest limits of browser-based OCR

  • Accuracy depends on the scan. Clean, high-resolution printed text works well; low resolution, skewed pages, unusual fonts, and handwriting reduce accuracy.
  • It reads English and Arabic (choose the document language before you start); other languages are not supported.
  • OCR uses a lot of CPU and memory. Many high-resolution pages take a while, especially on phones.
  • If your PDF already has selectable text, OCR only makes it worse — the tool warns you and suggests copying the text or using PDF to Word instead.

Frequently asked questions

Are my scanned pages sent to a server for OCR?
No. Recognition runs in your browser, and your PDF is not uploaded. Only the OCR engine and language model are downloaded from this site, once.
Can I use this for legal or medical records?
The pages never leave your device, so there is no OCR provider to assess. You should still follow your organisation’s policies and proofread the output carefully.
Does the OCR work offline?
Yes, once the OCR files are on your device: run OCR once with a connection to download them (about 6 MB). After that it works offline, and the page shows “Available offline on this device”.
How accurate is it?
It varies with scan quality. Treat the result as a draft and check names, numbers, and dates against the original.

Ready to try it?

The tool runs locally in your browser — nothing is uploaded.