OasisPDF

How to find and replace text in a PDF

In short Open the PDF in OasisPDF and press Ctrl+Shift+F (Cmd+Shift+F on a Mac). Type the words to find, type the new words under them in "Replace with", click "Replace all", and save. One Undo takes back every replacement, and a capital first letter is kept.

Last checked in OasisPDF: By the makers of OasisPDF

Your file stays on this device. Nothing is uploaded.

or drop one anywhere on this page

Do it here: this page is the editor.

Your file stays on this device. Nothing is uploaded.

  • Free
  • 100% private
  • No watermark
  • No account required

What you need

  • The PDF, on your computer.
  • Google Chrome or Microsoft Edge on a computer. Phones and tablets cannot run the editor yet.
  • No account and nothing to install. The file stays on your device.

Step by step

  1. Step 1

    Open your PDF

    Click "Choose a PDF" on this page, or drop the file anywhere on it. The file opens in the editor, right here. It is not uploaded: the editor works on it on your own device.

    Any page will do: the search goes through the whole document.

    A seven-page visitor guide open in OasisPDF, at page 2, "Welcome to Port Linden".
  2. Step 2

    Open Find and replace

    Press Ctrl+Shift+F (Cmd+Shift+F on a Mac). Or click "Find" in the bar at the top (the icon of a magnifying glass), then "Replace", just before the X at the right end of the bar that opens.

    The bar has two rows: "Find in the document" above, "Replace with" below.

    The find bar under the bar at the top, with its two rows, "Find in the document" and "Replace with", and the buttons "Replace" and "Replace all".
  3. Step 3

    Type the words to find

    Type them in "Find in the document". The bar counts the places, for example "1 of 5", and shows the first one, marked. Press Enter to go to the next place, and Shift+Enter to go back.

    Capitals do not count unless you turn on "Aa" (Match case). "ab" (Whole words only) leaves out the places inside longer words: "pier" then does not find "piers".

    "east pier" in the field, "1 of 5" beside it, and the first place marked in the text of page 2.
  4. Step 4

    Replace them

    Type the new words in "Replace with". Click "Replace all" to change every place at once: a message says how many, here "Replaced in 5 places.", with Undo. Or click "Replace" on the second row, beside "Replace all", to change the place that is shown and go on to the next. To leave a place as it is, click the arrow that points down, beside the count, to go past it.

    Longer words take more room where they stand. In a narrow place, such as a cell of a table, they wrap onto more lines and push what is below down, and nothing is said. Look at such places after replacing.

    The message "Replaced in 5 places." with an Undo button, and "north pier" where "east pier" stood on page 2.
  5. Step 5

    Save

    Save writes into the file you opened. To keep the original as it was, do not click "Save": open the menu beside it, choose "Save a copy…", and give the new file a name.

    Otherwise click "Save". The browser may ask whether the site may save changes to the file: allow it. The new words are now text of the pages in the file on your computer.

    After saving: "Saved" beside the name of the file, and "north pier" in the text of page 2.

Good to know

A capital first letter is kept

Type the words to find and the new words in small letters, and each place keeps its own capital: "East pier" at the start of a label, found as "east pier" and replaced with "north pier", became "North pier". If you type a capital in either field, the new words go in exactly as you typed them. Turn on "Aa" (Match case) to find only the places written exactly as you typed them.

One Undo takes back Replace all

One Ctrl+Z (Cmd+Z on a Mac), or Undo in the message, takes back every place of a Replace all at once. Each single "Replace" is a step of its own.

What is found

A phrase is found also where it runs over the end of a line, and two spaces or one make no difference. A hyphenated word is found as it is written, with its hyphen. There are no patterns or wildcards: a dot is a dot.

What the saved file holds

Saved as "A clean file", which is how OasisPDF saves unless you chose otherwise, the file holds the document as it is now, without its earlier versions: the old words are no longer in the text of its pages, and other PDF programs neither show them nor find them there. "A file with its history" adds your changes to the file as it was, so the earlier version, with the old words, can still be read from it. The choice is in the menu beside Save.

Where the old words can stay

Replacing changes the text of the pages. A bookmark, in the list of headings some PDF programs show at the side, keeps the old words of a heading you replaced, in a clean file too. The document’s title and the picture of a scanned page can still hold them as well, and OasisPDF cannot change bookmarks or the title. If a word must not be in the file at all, read the guide "Delete text from a PDF": it says what else to check.

If something goes differently

It says "Not found".

Check the spelling. With "Aa" (Match case) on, the capitals must be as in the text; with "ab" (Whole words only) on, a part of a longer word is not found. On a scanned page, see the next point.

A scanned page: nothing is found, or nothing is replaced.

A scan is a picture of a page, and its words are found only after "Recognize text" in the bar above the page. They are then found and counted, but they stay as they are, for they are part of the picture: Replace says "This one is in text that cannot be typed in, so it stays as it is.", and Replace all "Nothing was replaced: none of the places is in text that can be typed in." A paragraph you double-clicked first, so that it is set again, is replaced like other text.

Save asks me where to put the file.

Then the browser did not let the site write into the original file. Choose a name and a folder: the new file holds the new words, and the original is unchanged.

The file asks for a password.

Type the password the file opens with. OasisPDF cannot open such a file without it.

How this guide was made

Every step was done in OasisPDF on , with the document in the pictures: an invented document of an invented harbor. When the editor changes, the guide is checked again.