Skip to content
HandyKit

How to Find and Replace Many Words at Once

· 3 min read

Editing a long document often means making the same kind of change many times. A translation may need dozens of terms changed, a product list may need new names, and code may need several values renamed. Doing them one at a time is slow and easy to get wrong.

Bulk Find and Replace applies a whole list of replacements to your text in one go. This guide shows how to write the list, how the tool decides what to replace, and how to check the result.

Write one pair per line

Put each pair on its own line: the text to find, then =>, then the replacement.

cat => dog
dog => cat

Add as many lines as you need: fifty terms means fifty lines, applied together.

If your pairs are already in a spreadsheet, copy two columns from Excel or Google Sheets and paste them in. The default separator reads the tab between the columns as the split, so the left column becomes the find text and the right column the replacement.

Swaps work, because it is one pass

All pairs are applied at once, in a single pass, and a replacement is never replaced again. That is why the list above swaps the two words instead of turning everything into "cat".

Take this text:

The cat chased the dog. A category error.

With Whole words only ticked, the result is:

The dog chased the cat. A category error.

Whole words and capital letters

Without Whole words only, "cat" also matches inside "category":

The dog chased the cat. A dogegory error.

Tick it when a find is a short word that may appear inside longer ones.

Matching ignores capital letters unless Match case is ticked, so "Cat", "cat" and "CAT" all match by default. Tick Match case when capitals matter, as they often do in code.

The longest find goes first

When one find is part of another, the longer one wins: "New York" is replaced as a whole before "New" can take a piece of it. This matters in product lists and glossaries, where short names often appear inside longer ones.

Check the counts

Under Replacements, each pair shows how many times it was replaced. A count of 0 means the pair wasn't found, which usually points to a typo or a difference in capital letters. A count that looks too high may mean you need Whole words only.

Use regular expressions

Tick Regular expressions when you need patterns rather than fixed text. Each find is then a regular expression, and the replacement can use $1 for a captured group, $<name> for a named group and $& for the whole match.

In this mode the pairs run one after another, in list order, like a sed script, so a later pair sees the text earlier pairs have changed. Test a pattern first in the Regex Tester.

Review every change

When you are done, paste the original and the result into Text Compare to see every change, and look for anything you didn't intend.

The tool runs in your browser, so your text and your list stay on your device, and there is no sign-up.

Try it

Paste your text and your list into Bulk Find and Replace, check the counts, then review the result in Text Compare.

Tools in this guide

  • Bulk Find and Replace

    Paste your text and a list of find → replace pairs, and every pair is applied in one go. Free and private: nothing is uploaded.

  • Regex Tester

    Write a regular expression and see every match highlighted as you type, with the pattern explained part by part, capture groups, replacement and code you can paste into JavaScript.

  • Text Compare

    Paste two versions of a text to see the added, removed and changed lines, with changed words highlighted. Free and private: nothing is uploaded.