Tutorials

How to make a PDF searchable with OCR (step-by-step)

Turn scanned PDFs and images into fully searchable, copy-pasteable documents with OCR — what OCR is, when you need it, accuracy tips, and a privacy-safe walkthrough.

Sofia Lindqvist · Technical WriterMay 25, 2026 13 min read
Share Post LinkedIn
How to make a PDF searchable with OCR (step-by-step)

Every organisation has a filing cabinet worth of scans. Contracts captured in 2004. Handbooks photographed in a hurry. Meeting minutes scanned on an office multifunction printer. They are real documents, but to your computer they are pictures of documents — and pictures cannot be searched. Type a name into your search tool, and nothing comes back.

OCR — optical character recognition — fixes this. It reads the pixels in a scan and reconstructs the words, producing a document that is both the original image and a searchable text layer. This guide explains what OCR actually does, when you need it, how to get it done well, and how to do it without sending confidential scans to a stranger's server.

The straight-to-the-point version: open the PDF to OCR tool, drop your scan, wait a moment, and download a searchable PDF. Everything below explains why that works and how to get the most out of it.

What 'searchable PDF' means

A scanned PDF is just an image wrapped in a PDF container. Open it in any viewer and you can see the document, but try to search for a phrase and you get zero results. The viewer has no text to match — only pixels.

A searchable PDF has two layers. The visible layer is the original scan image, so it still looks exactly like the paper document. The hidden layer is the text that OCR recognised, aligned invisibly behind the image. Because the text is there, search works, selection works, copy-paste works, and any indexing system can read the words.

The best of both worlds

You keep the authentic image of the original document and gain all the utility of real text. This is why searchable PDFs are the standard for scanned archives.

This is different from editing a scan, and different from converting it to Word. A searchable PDF preserves the original appearance; it just adds a working text layer on top. If your goal is to edit the content as a document, you would go further and convert — but for searchability and archiving, the searchable PDF is the right output.

When you actually need OCR

The first step in any OCR task is deciding whether OCR is needed at all, because plenty of PDFs are mistakenly sent through OCR every day. The test is simple.

Open the PDF and try to select a word with your cursor. If the text highlights and copies, the file already has a text layer — it is searchable and OCR would be redundant. If dragging the cursor just draws a box and nothing selects, the file is an image or scan, and OCR will help.

OCR is the right tool when:

  • A document exists only as paper or a photograph, and you need its words indexed.
  • You have a scan you want to search inside for names, figures, or phrases.
  • You need to copy text out of a scan for reuse elsewhere.
  • You are building or extending a document archive that must be full-text searchable.
  • You want to convert a scan to another format like Word or Excel, which requires a text layer first.

The companion guides on extracting text from images and scans and converting a scan to searchable text in 30 seconds cover the image and the fast-path variants in more detail.

How OCR works, in plain terms

Understanding the pipeline helps you predict when OCR will be accurate and what you can do to improve it. Modern OCR runs in several stages.

  1. Decoding — the scan is read and prepared. PDFs are rasterised page by page; photos are decoded from their image format. A resolution target of 300 DPI is enforced for recognition quality.
  2. Clean-up — the image is binarised (pushed toward black-on-white) and denoised so the recogniser deals with text, not scanner speckle.
  3. Layout analysis — the OCR engine works out the order of text on the page: paragraphs, columns, headings, tables.
  4. Recognition — a trained neural net maps image regions to characters. The core engine is Tesseract, the open-source standard.
  5. Serialisation — the recognised text is written out as a text layer, plain text, or displayed on screen.

The whole pipeline is CPU-bound and runs locally if you use an in-browser tool. On a modern laptop a twenty-page scan takes roughly fifteen seconds. It uses Tesseract.js, which compiles the C++ engine to WebAssembly so it runs in the browser and never sends your file anywhere.

Step-by-step: make a PDF searchable

The workflow is short. Here is the recommended procedure, using the PDF to OCR tool.

  1. Open the tool and drop your scanned PDF onto the page. The file loads into browser memory locally.
  2. Choose the document's language. English is default; a dozen major languages are available, and the right pick noticeably improves accuracy.
  3. Start the recognition. Progress is shown per page, since each page must be rasterised and read in turn.
  4. When it finishes, download the searchable PDF. The original scan remains the visible image; the text layer is added invisibly behind it.
  5. Verify the result — press Ctrl+F and search for a distinctive name or phrase from the document to confirm the layer is working.

That is the whole process. In Adobe Reader, Preview, or the PDF viewers in Chrome and Edge, Ctrl+F now finds text in your scan, selection works, and you can copy rows out for reuse.

