Find and Replace

Multiple find-and-replace rules at once, plain or regex, with live counts.

About this tool

Paste text, add rules (find → replace) with optional regex, match-case and whole-word switches, and watch the result and the count per rule update as you type. Rules apply in order, top to bottom. The rule set is saved in this browser so a recurring clean-up is one paste next time.

Batch edits without a script

The one-rule-at-a-time dialog in word processors is fine for a typo and hopeless for a recurring job: normalising an export, fixing five company-name variants, converting date formats. Stacking rules solves it, and the per-rule count is the safety feature — a rule that matches zero times or ten thousand is usually wrong, and you see it before you copy. Regular expressions are optional but powerful: find (\d{2})/(\d{2})/(\d{4}) and replace with $3-$2-$1 converts every date, and in the replacement inserts a line break. Order matters, since each rule sees the previous rule's output. Text never leaves your device; the rules (not the text) are saved locally. Build and test a pattern in the regex tester, apply one-click fixes with the text cleaner and the case converter, and compare before and after with the text diff.

Frequently asked questions

How do I use capture groups?

Tick the regex option, wrap parts of the pattern in parentheses, and refer to them as $1, $2 in the replacement. and in the replacement become a newline and a tab.

Why does the count say 'bad regex'?

The pattern does not compile — usually an unclosed bracket or a stray special character. Escape literal characters with a backslash or untick the regex option.

Do the rules run at the same time or in sequence?

In sequence, top to bottom, each on the output of the one before. Reorder by removing and re-adding, or write rules that do not overlap.

Is my text saved?

No — only the rules are saved in this browser. The text is processed in memory and discarded when you leave.