<link rel="stylesheet" type="text/css" href="/mirawhite.css">

Find and replace text online

Paste your text, then add one or more rules. They are applied one after the other, and each rule shows how many replacements it made. Free, and the text stays in your browser.

Free, no sign-up, no limit Runs in your browser: your text and files are never sent or saved.

Find and replace

Rules, applied in order
Rule 1

Fill in the text to find

How to use it

  1. Paste or type your text.
  2. Fill in what to find and what to replace it with. Tick “Match case”, “Whole word” or “Regular expression” if needed.
  3. Add more rules if needed: rule 2 works on the result of rule 1, and so on. Then copy or download the result.

Example

Input

Text:
Hi Tom,
the meeting is on 11/24/2026 at 10:00.
Tom, please send the slides by tomorrow.

Rule 1: Tom → Sarah (whole word)
Rule 2 (regular expression): (\d{2})/(\d{2})/(\d{4}) → $3-$1-$2

Output

Hi Sarah,
the meeting is on 2026-11-24 at 10:00.
Sarah, please send the slides by tomorrow.

Good to know

  • The text is limited to 1 MB (about a million characters).
  • Regular expressions follow JavaScript syntax. In the replacement, $1, $2… insert captured groups, $& the whole match, and \n a line break. ^ and $ match the start and end of each line.
  • “Whole word” treats letters, digits and the underscore as word characters, accented letters included.
  • “Preserve case” adapts the replacement to each match: all capitals, first capital or all lowercase. It is available without regular expressions and when “Match case” is off.
  • Without the regular expression option, the text to find and the replacement are taken literally: $ and \n are ordinary characters.

Frequently asked questions

How do I find and replace in Word?

Press Ctrl+H in Word for Windows, or use Edit > Find > Replace on a Mac, type the word and its replacement, then click Replace All. This page is useful when you have several replacements to chain, or text coming from somewhere other than Word.

How do I find and replace in Google Docs or Google Sheets?

Press Ctrl+H (Cmd+Shift+H on a Mac) or use Edit > Find and replace. Both support “Match case” and regular expressions. To run several replacements in one go on a block of text, add one rule per change here.

How do I replace several different words at once?

Click “Add a rule” for each pair: every rule has its own text to find, replacement and options. Rules run in order, the second one working on the result of the first, and each shows its own number of replacements.

How do I use a regular expression with $1?

Tick “Regular expression”, capture parts with parentheses and reuse them in the replacement. For example, (\d{2})/(\d{2})/(\d{4}) replaced by $3-$1-$2 turns 11/24/2026 into 2026-11-24. $& inserts the whole match and \n a line break; the syntax is JavaScript’s.

How do I replace a word without changing longer words?

Tick “Whole word”: replacing “Tom” then leaves “tomorrow” untouched. Untick “Match case” if “tom” and “Tom” should both be replaced. Accented letters count as word characters, so “café” is never split.

← Back to all tools