How to use it
- Paste your text in the Text box.
- Type what to find and what to replace it with. Leave “Replace with” empty to delete the matches.
- Choose options: ignore case, whole words only, or regular expression.
- Check the match count and the result. Copy it, or click “Apply to text” to make another replacement on top of it.
How it works
In normal mode the search text is matched literally: dots, brackets, dollar signs and other symbols have no special meaning, and the replacement is inserted exactly as typed. Every match in the text is replaced, and the counter shows how many there were.
“Whole words only” matches the search only when it is not directly preceded or followed by a letter, digit or underscore in any alphabet, so “cat” matches in “the cat.” but not in “catalog” or “bobcat”, and it works for words such as “çay” or “Straße” too.
In regular expression mode the search uses JavaScript regular expression syntax with the Unicode (u) flag always on, so “.” matches a whole emoji and \p{L} matches any letter. The Unicode flag is stricter than older syntax: an unnecessary escape such as \- outside a character class is reported as an error. In the replacement, $1, $2 and so on insert capture groups, $<name> inserts a named group, $& inserts the whole match and $$ inserts a dollar sign. \n, \t and \\ insert a line break, a tab and a backslash. With “^ and $ match at each line” on, ^ and $ refer to the start and end of every line; otherwise to the start and end of the whole text.
An invalid pattern shows the browser's error message and no replacement is made. Very complex patterns on large texts can take a long time to run, because some regular expressions slow down sharply on certain inputs.
Examples
Reformatting dates
With regular expression mode on, find (\d{4})-(\d{2})-(\d{2}) and replace with $3.$2.$1 to turn 2026-10-22 into 22.10.2026 everywhere in the text.
Renaming a product
Find “Pro”, replace with “Plus”, and switch on “Whole words only” and “Ignore case”, so “PRO” and “pro” change but “product” and “process” stay as they are.
Turning a comma list into lines
In regular expression mode, find ,\s* and replace with \n to put each item of “red, green, blue” on its own line.
Frequently asked questions
How do I use capture groups?
Switch on “Regular expression”, put parentheses around the parts you want to keep, and refer to them in the replacement as $1, $2 and so on. For example, find (\w+) (\w+) and replace with $2 $1 to swap two words.
Why is my regular expression shown as invalid?
The pattern is checked with the browser's JavaScript engine in Unicode mode. Common causes are unbalanced parentheses or brackets, a quantifier with nothing before it such as *abc, and unnecessary escapes such as \- or \: that Unicode mode does not allow.
Can I replace text with a line break?
Yes, in regular expression mode: type \n in the “Replace with” field. In normal mode the replacement is inserted literally, so \n stays as the two characters backslash and n.
Can I undo a replacement?
Your original text stays in the Text box until you click “Apply to text”. Applying replaces it with the result, so copy the original first if you may need it again.
Privacy
Search and replacement happen only in your browser. Your text and patterns are not uploaded, stored or included in analytics.