A fast visual check

After OCR, search for the most unusual words in the document — proper names, technical terms, obscure places. Those are the ones most likely to reveal a misrecognition, and if they look right the rest almost certainly is.

Maximising OCR accuracy

OCR accuracy is governed more by your input than by the engine. These habits reliably improve results on any scanner.

  • Scan at 300 DPI or higher — the single biggest accuracy lever.
  • Prefer clean, flat, evenly lit pages — shadows and wrinkles introduce noise the recogniser mistakes for ink.
  • Use grayscale rather than full colour — colour adds no information for OCR and just slows decoding.
  • Hold camera photos parallel to the page — perspective distortion blinds the recogniser.
  • Choose the right language — a language model tuned to the document's script outperforms the default.
  • De-skew straight pages — any automatic straightening helps recognition more than you would expect.

On well-prepared scans, modern OCR lands above 98 percent character accuracy. Numbers are even more accurate if the engine runs a second, digits-only pass on regions flagged as amounts, dates, or figures — a technique nctools uses to keep financial scans trustworthy.

Handwriting is a different problem

OCR reads printed text extremely well and handwriting poorly. If you need to transcribe handwriting, OCR will get some of it — not enough to trust by itself. Treat handwriting OCR as rough transcription, not a finished record.

Accuracy versus effort: choosing the model

The Tesseract engine ships several model families that trade download size and speed against accuracy. The defaults balance them well for most people, but if you know what you are optimising for, you can choose.

  • Fast model — smallest download and roughly twice the speed, at a small accuracy cost. Good default for clean scans.
  • Standard model — the balanced middle ground most users should pick.
  • Best model — largest and slowest, a touch more accurate on messy text. Worth it for old books, worn type, or price lists where a single digit error is expensive.

For clean, modern business documents, the fast model is more than adequate. For scanned history or fragile originals, the best model earns its cost. The deep dive on Tesseract language packs and trade-offs has the full comparison.

Privacy and confidentiality

Scanned documents are frequently the most sensitive files an organisation owns — signed contracts, personnel records, medical history, financial statements. Sending those to a server-based OCR service means handing them to a data processor, with all the retention and jurisdiction questions that implies.

In-browser OCR runs on your own device. The scan is decoded, recognised, and re-serialised in your tab; the only network requests are for the application's own assets. You can watch the Network tab during a job and confirm the file never leaves. For a law firm digitising a privileged archive, or a clinic handling records, this distinction can be the entire reason to use a local tool at all.

Our longer article on converting PDFs privately covers the compliance implications in detail, and the security page documents the platform's measures.

Beyond search: what else the text layer enables

A searchable text layer is the foundation for a surprising number of workflows that all start with the same OCR step.

  1. Full-text search across an archive — index the text with any tool that reads PDF text.
  2. Copy and quotation — select text from a scan and paste it into documents, email, or a CRM.
  3. Conversion to other formats — a searchable PDF can be converted to Word or Excel because the text now exists.
  4. Translation — with the text extracted, you can translate a scanned document.
  5. Accessibility — a text layer lets screen readers read a previously image-only file.

The OCR step is the unlock; every downstream task is easy once the words exist as words. This is why organisations that digitise archives treat OCR not as a formatting nicety but as the core of the project.

Scans from your phone

Not all scans come from a flatbed scanner. Many arrive from phone cameras — photos of a contract snapped in a meeting, or a receipt photographed for expenses. Phone images bring extra challenges: perspective, glare, and inconsistent lighting.

The right tool for phone-camera documents is a dedicated document scanner that crops and de-skews the image first. The photo scanner turns a phone photo into a clean document and can export it as a PDF or extract its text, and the guide on scanning documents with a phone walks through the whole mobile workflow.

Batch OCR for larger archives

If you are digitising a whole cabinet rather than a single contract, repetition is the enemy. Batch OCR lets you drop many files at once and process them together, with progress reported per page and per file.

For large batches, keep the source clean and consistent — the accuracy habits above still apply, and consistent input types make reviewing the output much faster. Expect to verify a representative sample of pages rather than everything, since modern OCR on clean scans is reliable enough that spot-checking is proportionate.

If you will reuse this workflow month after month, consider the browser extension, which OCRs an image right from the context menu on any page, and check pricing for plans that remove usage limits. The documentation covers configuration in depth, and if you want to build OCR into your own pipeline, the developers page describes the pieces you would need.

The one-line takeaway

