Find and Replace Text

Replace every occurrence of a word or phrase — or a regular expression — in one go.

✓ Runs locally in your browser — nothing is uploaded

In short: Find and replace searches text for a word, phrase or regular expression and swaps every match for new text, with options for case sensitivity and whole words.

About Find and Replace Text

Changing a product name throughout a document, swapping a placeholder in an email template or cleaning up a CSV column are all find-and-replace jobs. This tool shows the result and the number of replacements live as you type, so you can check before copying.

In regular-expression mode, the pattern uses JavaScript syntax and the replacement can refer to capture groups with $1, $2 or $<name>; \n and \t in the replacement insert a newline or tab. Without regex mode, special characters are matched literally.

How to use Find and Replace Text

  1. Paste your text.
  2. Type what to find and what to replace it with.
  3. Set Match case, Whole words or Regular expression as needed, then copy the result.

Examples

Rename a product

Find Acme Pro, replace with Acme Max, Match case on — “acme pro” in lower case is left alone.

Reformat dates with regex

Find (\d{2})/(\d{2})/(\d{4}), replace with $3-$1-$2 to turn 03/14/2026 into 2026-03-14.

Frequently asked questions

Why is “cat” replaced inside “category”?

Turn on Whole words only, which only matches the word on its own.

Can I replace line breaks?

Yes, in regex mode: find \n and replace with a space or comma.

Can I undo?

The original text stays in the input box; the result appears separately, so nothing is lost.

Is my text uploaded?

No. Replacement happens in your browser. You can check this yourself: open your browser’s developer tools, switch to the Network tab and use the tool — no request carries your input.

Updated November 2026 · Free, no signup · How we build and test tools

Related tools All text tools →