Find and Replace Text

Change a word, name or pattern everywhere in a block of text at once – with options for exact case, whole words and regular expressions.

  • Files stay on your device
  • Free, no sign-up
  • Instant
Quick guide · 4 steps

How to use the Find and Replace

When to use the Find and Replace

Updating names and prices

Change a product name, company name or price everywhere in a long document in one go.

Cleaning copied text

Remove unwanted characters, tracking codes or repeated phrases from text pasted from the web.

Reformatting lists

Turn commas into line breaks, add a prefix to every line, or swap the order of first and last names with a regular expression.

Preparing data

Fix date formats or separators in CSV text before importing it into a spreadsheet.

Features and benefits

  • Case-sensitive and whole-word matching
  • Full regular expressions with $1, $2 capture groups
  • Shows exactly how many replacements were made
  • Helpful messages for invalid patterns

Example

Input
Text: Meeting on 2026-03-14 and 2026-04-02
Find: (\d{4})-(\d{2})-(\d{2})  Replace: $2/$3/$1  (regex on)
Output
Meeting on 03/14/2026 and 04/02/2026 · 2 replacements

How the Find and Replace works

Your search is turned into a JavaScript regular expression. In normal mode, special characters are escaped so they are matched literally; “Whole words” adds word boundaries; “Match case” controls whether capitals matter. In regex mode, your pattern is used as written and the replacement can refer to captured groups with $1, $2 and so on. Every match is replaced and the number of replacements is shown.

Good to know

Whole-word matching stops “cat” from also changing “category” and “concatenate”. Turn it on whenever you replace short words.

Regular expressions describe patterns rather than fixed text. For example, \s+ matches any run of spaces, and \d{3} matches three digits. Parentheses capture parts of the match so you can reorder them with $1, $2 and so on, as in the date example above.

Tips for the best results

  1. Leave the Replace box empty to delete every match.
  2. Use \n in regex mode to match or insert a line break.
  3. Turn on “Whole words” when replacing short words such as “an” so you do not change “plan” or “answer”.
  4. Test a regex on a small sample first, then paste the full text.

Common mistakes to avoid

Forgetting to escape special characters in regex mode

Characters like . ? + ( ) have special meanings. Write \. to match a real full stop, or switch regex off.

Replacing with Match case off when case matters

“Apple” the company and “apple” the fruit both change. Turn on Match case.

Running replacements one after another on the original

Copy the output back into the input box before doing the next replacement.

Find and Replace – frequently asked questions

How do I delete a word everywhere?

Type the word in Find, leave Replace with empty and click Replace all.

What are capture groups?

With regex on, parts of the pattern in parentheses are “captured”. In the replacement, $1 is the first group, $2 the second, and $& is the whole match.

Why does it say “No matches found”?

Check spelling, and try turning off “Match case” and “Whole words only”. With regex on, characters like . ? ( ) have special meanings and may need a backslash.

Can I replace line breaks?

Yes – turn on regular expressions and search for \n.

How do I swap first and last names?

Turn on regex, search for (\w+) (\w+) and replace with $2, $1.

How do I add text to the start of every line?

Turn on regex, search for ^ and replace with your prefix. Multi-line matching is on by default.

Is there an undo?

Your original text stays in the input box, so you can always change the settings and try again.

Can I replace several different words at once?

In regex mode, separate options with a vertical bar: cat|dog replaces both words with your replacement.