Making a PDF searchable is the difference between owning a pile of pictures and owning a working archive. The tool is a couple of clicks, the accuracy is excellent on clean scans, and when done in-browser it is completely private.

Choosing the output: searchable PDF, plain text, or hOCR

The same OCR pass can produce several kinds of output, and choosing the right one is a small decision with a large effect on what you can do with the result.

  • Searchable PDF — keeps the original scan as the visible page and adds a hidden text layer behind it. Best for archives, evidence, and anything where the original appearance must be preserved.
  • Plain text — returns just the recognised words. Best when you need the content itself for reuse, transcription, or feeding another system.
  • Tagged text — output that records layout hints alongside the words. Best when you want to reconstruct the document structure rather than just its content.

As a rule of thumb, archive original-looking scans as searchable PDFs and extract the substance as plain text when you need it elsewhere. The OCR to text tool produces the text form directly, and the PDF to OCR tool produces the searchable form. Using both, you cover both ends of the archival spectrum without redoing the recognition.

Accuracy by document type: set your expectations

OCR accuracy is not a single number — it is a distribution that depends on the material. Knowing what to expect each kind of document prevents both over-trust and unnecessary rework.

  • Clean printed text at good resolution — above 98 percent character accuracy. The dominant case, and effectively reliable for search.
  • Compact type like newspaper columns — very good, with occasional punctuation confusion.
  • Photocopies and lightly degraded text — strong for common words; proper names and technical terms are the fragile spot.
  • Stamps, handwriting, and poor originals — modest at best. Treat anything stamped or written by hand as needing human review.

The practical consequence: verify the distinctive words — names, product terms, foreign place names — and always read the figures in financial and legal material. A 98 percent accurate scan is highly valuable; it is simply not 100 percent, and the difference lives exactly where documents matter most.

Privacy preservation is the real feature

Scans aggregate sensitive content quickly — a filing project passes identity documents, personnel files, and signed agreements. Engine accuracy matters, but for most institutions the deciding property of an OCR tool is whether it ever sees that content.

Local, in-browser OCR closes that door completely. Language models download once and cache on the device; recognition runs against your own scan in your own tab; and there is no server to retain, subpoena, or breach. For a clinic, law firm, or public body this converts a privacy risk into a boundary that is auditable rather than trust-based. The technical verification — watch the Network panel, confirm only static assets load — applies to any vendor, and our reports on achieving searchable archives and privacy-first conversion give the checklist.

Performance and device considerations

People occasionally ask whether running OCR on their own computer is a downgrade versus sending it to a server farm. For the overwhelming majority of jobs the answer is no, because OCR is embarrassingly parallel across pages and a modern CPU is fast enough that the network round-trip you skip outweighs any server advantage.

Two practical performance habits keep large jobs fast. First, use multiple cores — good tools process pages in a small pool of workers, which matters on a 200-page filing project. Second, keep an eye on memory and battery on laptops; a very large batch is CPU-bound work and behaves best when the machine is plugged in and the tab stays focused. None of this is exotic — it is the same muscle memory as running any heavy local application, and it is the price of not shipping your documents anywhere.

Turn your scans into an archive

Turn a scan into a searchable PDF now with the PDF to OCR tool. If you are starting from a paper or camera original, begin with the photo scanner. And for everything else the blog and tool box have you covered.

Frequently asked questions

What does it mean to 'make a PDF searchable'?
It means adding a hidden text layer to a scanned or image-based PDF. Your eyes see the original scan, but the file also contains the recognised words, so you can search, select, copy, and otherwise index the text contained in the image.
Does a regular PDF need OCR?
No. A PDF created from a real text source already has a text layer — try selecting the text with your cursor. OCR is only needed when the PDF is a scan or picture with no selectable text.
How accurate is OCR on scanned documents?
On clean, well-lit printed text at 300 DPI, modern OCR reaches character accuracy above 98 percent. Accuracy falls with poor scans, low resolution, unusual fonts, and handwriting, but for ordinary business documents it is excellent.
Does OCR upload my documents?
Only if you use a server-based tool. In-browser OCR runs entirely on your device, so nothing is uploaded and nothing is stored. This matters for confidential scans.
Can OCR work with non-English documents?
Yes. Modern OCR engines support 100+ languages. Choose the document's language before recognition for the best accuracy, and separate models exist for languages with distinct scripts.
What resolution should I scan at for OCR?
300 DPI is the standard sweet spot for text recognition. Lower resolution hurts accuracy noticeably; higher resolution rarely helps and just slows processing.
SL

Sofia Lindqvist

Technical Writer at nctools