Find and Replace Online

Replace words or patterns across a whole text at once. Switch on regex for patterns and capture groups; matches are counted before you commit.

Runs entirely in your browser. Your text is not uploaded.

0words
0characters
0lines

Type something to find.

0words
0characters
0lines

How to use the find and replace

  1. Paste your text.
  2. Type what to find and what to replace it with.
  3. Tick regex, match case or whole word as needed, and copy the result.

Questions

How do I use capture groups in the replacement?

With regex on, wrap part of the pattern in brackets and refer to it as $1, $2 and so on. Finding (\d+)-(\d+)-(\d+) and replacing with $3/$2/$1 turns 2026-01-05 into 05/01/2026. Named groups work as $<name>.

Does whole word work with accented letters?

Yes. Word boundaries are Unicode-aware, so replacing "café" as a whole word leaves "cafés" alone.

How do I replace line breaks?

Turn on regex and search for \n. Replace with a space, a comma or anything else.