Find and Replace

Find and Replace

Find every occurrence of a word or pattern in your text and replace it in one click — with case, whole-word and regular-expression options.

Find and replace is the workhorse edit: a name spelled two ways through a document, a product renamed after the copy was written, a placeholder like [CITY] waiting to become real, dates in the wrong format, a word your client has just banned. Doing these edits one by one risks missing the one occurrence on page nine; doing them globally by hand is not possible at all. This tool finds every match and replaces them all in a single pass, telling you exactly how many changes it made.

Three options control the matching. Match case distinguishes "Apple" the company from "apple" the fruit. Whole words only prevents the classic accident where replacing "cat" also mangles "category" and "delicate". Regular expression mode is the power option: patterns can match any date format, any number, words with variable endings, and much more, and replacement text can reuse captured groups with $1, $2 and so on. If a pattern is not valid, the tool says so and changes nothing, rather than failing silently.

Two habits keep you safe. Use Count Matches first to confirm the pattern finds what you expect — no more, no less. And remember the original text stays untouched in the top box until you copy the result over it yourself, so a bad replacement costs you nothing. Everything runs in your browser.

How to use

  1. Paste your text into the top box.
  2. Type what to find, and what to replace it with (leave the replacement empty to delete matches).
  3. Set the options: case, whole words, or regular-expression mode.
  4. Click Count Matches to preview how many places will change.
  5. Click Replace All, check the result, and copy it where you need it.

Frequently asked questions

What is a regular expression, in plain words?

It is a pattern language for text. Instead of searching for one exact word, you describe a shape: "\d+" means any run of digits, "\b\w+@\w+\.\w+" resembles an email address, and "^" and "$" anchor to line starts and ends. It is powerful but unforgiving of typos, which is why the count-first habit matters.

Can I undo a replacement?

Within this page, yes — your original text remains in the top box unchanged, so you can adjust the options and replace again from the original as often as you like. Once you paste the result elsewhere, undo depends on that application.

Why did whole-word mode miss my match?

Whole-word matching uses word boundaries, which sit between a letter or digit and anything else. Matches inside hyphenated or apostrophised words can behave unexpectedly; untick the option and use match case or a more specific pattern instead.

Is my text uploaded anywhere?

No. Searching and replacing happen locally in your browser. Nothing is sent to a server or stored.