Back to glossary

Optical Character Recognition

Optical character recognition (OCR) is technology that converts text visible in an image into machine-readable text that software can search, copy, analyze, or edit.

Updated
Optical Character Recognition glossary signal map Prompt Answer Citation Signal

Optical character recognition (OCR) is technology that converts text visible in an image into machine-readable text that software can search, copy, analyze, or edit.

OCR is commonly used with scanned paper documents, photographed pages, receipts, forms, and image-only PDFs. Without OCR, a computer generally treats the page as a collection of pixels. A person can read the words, but software may not recognize them as characters or understand where individual words begin and end.

OCR adds a text representation of those words. Depending on the output, the recognized text may appear as an invisible searchable layer behind the original page image, or it may be reconstructed as editable text in a new document.

How OCR turns a page image into recognizable text

An OCR system typically performs several related tasks:

  1. Image preparation: The system may straighten a tilted page, reduce noise, adjust contrast, or correct uneven lighting.
  2. Layout analysis: It identifies areas that may contain paragraphs, columns, tables, headers, or individual fields.
  3. Character recognition: The OCR engine interprets visual shapes as letters, numbers, punctuation, and symbols.
  4. Language processing: Dictionaries and language models may help distinguish visually similar characters or select likely words.
  5. Output creation: The recognized content is stored as a text layer, exported as plain text, or rebuilt in an editable document format.

The result is an automated interpretation, not a guaranteed transcription. OCR can produce text that looks plausible while still containing incorrect names, dates, amounts, account numbers, or punctuation.

OCR in scanned PDFs

A scanner can create a PDF by storing an image of each paper page. Although the file has a .pdf extension, it may contain no usable text objects. Common signs of an image-only PDF include an inability to select individual words, unsuccessful searches for visible phrases, and poor results when copying content.

Running OCR can add recognized text to the PDF. In many searchable PDFs, the original scan remains visible while an invisible text layer is positioned behind it. Users can then search, highlight, and copy words without replacing the scanned appearance.

Searchable does not necessarily mean fully editable. Editing requires software to reconstruct fonts, spacing, paragraphs, and other layout elements. A searchable scan may allow text selection while preserving the page only as an image. An editable conversion may create movable text and objects, but complex formatting can shift or break.

OCR also does not create interactive fields automatically. A document with recognized labels and blank lines is not necessarily a fillable PDF.

OCR text, native PDF text, and image-only pages

Document content How the text is stored Typical capabilities Main limitation
Native PDF text Characters are created directly by software such as a word processor Search, selection, copying, and usually more reliable extraction Fonts, permissions, or unusual encoding can still affect reuse
OCR text Software estimates characters from a page image Search and copying, with possible editing depending on the output Recognition errors may not be visually obvious
Image-only PDF The page is stored as pixels without recognized text Visual reading and printing Text usually cannot be searched, selected, or read reliably by assistive software

Native text is generally more dependable because it originates as encoded characters rather than being inferred from visual shapes. OCR can make a scan much more useful, but it does not give the scan the same underlying structure or accuracy as a well-created digital document.

What affects OCR accuracy

OCR quality depends heavily on the source material. Clear, high-resolution printed text with a simple layout is usually easier to recognize than:

  • Blurry photographs or low-resolution scans
  • Crooked, folded, stained, or faded pages
  • Decorative, condensed, or unusually small type
  • Handwriting and handwritten corrections
  • Tables with merged cells or unclear borders
  • Multiple columns, sidebars, stamps, or overlapping marks
  • Text placed over patterns, images, or security backgrounds
  • Mixed languages or a language not selected in the OCR settings
  • Similar characters, such as 0 and O, 1 and l, or 5 and S

Right-to-left scripts, vertical writing, diacritics, specialized mathematical notation, and uncommon symbols may require compatible language models and careful review. Even a strong OCR result should not be treated as exact when a single character could change the meaning.

For example, an OCR system might turn an invoice amount of $1,800 into $1,300, or interpret a contract date of 08/05/2026 incorrectly. Search and document classification may still work, but relying on the extracted value without checking the page image could cause a serious mistake.

Accessibility requires more than recognized words

OCR can improve access to scanned documents by exposing text to search tools, screen readers, magnification software, and text-to-speech systems. It can also allow users to copy content into formats that support different colors, fonts, or spacing.

Recognition alone does not make a PDF fully accessible. A useful accessible document may also need:

  • Correct reading order
  • Proper headings, lists, and table structure
  • Descriptive alternative text for meaningful images
  • Accurate language settings
  • Labeled form controls
  • Corrections to recognition errors

A multi-column page can contain accurate OCR text but still be read in the wrong order. OCR is therefore an important starting point for scanned content, not proof of accessibility compliance.

Privacy, redaction, and document signing boundaries

OCR systems need access to the page image to process it. If documents contain identification records, contracts, health information, financial data, or confidential business material, organizations should understand where processing occurs, who can access the files, and how uploaded data is retained or deleted.

OCR can also affect PDF redaction. A black shape placed over visible text may leave OCR text underneath, allowing the supposedly hidden content to be searched or copied. Proper redaction should remove the underlying information, including hidden text layers and metadata.

OCR is not an electronic signature, identity check, or security control. It recognizes visible characters but does not establish who created, approved, or signed a document.

Applying OCR after a document has been digitally signed may also change the file by adding or replacing content. That change can affect signature validation or other evidence of document integrity. When possible, recognition and accessibility work should be completed before signing. If a signed file must be changed, understand the consequences described in Can You Edit a PDF After Signing?.

OCR turns scans into searchable records, not verified data

A legal team might OCR archived agreements so staff can search for a party name while still viewing the original scans. The recognized text helps discovery, but important clauses should be checked against the page image.

An accounts team might extract supplier names and invoice totals from photographed receipts. OCR reduces manual entry, but validation is still necessary before payment.

A university library might OCR historical newspapers to support full-text search. Older fonts, damaged paper, and multi-column layouts can make the searchable transcript less accurate than the scanned page.

These examples show the central boundary of OCR: it makes visual text usable as data, but the output remains an interpretation that may require human verification.

FAQ

What does OCR stand for?

OCR stands for optical character recognition. It describes technology that identifies text in images and converts it into machine-readable characters.

How can I tell whether a PDF needs OCR?

Try selecting an individual word or searching for a phrase that is clearly visible. If neither works, the PDF may contain only page images, although permissions or unusual text encoding can cause similar behavior.

Does OCR make a PDF editable?

Not always. OCR can create a searchable text layer without making the visible page content directly editable. Editable conversion requires additional layout reconstruction.

Is OCR completely accurate?

No. Accuracy varies with image quality, language, typography, handwriting, and page layout. Names, dates, amounts, and other critical details should be verified against the original image.

Can OCR read handwriting?

Some systems can recognize certain handwriting, especially clearly separated printed characters. Cursive, inconsistent writing, annotations, and overlapping marks remain more difficult than clean printed text.