Find and replace text
Cleaning up a document, renaming a term across a code snippet, or reformatting pasted data all come down to the same task: swap every occurrence of one string for another. This tool does bulk find-and-replace on any text you paste, with an optional regular-expression mode for patterns the simple version cannot reach, and a live count of how many replacements it made.
How it works
Paste your text, type what to find and what to replace it with, and the
result updates instantly. With regex off, the find value is matched literally —
every exact occurrence is swapped. With regex on, the find value is treated as
a JavaScript regular expression, so you can use character classes, anchors, word
boundaries and capture groups (referenced as $1, $2 in the replacement). The
case-insensitive toggle ignores letter case while matching. All matches are
replaced in one pass and the replacement count tells you how many were made.
Example
Literal replace — find colour, replace color in a paragraph: every colour
becomes color and the count shows the total swapped.
Regex replace — turn 2026-05-30 style dates into 30/05/2026:
- Find (regex on):
(\d{4})-(\d{2})-(\d{2}) - Replace:
$3/$2/$1
| Mode | Find | Replace | Result |
|---|---|---|---|
| Literal | cat | dog | ”the dog sat” |
| Case-insensitive | the | a | ”a Cat sat” |
| Regex | \s+ | (single space) | collapses runs of whitespace |
All processing happens in your browser — nothing is uploaded.