Skip to contentSkip to the inputSkip to the result

Find & replace text

Replace every occurrence of a phrase.

Loading tool

Instructions

Find & replace text

How to use

  1. Enter original text, the phrase to find and its replacement.
  2. An empty replacement deletes matches.

Supported input

  • Literal, whole-word or regular-expression matching, with or without case.
  • Several pairs are replaced in one pass.

Input example

cat → dog

Result example

All matching cat strings become dog

Troubleshooting

  • Check required inputs, numeric ranges and the selected conversion direction.

How it works

  • Replace every occurrence of a phrase.

Find and replace that changes only what you meant

How much each matching mode catches

Plain matching finds the text wherever it occurs, inside other words included. Replacing cat with dog in “cat category cat. Cat” in whole-word mode gives “dog category dog. Cat”: category is left alone because letters touch the match, and the capitalised Cat stays until you also choose to ignore case, which turns it into dog as well.

A whole word is one with no letter, digit or underscore directly before or after it. Korean gets one exception: a word ending in Hangul may be followed by a particle such as 이, 가, 을, 를 or 에서 and still count as whole, because Korean particles are written attached to the noun.

Special patterns in a regular-expression replacement

In plain and whole-word modes these have no special meaning: replacing 100 with $1 puts the two characters $1 in the text.

  • $1, $2 and so on insert a captured group: find (\d{3})-\d{4}-(\d{4}), replace with $1-****-$2, and 010-1234-5678 becomes 010-****-5678.
  • $<name> inserts a named group: (?<y>\d{4})-(?<m>\d{2})-(?<d>\d{2}) replaced with $<d>.$<m>.$<y> turns 2026-10-24 into 24.10.2026.
  • $& inserts the whole match: apple replaced with [$&] gives “[apple] pie”.
  • $$ is a literal dollar sign: \$(\d+) replaced with $$$1.00 turns “price $5” into “price $5.00”.
  • ^ and $ match at the start and end of every line, not just the whole text, so ^Line replaced with Row changes the first word of each line.

Regular-expression slips

  • An unescaped dot matches any character, so the pattern 3.5 also changes the 305 in “3.5 and 305”. Use plain mode for literal symbols, or escape them as \..
  • Greedy .* takes as much as it can: <b>.*</b> swallows “<b>a</b> <b>c</b>” in one match. Add a question mark, <b>.*?</b>, to replace each tag pair separately.
  • With several regular-expression pairs, the first rule that matches at a position wins. On “a1 b22”, \d+=># listed first gives “a# b#”; 1=>one listed first gives “aone b#”.
  • A pattern that does not parse, such as a lone opening bracket, is refused with an error instead of being guessed at.

Typing line breaks and tabs

Choose to read \n and \t as a line break and a tab, and the replacement \n becomes a real new line. Replacing “, ” with \n turns “apples, pears, plums” into a three-line list; without the option you get the literal characters apples\npears\nplums. Put \n in the find box to join lines instead, or replace commas with \t to get text that pastes into separate spreadsheet cells.

A safe routine for big replacements

  1. 1Start with whole-word mode and case matching; widen to plain or ignore case only if matches are missing.
  2. 2Watch for the word inside longer words: plain mode turns category into dogegory when cat becomes dog.
  3. 3Run the replacement, then paste the original and the result into the text comparison tool to read every changed line before you use it.

Checked

Frequently asked questions

Can I replace several words at once?

Yes. Add pairs such as cat=>dog; red=>blue, separated by semicolons. They apply together with the first replacement in one pass, and replaced text is not replaced again. So replacing a with b and b with c turns abc into bcc, and a=>b; b=>a swaps the two.

Can I change date formats with a regular expression?

Yes. Choose Regular expression and use group references such as $1. Find (\d+)-(\d+)-(\d+) and replace with $3/$2/$1 to turn 2026-10-18 into 18/10/2026.

Does Whole words match a Korean word with a particle attached?

Yes. Whole words only matches when no other letter or digit touches the word, but after a word ending in Hangul a particle such as 이, 가, 을, 를, 은, 는, 의, 에, 도, 로, 에서 or 까지 may follow. So replacing 고양이 with 강아지 turns 고양이가 into 강아지가, while 고양이들 and 들고양이 stay as they are. Use plain matching to replace those too.