Text Replacer
Use predictable literal matching for ordinary edits or an isolated regular expression for structured text, then review the exact match count before copying or downloading.
A QUICK WALKTHROUGH
How to use this tool
- Enter up to 100,000 characters and choose literal text or regular expression.
- Set first or all matches plus the mode-specific case, whole-term, and regular-expression flags.
- Replace locally, review the match count and result, then copy it or download a text file.
Literal mode with Unicode term boundaries
Literal mode treats dots, brackets, dollar signs, backslashes, and every other search character as ordinary text. Matching can respect or ignore case, work anywhere, or require Unicode letter, number, combining-mark, and underscore boundaries at the search text’s word-like edges. Replacement text stays literal, including dollar signs. Choose the first match or every non-overlapping match.
Isolated regular expressions with native replacement syntax
Regular-expression mode accepts a raw JavaScript pattern without surrounding slashes. Choose ignore-case, multiline, dot-all, and Unicode flags; first/all controls the global flag. JavaScript replacement references such as $$, $&, $1, and $<name> use their native meaning. The expression runs in a temporary Web Worker that is terminated after one second. Input is limited to 100,000 characters, pattern to 1,000, matches to 50,000, and output to 500,000 characters.
GOOD TO KNOW
Common questions
Are dollar signs special in replacement text?
They remain literal in literal mode. In regular-expression mode, JavaScript replacement references are enabled, so use $$ when you need one literal dollar sign.
Can a regular expression freeze the page?
The expression runs outside the page in a temporary Worker and is stopped after one second. Shorten the input or simplify the pattern if it reaches that limit.
Does whole-term mode use English-only word boundaries?
No. It treats Unicode letters, numbers, combining marks, and underscores as word characters at the search text’s applicable edges.