How to replace many words at once
- Paste your text into the Text box, or click Open a text file.
- Type your pairs in the Find and replace list box, one pair on each line.
- Set the options you need. The result updates as you type.
- Check the status line, for example “12 replacements from 6 pairs”.
- Click Copy result or Download.
Writing the list
Put the text to find on the left and the replacement on the right:
colour => color
grey => gray
DRAFT =>
Leave the right side empty to delete the text, as with DRAFT above.
- The default, => or a tab (from a spreadsheet), also reads two columns copied from Excel or Google Sheets, so you can paste a glossary straight in.
- The other choices are Comma ,, Equals sign = and Bar |.
- Only the first separator on a line counts, so the replacement can contain it.
- Spaces around => are trimmed. With the other separators, spaces are kept.
Options
- Match case is on by default. Turn it off to treat Cat and cat as the same.
- Whole words only stops cat from changing category.
- Regular expressions treats each find as a regular expression. The replacement can use $1, $<name> and $&.
Without regular expressions, all pairs are applied at once in a single pass, longest first. So cat => dog and dog => cat swap the two words, and New York wins over New.
With regular expressions, pairs run one after another in list order, so a later pair can change the result of an earlier one.
Tips
- Open Replacements for each pair. A count of 0 means the pair was not found, which helps you spot typos.
- Use it for British to American spelling, renaming products, anonymising names or cleaning data.
- To check what changed, paste the before and after into Text Compare.
- Your text stays in your browser. Nothing is uploaded.