HomeGuides › Making a scan searchable

How to make a scanned document searchable

A scan is a photograph of a page. You can read it, but your computer cannot: searching finds nothing, and there is no text to copy. Text recognition fixes that — and produces a file with a peculiar property, a picture of a page with invisible words laid exactly over it. Here is how it works, what makes it go wrong, and what “searchable” does and does not promise.

What a searchable scan actually is

The finished file has two layers. The visible one is your scan, unchanged. The invisible one is the recognised text, positioned word by word over the words in the picture, and written in a mode that draws nothing at all. When you search, the reader searches that hidden layer and highlights the place on the image where the word sits.

Two consequences worth knowing:

Before recognising: get the picture right

Recognition reads pixels, so the quality of the pixels decides almost everything.

Resolution

About 300 dots per inch is the sweet spot for ordinary print. Below roughly 200 the letters have too few pixels to tell apart — an e and a c become the same handful of dots. Above 400 you mostly get a slower job and a larger file. If your scanner offers a dpi setting, that is the one that matters; scanning at 150 and hoping to fix it later does not work.

Straightness

Recognition works line by line, so a page that sits a couple of degrees off square is noticeably harder to read. Automatic straightening measures how well the rows of text line up at different angles and picks the best one — which means it only works when there are rows of text to line up. On a photograph or a mostly blank page it should decline to guess rather than rotate the page for no reason.

Contrast, and the trap in it

Turning a page black-and-white makes clean print sharper and is genuinely the best setting for a crisp photocopy. It is also the fastest way to destroy a document:

Always look at the preview before accepting a high-contrast setting, and keep the original appearance for anything faint or coloured. For a page photographed by phone, where one side is brighter than the other, a threshold that follows the light across the page keeps both ends readable where a single fixed threshold loses one of them.

What recognition can and cannot read

Printed text in a Latin alphabet is what these engines are good at. Expect trouble with:

Be wary of anything that offers to tidy up the recognition with AI. Correcting text a machine could not read means guessing at it, and a plausible guess in a document you will later rely on is worse than an obvious error.

Reviewing what came back

Good tools mark words the engine was less sure about. That is a useful hint about where to look — and no more than that. It is the engine's opinion of its own work, not a probability that the word is wrong, and words it felt confident about can still be wrong. Correct the ones that matter: names, amounts, reference numbers, dates.

Two words that get confused, and should not be:

Keeping the original, or rebuilding the page

There are two ways to produce the finished file, and the difference is worth choosing deliberately.

Keeping the original page adds the invisible text to the file you already have, leaving every byte of the scan alone. The page looks exactly as it did, the file grows by a few kilobytes, and nothing can be lost. This is possible only when you have not changed the page.

Rebuilding the page makes a new page out of the cleaned image. Necessary the moment you crop, straighten or adjust anything — and it is also what stops an old hidden text layer surviving underneath a new one. The cost is that a rebuilt page is flattened: form fields, links, attachments, layers and tags do not survive, and a digital signature certainly does not.

Check the output, not just that it downloaded

Open the finished PDF and try three things: search for a word you know is on page one; select a line and copy it, then paste it somewhere and see whether the spaces and line breaks survived; and look at the page to confirm it appears exactly as it did before. A text layer can be present and still be positioned wrongly, in which case searching finds the word and highlights the wrong part of the page.

A note on what this is not

Doing it without uploading anything

Old paperwork, medical letters, contracts and bank statements are exactly the documents that should not be sent to a website to be read by somebody else's computer. Searchable Scan does all of the above in your browser: the recognition engine and its language packs are served from the same address and run on your device, the finished PDF is reopened and its text read back before you are offered it, and nothing is uploaded or stored.

Related: PDF Compare for finding what changed between two versions, and PDF Form Builder for adding fillable fields to a document.