📝

Find & Replace

Replace every match at once, with regex and whole-word options.

How it works

Replace every occurrence of a word or pattern at once. Switch on regular expressions for advanced matching, with $1 and $2 available in the replacement to reuse captured groups.

Try an example

Result

🔒 Processed entirely in your browser — your text is never uploaded or stored.

About the Find & Replace

This free find and replace tool swaps every occurrence of a word or pattern in one go, and tells you how many matches it changed. Turn on regular expressions for advanced matching, and use captured groups in the replacement to rearrange text rather than just substitute it.

Everything happens in your browser, so you can safely run it over drafts, config files and internal documents.

Options

  • Case sensitivity — off by default, so Cat matches cat.
  • Whole words only, so replacing 'cat' leaves 'cats' alone.
  • Regular expressions for patterns like \d+ or ^\s+.
  • Capture groups: find (\w+) (\w+) and replace with $2 $1 to swap two words.

Useful patterns

  • \s+ — collapse runs of whitespace.
  • ^\s+ — strip leading indentation from every line.
  • \d — match any digit.
  • Leave the replacement empty to delete every match.

Frequently asked questions

How do I replace text using a regular expression?

Tick 'Regular expression', then enter a pattern like \d+ in the find box. You can reference captured groups as $1, $2 and so on in the replacement.

What does 'whole words only' do?

It only matches your term when it stands alone, so replacing 'cat' changes 'cat' but leaves 'category' and 'cats' untouched.

What happens if my regular expression is invalid?

You get a plain-English message and your text is left untouched — nothing is replaced until the pattern is valid.

Is my text uploaded?

No. Find and replace runs entirely in your browser.

Related searches

find and replacereplace text onlinebulk replacesearch and replaceregex replacemass replace text

Related Text tools