Bulk Find and Replace
Find and replace several words or phrases at once. Preview the changes before you copy or download the updated text.
Preview changes before you apply them
Add what you want to find and what should go in its place. Use Preview replacements to check the matches before you update the text or download a copy.
Protected text regions
Select text in the editor, then protect it. Source edits reset manual selections; Apply shifts them with the text. Manual selections apply only to the editor. Batch files use markers. Matches cannot cross protected text; zero-length insertions at outer boundaries are allowed.
Markers protect themselves and the text through the next closing marker, without nesting. Unclosed regions cause an error. Regions are fixed from the original input; generated markers do not create new protection during the same preview.
Rule sets and named libraries
Save up to five named snapshots on this page, or download JSON for later use. Rule sets include rules, matching mode and protection markers, not source text, files or manual offsets. Imported sets are reviewed before Apply; regex patterns run only in Preview. Leaving or reloading clears in-memory libraries.
Work stays in this browser. Source: 1 MiB per document; 50 rules; 10,000 complete Unicode characters per rule field; output: 5 MiB per document and 20 MiB per batch. A worker is terminated after five seconds, including stalled regex execution. No partial batch is accepted. Existing BOM and line endings are preserved; new-break choices affect only future edits.
How to use Bulk Find and Replace
Choose your input and rules
Paste editor text, import one UTF-8 file, or choose a batch of up to 20 files. Imports are checked together and staged before Use; original files are never overwritten. Add up to 50 ordered rules. Empty Replace deletes a match; an enabled rule must have nonempty Find.
Literal mode treats punctuation, backslashes and $1 as ordinary text. Ignore letter case uses JavaScript Unicode matching, without language-specific collation. Whole words or phrases require no adjacent Unicode letter, number, combining mark or connector punctuation such as underscore. Preserve matched case maps UPPER, lower and Title patterns onto the replacement; mixed case leaves it as entered.
Use regex deliberately
Turn on Use regular expression for a rule and enter its pattern without surrounding slashes. All matches use Unicode mode. Regex line anchors enables multiline ^ and $; Regex dot matches line breaks enables dot-all matching. Replace supports numbered/named captures, the full match, dollar escapes and prefix/suffix tokens. Backslash-n is not a replacement escape: enter a real line break in the Replace field.
Regex runs only in the worker when you preview. The worker is terminated after five seconds, including a stalled pattern; simplify it if the budget is exceeded. Input/output limits also apply. This is a time-bounded JavaScript regex tool, not a promise of linear-time regex execution.
Choose order and protection
Sequential rules work on each previous result. Simultaneous rules use the original text, with earlier positions winning and the first listed rule winning ties. Matches never overlap. A zero-length winning match advances to the next Unicode code point before matching again; a later rule at that same position does not also run.
Select editor text, then choose Protect selected text. Protected contents stay unchanged; source edits reset manual selections. Apply shifts their offsets, and Undo restores them. For editor or batch input, optional opening/closing markers protect themselves and everything through the next closing marker, without nesting. An unclosed region causes an error. Protection is fixed from the input for that preview; generated markers do not add new protected regions. Zero-length insertions at the outside edges are allowed.
Review, navigate and save
Preview replacements leaves originals unchanged. Review full rule counts, the complete text and inline removed/added context. Match navigation retains up to 100 contexts per rule and 1,000 across the batch; each changed span shows up to 200 characters. Sequential navigation refers to that rule’s input stage. Full counts and downloads are complete.
Copy or download the current file, apply an editor result with Undo, or download all batch results as a ZIP with a count manifest. ZIP output names are shortened and cleaned, and collisions get numeric suffixes. Save up to five named rule snapshots on this page or export versioned JSON to keep them. Rule sets contain settings and protection markers, not source text, files or manual offsets; import and review before Apply. Leaving or reloading clears in-memory work.
Keep exact text and recover
UTF-8 imports preserve the BOM and existing CRLF, CR and LF line endings. Show visible source whitespace reveals them. New-line menus affect only future edits, never existing text. Cancel keeps original inputs. Clear empties editor/batch inputs while retaining rules; Try an example loads a two-rule message. Undo restores the previous input, rules and protection. If copying fails, Select result supports manual copying.
Example: personalize a message
Try an example loads a message containing NAME and ORDER. Preview changes NAME to Alex and ORDER to book, giving three replacements. Navigate through the highlighted matches, then apply the complete result. Undo restores the earlier source.
To see mode differences, enter a, then add a → b and b → c. Sequential gives c; Simultaneous gives b. For case preservation, find cat with Ignore letter case and Preserve matched case enabled: cat CAT Cat becomes dog DOG Dog when Replace is dog.
About bulk text replacement
Bulk replacement helps update repeated names, labels and phrases while making rule order explicit. Regex can express patterns such as a number after a label; literal rules remain useful when punctuation should have no special meaning.
Protected regions keep selected text out of replacements. Batch previews help review multiple local documents before saving copies. A ZIP contains generated text and a manifest, never modifications to your original files.
Regular-expression and substitution behavior follows ECMAScript. Background execution and cancellation use Web Workers. Text and rule libraries stay in this browser; download what you want to keep.
Stars and feedback
Loading…
What could we improve in Bulk find-and-replace tool?
Email us feedback@tooltulip.com
Tool reference #046