Find and Replace Text Online

Writing Tools

Paste text, find words or patterns, and replace them all or one at a time, with matches highlighted first.

Options
1
Pairs run in order, top to bottom.
Text

Processed in your browser. A copy of each run is saved to your past runs so you can reopen it. Privacy

About

What the Find and Replace does

Find and Replace changes words or patterns in pasted text. Add several pairs and they run in order, top to bottom. Matches are counted and highlighted before you replace, in a different color for each pair. Options cover case, whole words and regular expressions with $1 group references. Replace all or one at a time, and Undo restores the previous text.

Steps

How to use it

  1. 1Paste the text.
  2. 2Enter what to find and what to replace it with; add more pairs if needed.
  3. 3Check the counts and the highlighted preview.
  4. 4Press Replace all or Replace next; Undo if needed, then copy the text.

Example

A real run

Input

The Acme Phone pairs with the Acme Watch, and the Acme Tablet syncs with both.

Pair 1: Acme → Northwind
Pair 2: Watch → Band
(Match case and Whole words on)

Output

The Northwind Phone pairs with the Northwind Band, and the Northwind Tablet syncs with both.

Replaced 4 matches: pair 1: 3, pair 2: 1

Pair 1 replaces three product-line names, then pair 2 renames the watch on the result. Whole words keeps Watch from matching inside a longer word such as Watchlist.

Options

Every setting, and when to use it

Several pairs
Each pair runs on the result of the one before, so "Acme" → "Northwind" followed by "Watch" → "Band" renames a whole product line in one press. Up to 10 pairs.
Match case and Whole words
Match case keeps "Apple" from matching "apple". Whole words keeps "cat" from matching inside "category"; it works for accented letters too.
Regular expressions
Uses JavaScript regex syntax: (\d{3})-(\d{4}) with replacement $1.$2 reformats numbers. Each pattern runs in a background worker that is stopped after 2 seconds, so a runaway pattern cannot freeze the page.

Good to know

Common problems and limits

Text up to 10 MB. Counts show up to 10,000 matches per pair; Replace all still replaces every match.

The preview highlights matches in the first 20,000 characters; each pair's matches are found in the original text, before earlier pairs run.

To build and debug a pattern with explanations, use the Regex Tester. For whitespace cleanup, Remove Extra Spaces is quicker.

Audience

Who uses it

  • Content and marketing teamsUpdate a product name, a price or a URL across a long page or email before publishing.
  • DevelopersRewrite identifiers, paths or log formats in pasted text with regex groups, without opening an editor.
  • Writers and editorsApply a style guide: straight to curly quotes, US to UK spellings, or a repeated typo fixed in one go.

FAQ

Frequently asked

How do I find and replace in Word, Excel or Google Docs?

Press Ctrl+H in Word and Excel on Windows, and Ctrl+H or Cmd+Shift+H in Google Docs. Word on a Mac uses the Edit menu, Find, Replace. Those work inside one document; this page works on any pasted text and runs several replacements in order.

What is the difference between wildcards and regular expressions?

Wildcards, such as Word's * and ?, cover simple patterns. Regular expressions are a full pattern language with groups, alternatives and repetition, used in code editors and programming languages. Word's Use wildcards option has its own syntax, close to but not the same as regex.

How do I replace line breaks?

Turn on Regular expressions and search for \n to replace each line break, or \n\n for blank lines. Remove Line Breaks handles paragraphs and hyphenated words automatically.

How do I use capture groups like $1?

With Regular expressions on, parentheses capture part of a match and $1, $2 insert those parts in the replacement. For example, find (\w+), (\w+) and replace with $2 $1 to turn "Lovelace, Ada" into "Ada Lovelace". $& inserts the whole match.

Can I undo a replacement?

Yes. Undo restores the text from before the last Replace all or Replace next, up to 20 steps back.

Is my text sent anywhere?

No. Matching and replacing happen in your browser. A copy of each Replace all is saved to your past runs so you can reopen it.

Automation: an MCP tool find_replace(text, pairs, options) → text and an n8n node are planned for this tool.

GuideCleaning pasted text: line breaks, spaces, duplicates and sorting →Text pasted from PDFs, Word and web pages brings hidden breaks, odd spaces and duplicates. Fix them in the right order: breaks, spaces, duplicates, sort.
Built and maintained by Radhika SinghLast updated Questions: hello@operativez.ai