toolgix

Find and Replace

Find and replace text, with optional whole-word, case and regex matching.

Runs in your browserFree · no sign-up
01 Your text
02 Result
02 Options

Use $1, $2 in the replacement for captured groups.

How to use Find and Replace

  1. Paste your text.
  2. Type what to find and what to replace it with.
  3. Turn on match case, whole words or regular expressions if needed, then copy the result.

How it works

Every match is replaced at once and the status line reports how many replacements were made. Whole words only stops "cat" from matching inside "category". Matching is Unicode-aware, so accented words are treated as whole words correctly.

With Regular expression on, the Find box accepts JavaScript regex syntax and the replacement can use $1, $2 for captured groups, $& for the whole match, and \n for a line break. Test complex patterns first with the Regex Tester.

Example

Find (\d{4})-(\d{2})-(\d{2}) and replace with $3/$2/$1 (regex on) to turn 2026-11-09 into 09/11/2026.

Frequently asked questions

How do I delete a word everywhere?

Type it in Find and leave Replace empty. Turn on "Whole words only" so it is not removed from inside other words.

Can I replace line breaks?

Yes: turn on Regular expression and find \n. To join lines into paragraphs, the Remove Line Breaks tool is easier.

Can I undo a replacement?

Your original text stays in the input box, so you can change the options or clear Find to start again.

Is my text processed online?

No, everything runs in your browser and nothing is stored.

Limitations

  • Only one find/replace pair at a time; run the result through again for more pairs ("Use result as input").
  • Patterns that can match empty text are refused to prevent unexpected output.

Last reviewed November 9, 2026. How we build and test tools.

Categories

Recent and favourites

Tools you open appear here, and tools you star with “Favourite” stay at the top. This list is kept only in this browser.

Browse all 78 tools

↑ ↓ to moveEnter to openEsc to close