Find and Replace Text

Bulk find and replace, with optional regex.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

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
ModeFindReplaceResult
Literalcatdog”the dog sat”
Case-insensitivethea”a Cat sat”
Regex\s+(single space)collapses runs of whitespace

All processing happens in your browser — nothing is uploaded.

Ad placeholder (rectangle)