Find and Replace
Replaces every occurrence of a word or phrase in your text with something else, and tells you how many replacements were made. You can ignore capitals, match whole words only or use a regular expression. It is useful for renaming a product, fixing a repeated typo or reformatting text.
How to use the Find and Replace
- Type the text to look for in Find and the new text in Replace with, then paste your text.
- Select Replace all. The status line shows how many replacements were made.
- Choose Ignore upper and lower case or Match whole words only as needed.
Regular expression mode
- Choose Regular expression to search with a JavaScript pattern. In the replacement,
$1inserts the first group,$<name>a named group,$&the whole match,$`and$'the text before and after the match, and$$a dollar sign. These follow JavaScript’s own rules: for example$10means group 10 only when the pattern has ten groups (otherwise group 1 followed by 0), and a token that does not apply is kept as typed. - Patterns run in a separate background task with a one-second time limit, so a pattern that would never finish is stopped instead of freezing the page. Test patterns first with the Regex Tester.
Limitations
- Maximum input is 100 KiB. In plain-text mode,
$in the replacement is inserted as typed.
Worked examples
Input
The cat sat on the category mat. Cat!
Result
The dog sat on the category mat. dog!
Input
Due 2026-12-04 and 2027-01-15.
Result
Due 04/12/2026 and 15/01/2027.
Practical uses
-
Rename a product across a document
A copywriter needs to change a product name throughout a long text. They type the old and new names and turn on whole-word matching. This stops words that merely contain the name from being altered, and the status line shows how many replacements were made.
-
Reformat dates in a list
An admin has dates written year-first and needs them day-first. They switch on regular expression mode and use a pattern with capture groups, then reorder them in the replacement with $1, $2 and $3. Every date in the list is rearranged in one pass.
-
Remove repeated phrases
A student has a draft that repeats a filler phrase. They enter the phrase in Find and leave Replace with empty, then select Replace all. They read the result to confirm the phrase has gone and the draft is shorter.
Related tools
Privacy: this tool runs entirely in your browser. Your text is not uploaded, logged or saved, and it is never sent to analytics. Maximum input: 100 KiB.