Skip to content
  1. ConvertSoon
  2. Text tools
  3. Find and replace

Find and replace text

Find a word or phrase and replace every match at once. It is free, supports case-insensitive matching and regular expressions, and runs in your browser.

Runs in your browser Updates as you type Free, no signup

How to use the find and replace text

  1. Paste your text

    Type or paste into the box on the left. It never leaves your browser.

  2. Set find and replace

    Choose the option you need. The result updates straight away.

  3. Copy the result

    Press Copy result to copy it, or Save to download a .txt file.

Examples

Real results from this tool.

You typeYou get
The cat sat on the mat.The dog sat on the mat.

Word find and replace, or patterns

Type the word to find and what to replace it with; every match changes at once. Turn on Ignore case to match Cat, cat and CAT together. Turn on Regular expression for patterns: \d+ matches any number, \s+ any run of spaces, and ^ the start of a line. Leave Replace with empty to delete every match.

Useful find and replace examples

Swap a product or company name in a whole document, fix a word you misspelled everywhere, replace double spaces with single ones, or delete every number by finding \d+ with regular expressions on and leaving Replace with empty. To change dates from 2026-11-20 to 20/11/2026, find (\d{4})-(\d{2})-(\d{2}) and replace with $3/$2/$1.

Check before you replace

Short words can match inside longer ones: replacing cat also changes category. With regular expressions on, \\bcat\\b matches the whole word only.

Related tools

More text utilities and similar tools, all free.

Questions about the find and replace text

No. Your text stays in the left box and the changed version appears on the right, so you can try again.

One find and replace pair runs at a time. Press Use as input to keep the result, then set the next word, and repeat for each change.

Turn on Regular expression and find \n to match a line break. To join broken lines from a PDF, the remove line breaks tool is quicker.

Yes by default, so Cat and cat are different. Turn on Ignore case to match both.

No. The conversion runs in your browser, so the text never leaves your device and works offline once the page has loaded.