My Tools Garage

Find & Replace

Literal or regex find and replace with a count.

in-browser
Result 0 replaced

How to use

  1. 1 Paste the text you want to edit.
  2. 2 Type what to find and what to replace it with.
  3. 3 Toggle regex, case-insensitive or whole-word matching as needed.
  4. 4 Check the replacement count, then copy the result.

About Find & Replace

Find & Replace swaps every occurrence of a search term for something new and tells you exactly how many replacements it made.

Work in plain literal mode, where your search text is matched character-for-character with no special syntax to worry about, or switch on regular-expression mode for pattern matching, capture groups and backreferences like $1 and $2.

Case-insensitive matching lets "Cat", "cat" and "CAT" all match the same rule, and whole-word matching stops "cat" from matching inside "category" or "scatter".

It is the everyday workhorse of text editing: renaming a term throughout a document, reformatting a list, fixing a typo that appears dozens of times, or restructuring data with a clever regular expression.

An invalid regex never crashes the tool — it shows a clear message so you can fix the pattern.

The replacement count is genuinely useful as a sanity check: if you expected to change five things and the badge says fifty, you know your pattern was too broad before you copy anything out.

Everything runs locally in your browser, so even confidential text never leaves your machine, and the result updates live as you refine the search, the replacement or the matching options.

FAQ

Does it support regular expressions?

Yes — enable regex mode for pattern matching and use $1, $2 or $& in the replacement to reference captured groups.

What does whole-word matching do?

It wraps your search in word boundaries so "cat" matches the standalone word but not the "cat" inside "category".

What happens if my regex is invalid?

The tool shows a clear error message and leaves your text untouched until you fix the pattern.