How to Remove OCR from PDF (Free, Adobe and Online Methods)
- 1 If you want the quickest way on Windows or Mac, convert the PDF to images and back to a PDF in PDNob. The new file looks the same but has no hidden text layer, and it never leaves your computer.
- 2 If you already use Adobe Acrobat or Kofax Power PDF, Acrobat can do it by exporting pages as images and combining them again, and Kofax Power PDF for Mac has a built-in Clear OCR Layer command.
- 3 If you need a free option, Ghostscript strips all text with one command, and free online PDF-to-JPG tools work for files that aren't private.
- 4 If the OCR was only wrong, remove the old layer first and then run OCR again in PDNob with the correct document language.
- 5 If you want to confirm it worked, search for a word you can see on the page. No results means the OCR layer is gone.
To remove OCR from a PDF, you need to delete its hidden text layer. The easiest way is to convert the PDF to images and back to a PDF, for example in PDNob PDF Editor, which keeps every page looking the same but drops the searchable text. Kofax Power PDF has a one-click Clear OCR Layer command, Ghostscript can strip the text for free, and online PDF-to-JPG tools work for files that aren't private.
Below you'll find 5 methods with a side-by-side comparison, a quick way to check that the OCR is really gone, and how to replace bad OCR with a clean new layer.
Part 1. What Is the OCR Layer in a PDF?
When a scanned PDF goes through OCR (optical character recognition), the software reads the page image and places invisible text on top of it. That hidden layer is what lets you search, select and copy words from a scan. The picture you see doesn't change; only the text behind it is new.
People usually want to remove that layer for one of three reasons. The OCR is wrong, so copied text comes out garbled and searches miss words. They need an "image-only" PDF for a system that rejects files with text. Or they want to run better OCR, which many tools refuse to do while old text is still on the page.
How to check if a PDF has an OCR layer: open it and try to select a line of text, or press Ctrl+F (Cmd+F on Mac) and search for a word you can see. If the text highlights or the search finds it, the file has an OCR layer.
In the scanned page above, pressing Ctrl+A highlights every line. That highlight is the hidden OCR text sitting on top of the scan.
Part 2. How to Remove OCR from PDF: 5 Ways
Each method below removes the text layer and keeps the page image. They differ in cost, platform and how much setup they need:
If you just want it done without typing commands, start with Method 1. If you already pay for Acrobat or Kofax, Methods 2 and 3 use what you have.
Method 1: Remove OCR Text from PDF with PDNob PDF Editor
PDNob PDF Editor is a desktop PDF editor for Windows and Mac. It can export every page of a PDF as an image and then build a new PDF from those images. Because the new file is made only from pictures of the pages, the OCR text layer doesn't come along, while the pages look exactly as before. Everything runs on your own computer, so private scans stay private.
Step-by-Step
-
Open the PDF in PDNob, click Convert in the top menu and choose To Image.
-
In the Convert window, set Convert to as PNG or JPG, check the page range and click Convert. PDNob saves one image per page in the folder you choose.
-
Go back to the home screen, click the + icon next to Open PDF and choose Convert file to PDF, then select the page image. For a file with several pages, use Batch PDF Tools to turn all the images into PDFs, then use Batch PDF Tools > Merge to join them in the right order.
-
Save the new PDF and press Ctrl+F (Cmd+F) to search for a word on the page. If nothing is found, the OCR text is gone.
Choose PNG for the sharpest pages. JPG makes a smaller file but can soften fine print slightly.
Method 2: Remove OCR from PDF in Adobe Acrobat
Adobe Acrobat doesn't have a "remove OCR" button. The dependable workaround is the same image round trip: export the pages as images, then combine those images into a new PDF. Adobe's own help page shows the export steps for the current Acrobat interface.
Step-by-Step
-
Open the PDF in Acrobat, select Convert from the global bar, choose Image format in the left pane and pick JPEG (or PNG). Select Convert to JPEG and save the images.
-
Open the Combine files tool, add all the page images in order and click Combine.
-
Save the new PDF and search for a word to confirm the text layer is gone.
Acrobat Pro also has a Remove hidden information option with a "Hidden text" setting. Users report mixed results with OCR text, so always run the search check afterwards.
Method 3: Clear the OCR Layer in Kofax Power PDF
Kofax Power PDF (now Tungsten Power PDF) is the only tool in this list with a built-in command that removes just the OCR layer. The Kofax Power PDF for Mac help lists both the command to view the hidden layer and the command to clear it.
Step-by-Step
-
Open the PDF and choose View > OCR layer to see the hidden text on top of the page.
Choose Edit > Clear OCR Layer... or press Command+Option+O.
Save the file. If you want to redo OCR later, use Force OCR.
Method 4: Remove OCR from PDF Free with Ghostscript
Ghostscript is a free, open-source PDF and PostScript tool. Its -dFILTERTEXT option rewrites a PDF without any text, so the scan stays and the OCR layer goes. It runs from the command line, which makes it handy for batch jobs.
We ran it on a one-page scanned sample with an OCR layer. Before, pdftotext pulled out the full text; after, it found 0 words, and the page still looked the same.
Step-by-Step
-
Install Ghostscript. Windows users can get it from the official download page; on a Mac, run brew install ghostscript if you use Homebrew.
-
Open Terminal (Mac/Linux) or Command Prompt (Windows) in the folder with your PDF and run:
gs -o output.pdf -sDEVICE=pdfwrite -dFILTERTEXT input.pdf
On Windows, type gswin64c instead of gs.
-
Open output.pdf and search for a word to confirm the text is gone.
-dFILTERTEXT removes all text, including real typed text in mixed documents. Ghostscript may also recompress the page images. In our test the file shrank from 542 KB to 269 KB, so compare the pages at full zoom before deleting the original.
Method 5: Remove OCR Layer from PDF Online
Most online OCR tools, such as Sejda's OCR PDF, can only add OCR, not remove it. The workaround is the image round trip in the browser: turn the PDF into JPGs, then turn the JPGs back into a PDF. iLovePDF's PDF to JPG tool has a "Page to JPG" mode and a High image quality option for this.
Step-by-Step
-
Upload the PDF to iLovePDF's PDF to JPG tool, choose Page to JPG and High quality, then download the images.
-
Upload the images to iLovePDF's JPG to PDF tool and keep them in page order. Set Page size to Fit (same as image), Margin to No margin, and tick the option to merge all images into one PDF, then download it.
Open the file and check that the text can't be selected.
Don't upload contracts, IDs or other private files to online tools. The free plan also limits how much you can process, so long files may need several rounds.
Part 3. Replace Bad OCR: Remove It and Run OCR Again with PDNob
Often the real goal isn't "no OCR" but "better OCR." Many OCR tools skip pages that already have text, so the old, wrong layer has to go first. Some guides do this with Python scripts and tools like OCRmyPDF and its alternatives, but you can do the same thing in two short steps: clear the text with any method above, then run OCR again in PDNob.
PDNob's OCR Settings window lets you pick the output type, the pages and the document language, which is the setting most often wrong in a bad OCR result.
Step-by-Step
-
Open the clean, image-only PDF in PDNob (or click OCR PDF on the home screen) and click OCR.
-
Under Convert with OCR to, choose Searchable Text to keep the page image with a new hidden text layer, or Editable Text if you want to edit the words. Set the Page Range and pick the correct Document Language.
-
Click Perform OCR, then copy a paragraph into a text editor to check the result.
The wrong language setting and low-resolution or crooked scans cause most bad OCR. Straighten the pages first (here's how to straighten a scanned PDF) and turn on Auto Deskew Page under Advanced Settings. For more ways to make a scan searchable again, see this guide on how to make a PDF searchable.
Part 4. How to Check the OCR Layer Is Gone
Whichever method you used, run these quick checks on the new file before you delete the original:
-
Search for a word you can see. Press Ctrl+F (Cmd+F) and type a word from the page. "0/0" or "No results" means it worked.
-
Try to select text. You should only be able to select the page as a whole image, not single words.
-
Compare file sizes. The new file may be bigger or smaller depending on image format and quality, so a size change is normal.
-
Zoom in to 200%. Make sure small print is still sharp, especially after JPG or online conversion.
Before: the search finds "volunteers" in the original scan because the OCR layer is there.
After: the same search in the Ghostscript output shows 0/0, so the OCR layer is gone.
FAQs About Removing OCR from PDF
Q1. Can I remove OCR without changing how the PDF looks?
A1: Yes. All 5 methods keep the page image. Image round trips can soften small text if you export at low quality, so use PNG or high quality.
Q2. Can I remove OCR from just some pages?
A2: Yes. Split those pages into their own file, remove the OCR, then merge the pages back in order.
Q3. Does removing OCR reduce file size?
A3: Sometimes. The text layer itself is small, so size depends mostly on how the images are saved. In our tests, Ghostscript halved the file while a 300 DPI PNG round trip more than doubled it.
Q4. Can I remove OCR in Preview on Mac?
A4: Not directly. Preview has no command to clear the text layer. You can export pages as images and combine them again, but that's slow for long files, so a PDF editor or Ghostscript is easier.
Q5. Will removing OCR delete real text in the PDF?
A5: With image round trips and Ghostscript, yes: they remove all text, not only OCR text. Kofax's Clear OCR Layer targets the OCR layer only.
Q6. How do I fix bad OCR?
A6: Remove the old layer first, then run OCR again with the correct document language, as shown in Part 3.
Conclusion: The Easiest Way to Remove OCR from a PDF
To remove OCR from a PDF, you delete its hidden text layer. PDNob does it offline in a few clicks by turning pages into images and back into a PDF, Kofax Power PDF has a one-click Clear OCR Layer command, Ghostscript is the free command-line option, and online PDF-to-image tools work for files that aren't private. If your OCR was simply wrong, remove it and run OCR again in PDNob with the right language.
Try PDNob PDF Editor to clear an OCR layer, convert pages and redo OCR in one desktop app.
- Make scanned PDFs searchable and editable with 99% OCR precision
- Batch convert PDFs to Word, Excel, PPT, images, PDF/A, Text, EPUB, etc., up to 30% faster
- Edit PDFs easily like Word, including text, images, watermarks, links, and backgrounds
- Annotate PDF with highlights, comments, shapes, stickers, and stamps
- Run smoothly on any PC without lags or crashes, even on low-spec machines
Secure Download
Secure Download
Speak Your Mind
then write your review
Speak Your Mind
Leave a Comment
Create your review for PDNob articles