67 · Text Tools

Find and Replace

Paste your text, type what to find and what to replace it with, and copy the result. Turn on whole words or regular expressions for precise edits.

Find and Replace

How to use the find and replace

  1. Paste your text.
  2. Type the word or phrase to find, and what to replace it with. Leave the replacement empty to delete matches.
  3. Use Whole words only so “cat” doesn’t change “catalog”.
  4. Copy the result. The label shows how many replacements were made.

Using regular expressions

With Regular expression on, the find field is a JavaScript regex. Use $1, $2 in the replacement to insert captured groups, and $& for the whole match.

  • \s+ → a single space: collapse runs of whitespace.
  • (\d{4})-(\d{2})-(\d{2}) → $3/$2/$1: reformat dates.

Examples

Find “cat”, replace with “dog”, whole words on: “Cat, cat, catalog”

“dog, dog, catalog” · 2 replacements

Regex (\d{4})-(\d{2})-(\d{2}) → $3/$2/$1 on 2026-10-29

29/10/2026

Questions

Is matching case-sensitive?

Not by default. Tick Match case to only replace exact capitalisation.

Does it work with emoji and accented letters?

Yes. Matching is Unicode-aware, including whole-word mode.

Is my text uploaded?

No. Everything runs in your browser.