Online Find & Replace Tool

Search and replace words, phrases, or patterns across text with live match counts, instant output, and powerful RegEx support.

Runs locally 0 lines • 0 bytes
Results update as you type
Input
Paste or type
Result
Updates as you type
// Converted text will appear here...
About this tool

About the Find & Replace

Find and replace text online with real-time match counts, regular expression (RegEx) support, case sensitivity, and whole word matching.

How to use the Find & Replace

  1. Paste your text and type the word or pattern to find.
  2. Type the replacement and switch on Match case, Whole word or RegEx if you need them.
  3. Check the live match count, then copy the updated text.

Find & Replace example

Input
Text: The colour of the colour wheel
Find: colour   Replace: color
Result
The color of the color wheel  (2 replacements)

When to use it

  • Converting British spellings to American spellings (or the reverse).
  • Renaming a product or person consistently across a long document.
  • Removing tracking parameters or other patterns with a regular expression.

Tip: Turn on Whole word to avoid partial matches, for example replacing "cat" without changing "category".

Live Match Count

Shows how many matches were replaced while you type, with clear errors for invalid patterns.

Regular Expression (RegEx)

Leverage JavaScript regular expressions with global, multiline, and case-insensitive flags.

Whole Word Matching

Target exact words without accidentally modifying partial substrings in other words.

Groups & Literal Mode

Use $1, $<name> and \n in RegEx replacements; in normal mode the replacement is inserted exactly as typed, $ signs included.

FAQ

Common questions

How do I use Regular Expressions in Find & Replace?

Check the "Use RegEx" option and enter standard JavaScript RegEx syntax (e.g. \b\d{4}\b to match 4-digit years).

What does "Match Whole Word" do?

It ensures that finding "cat" only matches the standalone word "cat" and not "caterpillar" or "scatter".

Can I replace text with empty strings to delete words?

Yes! Simply leave the "Replace" field empty and the output updates automatically with all matching occurrences removed.

Does this tool work offline?

Yes, all find and replace operations execute 100% inside your browser.