Find and replace

Find and replace words or patterns in any text, and see how many changes were made. Match case, whole words, or use regular expressions.

Your files stay on your device. Nothing is uploaded.

Find and replace

Updates as you type

Step 1: Type or paste your text

Step 2: Options

Leave empty to delete what you find.

Match

Step 3: Copy or download

How to find and replace text

  1. Paste your text

    Paste the text into the first box.

  2. Type what to find and the replacement

    Leave the replacement empty to delete what you find. Choose match case, whole words only, or regular expression.

  3. Copy the result

    The result and the number of replacements update as you type. Copy it or download a .txt file.

About this tool

Whole words only

Replacing "cat" changes "category" too. With Whole words only, only the word cat on its own is changed. It works for every alphabet, including Urdu and Arabic.

Regular expressions

Tick Regular expression for patterns: \d+ matches numbers, \s+ runs of spaces. Use $1, $2 in the replacement for groups: find (\d+)-(\d+)-(\d+) and replace with $3/$2/$1 to turn 2026-11-29 into 29/11/2026.

Handy everyday fixes

Turn commas into line breaks, remove double spaces, change a product name everywhere, or delete a word in a long document.

Privacy

This tool runs in your browser, on your own device. Your files and text are not uploaded to our server and we cannot see them. When you close or reload this tab, they are cleared, along with the results.

Frequently asked questions

How do I put a line break in the replacement?

Tick Regular expression and use \n in the find box to match line breaks. To add breaks, find ", " and replace with a line break you paste into the box.

What if my regular expression is wrong?

The page says what is wrong instead of changing anything.

Is my text uploaded?

No. The text stays in your browser and is never sent anywhere.

Is capital letters matching on by default?

No. Finding "apple" also finds "Apple" unless you tick Match capital letters.