The Genius Replace Utility

Swap many values in one go. Everything runs in your browser; nothing is uploaded.

Replacements

0 rows
.* regexAa match caseW whole words m ^ and $ match each lines dot matches line breaks1st first match only
StepFindReplace with
Hits
How it works

Order: rows run top to bottom. Plain rows next to each other are one step, applied in a single pass, so swaps like A→B and B→A work and longer finds win. Each regex row is its own step. Each step works on the result of the steps above. Tick “Run plain rows one at a time” to make every plain row its own step.

Row ticks: an unticked row replaces nothing, but references and placeholders can still use its value. Handy for mail-merge rows like name → bob smith.

Regex: replacements can use $1, $<name> and $&. In plain rows $1 is just text.

Order: { } vars are worked out first, then Mail Merge fills << >> in the input, then Find Replace runs. With Order 1 the merged values are locked, so Find Replace can’t change them; with Order 2 it can.

{ } vars: {pet} in Replace with is filled from the current Mail Merge record’s “pet” field, or else from the row whose find is “pet”. Add a case like {pet::upper}. Loops show as errors. Type {{ or }} for a literal brace.

Mail Merge: <<name>> in the input text is filled from the current record’s “name” field, or else the row whose find is “name”; <<name::upper>> also changes the case. The markers can be changed above. Cases, shown for “bob smith”:

CSV columns: find, replace, enabled, regex, match_case, whole_word, multiline, dotall, first_only. Only find and replace are needed. Leave a cell blank for the default. To change one, write its word (disabled, regex, ignore case, whole word, multiline, dotall, first only) or yes/no. Commas, semicolons and tabs are detected, and a header row is optional.

Edits here update the table, and the table updates this box.
Mail Merge records
A CSV with a header row of field names and one row per person. The input becomes a template, filled in once per row.