Home / Text tools / Find and replace multiple

Find and Replace Multiple

Apply a whole list of replacements to your text in one go. Write one rule per line, as find => replace.

Replacements per rule

Write your rules

Enter one rule per line in the form find => replace. For example:

colour => color
favourite => favorite
" hello " => " hi "

Spaces around the arrow are ignored. To keep a leading or trailing space in a rule, put that side in double quotes, as in the last line. Leave the right side empty to delete the text.

Chain or all at once?

The mode decides what happens when one rule changes text that another rule also matches.

  • In order (chain): each rule runs on the result of the one before. Good for step-by-step clean-up.
  • All at once: every rule looks at the original text, and replaced text is never changed again. Good for swaps.

Take the text I have a cat and a dog with the rules cat => dog and dog => cat. In order gives I have a cat and a cat, because the second rule changes both. All at once gives I have a dog and a cat, a true swap.

The results table

Below the output you will see how many times each rule matched, so you can spot rules that did nothing or matched more than you expected.

Uses

  • Cleaning data, such as replacing abbreviations with full words.
  • Filling in templates, such as replacing {{name}} with a real name.
  • Redacting names or numbers before sharing text.
  • Applying a house style or glossary to a document.

For one replacement, use find and replace. For pattern-based rules, see regex find and replace. The guide explains the ideas in more depth.

Frequently asked questions

How do I replace several words at once?

Write one find => replace rule per line, and all of them are applied to your text.

What is the difference between in order and all at once?

In order runs the rules one after another, so later rules see earlier changes. All at once applies every rule to the original text only.

How do I keep a space in a rule?

Put that side of the rule in double quotes, for example " hello " => " hi ".

What if two rules match the same text?

In all-at-once mode the longer find text wins. In order mode the earlier rule runs first.