Add a text layer to a PDF

Give an image-only PDF the hidden text layer it is missing, so search, copy and text-based PDF tools work on it.

or drop them here · files stay on your device
We count formats and sizes. Filenames stay private unless you opt in.

Render resolution2×
Processed on this device
  • Runs on your device
  • No sign-up or watermark
  • No fixed file size cap

The short answer

To add a text layer to a PDF, drop the image-only PDF here and press Add a text layer. Each page is rendered and OCR-read by Tesseract in your browser, then rebuilt with the recognised words placed invisibly over the image. The file is never uploaded, and afterwards tools such as PDF to Word or Extract text can read it.

How to add an OCR text layer to a PDF

  1. STEP 1

    Choose the PDF

    Add an image-only PDF, or several. Page images in JPG, PNG or TIFF are also accepted.

  2. STEP 2

    Set Render resolution

    The default 2x suits most scans. Small footnotes or dense tables benefit from 3x or 4x.

  3. STEP 3

    Press Add a text layer

    Each page is rendered and recognised locally; the report counts words made searchable.

  4. STEP 4

    Use it with other tools

    Save the -searchable PDF, then run it through PDF to Word, Extract text or Compare where they found nothing before.

What a PDF text layer is

A PDF can hold two things on the same page: what is drawn, and the characters behind it. In a digitally created PDF they are the same thing. In a scan, only the drawing exists, so any tool that works with text, from search to translation to conversion, finds an empty page.

A text layer is a set of real characters placed over the image at the exact positions of the words, drawn with zero opacity so you do not see them. The page looks the same; software now has something to read.

What survives, and what does not

This is the same engine as Scan to searchable PDF, framed for a different job: preparing an old scan for other tools. Pages are rendered with pdf.js, recognised by tesseract.js, and written by pdf-lib as a JPEG page with each word set in Helvetica at zero opacity, scaled to the word height in the scan.

What you keep

How every page looks, redrawn as a high-quality JPEG

Word placement, so highlights and selections line up with the scan

Page count and page proportions

What you lose

Bookmarks, hyperlinks, form fields and annotations

Original document title and author metadata

Exact fonts in the hidden layer: everything is Helvetica, which matters only if you copy and paste

Accuracy on non-English text

Honest limits are published on every tool page. If a tool cannot do something well, it says so here rather than letting you find out after the download.

Add a text layer to a PDF at a glance

InputImage-only PDF, or page images
OutputPDF with invisible OCR text
Text layer fontHelvetica, zero opacity
Resolution1x to 4x, default 2x
Enginepdf.js + tesseract.js + pdf-lib
First-use downloadAbout 7 MB, cached afterwards

If something goes wrong

Words made searchable shows 0

No text was recognised. The scan may be very low resolution or the text very faint; try 4x Render resolution.

Copied text has gaps or odd characters

Those are recognition errors in the hidden layer. A cleaner or higher-resolution scan gives a better layer.

Add a text layer to a PDF questions

How do I tell whether a PDF already has a text layer?

Open it and try to select a single word. If a word highlights neatly, it has text. If you can only draw a box over the whole page, or nothing happens, the page is an image and needs a text layer.

Is the PDF uploaded to add the text layer?

No. Rendering, OCR and rebuilding all take place in your browser, so archived contracts and records stay on your computer.

Will adding a text layer change how the PDF looks?

Not noticeably. The page is redrawn from a JPEG rendering at the resolution you choose, and the text is invisible. At 1x you may see some softening, so use 2x or more.

Should I use this on a PDF that already has selectable text?

No. The tool renders every page to an image and replaces the existing text with OCR text, which can only be less accurate than the original. Use it on scans only.

Does it work on a Mac, Windows PC or Chromebook?

Yes. It runs in Chrome, Edge, Firefox or Safari on any of them, with nothing to install and no account. A laptop or desktop is quicker than a phone for documents with many pages.

One of 153 file tools and planned additions. Built and tested by Arin Prajapati, last checked against the code on . canonical: https://damnfiles.com/add-pdf-text-layer
Analytics preferences

Help us understand which tools and file types people use. File contents always stay on your device.

Filename sharing is optional and off by default. Names can contain personal information. Changes apply to future events; disabling sharing does not delete earlier records.

Read our privacy policy