Batch Find & Replace Tool
Apply multiple find → replace rules in order, with case-sensitive, whole-word and regex modes, live preview and hit statistics — processed entirely in your browser.
In regex mode use JavaScript syntax, e.g. \d+ for digits; whole-word matching is ignored in regex mode.
In plain mode, \n (newline) and \t (tab) escapes are supported in both fields.
Typical uses for batch replace
Rules run from top to bottom, each applied to the result of the previous one. That supports dependent edits, e.g. first rename "Shanghai" to "Shanghai City", then fix "Shanghai City center" into "city center".
With "Regular expression" enabled, the find field is parsed as JavaScript regex: \d+ matches digits, \s+ matches whitespace, (\w+)@(\w+) works with $1/$2 group references, and $& stands for the whole match. Invalid patterns show an error while keeping the last valid result, so you never lose your input.
In plain mode, finds are literal — characters like . * ? have no special meaning — and \n / \t escapes let you match newlines and tabs. Everything is processed locally in your browser; nothing is uploaded.
How to use
- Paste your text and fill in one or more find → replace rules.
- Toggle case sensitivity, whole words or regex as needed; the result updates live.
- Check the hit counts, then click "Copy" to take the result.
FAQ
In what order do the rules run?
Top to bottom, each rule applied to the result of the previous one. To reorder, remove and re-add the rules.
How do I find or insert a newline?
In plain mode, type \n for a newline and \t for a tab in either field; in regex mode use regex syntax such as \n or \s.
What does whole-word matching mean?
Only standalone words are replaced — searching for cat will not touch category. This option applies to plain mode only.
What happens if my regex is wrong?
The page shows an "invalid regex" error with details and keeps the last valid result along with all your input; fixing the pattern restores the output automatically.