Softwr
OCRmyPDF logo

OCRmyPDF

Open-source command-line tool that adds a searchable text layer to scanned PDFs

As of 1 December 2026, OCRmyPDF is free to use. OCRmyPDF adds an OCR text layer to scanned PDFs using Tesseract, keeping the original page largely unchanged, and outputs PDF/A by default. Softwr lists it under OCR Software. OCRmyPDF is available on Linux, Windows, macOS.

Overview

What is OCRmyPDF?

OCRmyPDF adds an optical character recognition text layer to scanned PDFs so they can be searched and copied from. It uses Tesseract, analyses each page to choose colourspace and resolution, and merges the OCR layer back into the original PDF so the output is minimally altered. It outputs PDF/A-2b by default or standard PDF, offers image processing such as deskew, optimises files with lossless and lossy options, handles password-protected and digitally signed PDFs, repairs damaged files, and processes batches including watched folders. It has a Python API and supports plugins. It runs on Linux, Windows, macOS and FreeBSD, with Docker images for x64 and ARM, and installs through package managers such as apt, dnf, Homebrew and Snap. The code is released under the Mozilla Public License 2.0. It needs external Ghostscript and Tesseract installs. The documentation notes limits: it cannot recognise handwriting, its accuracy may not match commercial products, it does not identify headings or paragraphs, and it can struggle with multi-column layouts.

What people use it for

  • Making an archive of scans searchable
  • PDF/A conversion
  • Scripted batch OCR on servers
  • Watched-folder OCR for office scanners

The honest half

Where does OCRmyPDF fall short?

The limits buyers hit most with OCRmyPDF: command line only, with no graphical interface; and cannot recognise handwriting, so it suits printed text only. Each is concrete and checkable: the half of a review a vendor will not write.

  • Command line only, with no graphical interface
  • Cannot recognise handwriting, so it suits printed text only
  • Accuracy may trail commercial OCR on poor scans
  • Struggles with multi-column reading order

Cross-shopped

What are the alternatives to OCRmyPDF?

The closest alternatives to OCRmyPDF are Tesseract, PaddleOCR and ABBYY FineReader PDF. Each is a tool buyers genuinely weigh against it, with the reason why.

Capabilities

What can OCRmyPDF do?

OCRmyPDF lists 8 features, including searchable text layer for PDFs, tesseract OCR engine and PDF/A output.

  • Searchable text layer for PDFs

  • Tesseract OCR engine

  • PDF/A output

  • Deskew and image clean-up

  • Lossless and lossy optimisation

  • Batch and watched-folder processing

  • Python API and plugins

  • Docker images

Answered, with sources

Questions people ask

Each answer names the page it came from, so you can check it rather than take our word for it.

Which OCR engine does it use?

It uses Tesseract to add a text layer to scanned PDFs.

Source
What licence is it under?

The OCRmyPDF repository states the Mozilla Public License 2.0.

Source
Which platforms are supported?

Linux, Windows, macOS and FreeBSD, plus Docker images for x64 and ARM.

Source

Checked against

Sources

The pages the facts above were read from. Prices and limits change, so the vendor's own page is the final word.

Share

Keep looking

Where to go from OCRmyPDF

Best OCR Software software for

Compare OCRmyPDF with

Other OCR Software software

  • Open-source OCR engine and command-line tool under the Apache 2.0 licence

    Free plan13 researched notes
  • Open-source OCR toolkit that turns PDFs and images into text, Markdown and JSON

    Free plan13 researched notes
  • Open-source document parser from IBM Research that converts PDFs and Office files with OCR

    Free plan13 researched notes
  • Desktop PDF and OCR suite for Windows and Mac with a companion iOS app

    From $16/mo13 researched notes
  • Free open-source scanning app with OCR for Windows, Mac and Linux

    Free plan10 researched notes
  • Open-source Python OCR library covering over 80 languages

    Free plan11 researched notes
  • Open-source LLM platform that turns PDFs and scans into structured JSON

    Free, then $499/mo15 researched notes
  • Free mobile scanner app from Adobe that makes searchable PDFs with OCR

    Free plan11 researched notes
  • Mobile document scanner app that makes searchable PDFs

    Free plan11 researched notes
  • IRIS desktop OCR and PDF software sold as Readiris PDF and Readiris 17

    13 researched notes
  • AWS machine learning service for OCR, forms, tables and document extraction

    From $0.0015/page13 researched notes
  • AI platform that reads complex document packets and automates business rules

    Pricing on request12 researched notes
  • OCR for maths, chemistry, handwriting and tables, as an app and an API

    Free, then $4.99/mo12 researched notes
  • Document understanding and fraud detection for lenders, via API and dashboard

    Pricing on request11 researched notes
  • Tungsten Automation OCR for Windows desktops, servers and developer SDKs

    From $149/one-time12 researched notes
  • Document data extraction tool that turns emails, PDFs and scans into structured data

    Free plan15 researched notes
  • Document extraction API and platform that returns validated JSON

    12 researched notes

Softwr does not host reviews and shows no star rating for OCRmyPDF, because a rating we did not collect is not ours to publish. What is here is the pricing and platform detail from the vendor’s own pages, limitations we could state concretely, and alternatives a reviewer confirmed people weigh against it. Tell us if any of it is wrong.

More on OCRmyPDF

Best OCR Software software alternatives

Document parsing API that turns PDFs and scans into HTML or Markdown for LLMs

usage-based

Mac menu bar app that copies text from any part of the screen using OCR

one-time

Receipt and invoice OCR API that returns structured JSON

subscription

Platform that parses PDFs, scans, tables and audio into structured data for AI

usage-based

Document extraction API and platform that returns validated JSON

subscription

Document understanding and fraud detection for lenders, via API and dashboard

quote

Compare OCRmyPDF with alternatives