Skip to content

How to find and replace text in a PDF

Search a PDF for a word and replace every match in DocFila's text editor. See how it works, what to check afterwards and when it does not fit.

Open DocFila free

The short answer

Open the PDF in DocFila's text editor, switch to Find, type the word, then enter the new word in Replace with and choose Replace all. DocFila covers each match and writes the replacement in its place, then reports how many it changed. Check the pages afterwards.

Works on: Find and replace is part of the text editor, in PDF Tools as Edit PDF Text, and runs in the web app, on iPhone and Android and in the desktop apps. It runs on your device with no AI and no credits.

What do you need?

What are the steps?

  1. Open Edit PDF Text. Go to the Tools tab, open PDF Tools, choose Edit PDF Text and pick the file.
  2. Switch to Find. Choose Find in the mode bar. A search box appears with the hint Find.
  3. Search for the word. Type the word and press search. DocFila lists the matches, shows how many there are and scrolls to the first. Use the previous and next arrows to look at each one.
  4. Enter the replacement. Type the new text in the box that says Replace with.
  5. Choose Replace all. Select Replace all. A message says how many matches were replaced. If nothing matched, it says No matches for your word and changes nothing.
  6. Check the pages. The page reloads with the new text. Scroll to each place that changed and look at spacing and line breaks.
  7. Save. Choose Save to write the file, or Save as copy to keep the original. Undo steps back through your changes before you save.

What is worth knowing?

What DocFila does not do here

Find and replace in a PDF is an approximation, because a PDF stores positioned glyphs, not paragraphs. DocFila finds the text, covers it and writes the replacement on top, so line breaks and column widths are not recalculated and a longer word can crowd its neighbours. It needs selectable text; for a scan, make the PDF searchable first. If you need a Word-quality text change in a long document, convert to Word, edit there and convert back.

Where to go next

More pdf how-to guides

Questions

Can DocFila replace only one match instead of all?

The Replace all button changes every match. To change one place only, switch to Edit mode and edit that text in place, or add a text box at the spot.

Why does my search find nothing in a scanned PDF?

A scan is a picture, so there are no words to search. Run Make searchable first and the invisible text layer lets Find work, though recognition mistakes can hide a match.

Does the old text still exist under the new text?

The original is covered and removed from view, but for sensitive text use the Redact mode or the redaction tool, which is made to remove content for good, rather than relying on a replace.

Is this free?

Yes within your plan. Find and replace runs on your device, uses no AI and costs no credits, and nothing about the document is uploaded while you work on it in the editor.

Try it in DocFila

Free to start, no card needed.