Literal mode protects punctuation
Characters such as dot, star, plus, brackets, and parentheses are escaped before the pattern is built. They match themselves instead of acting as regex operators.
Search and replace text with support for regex, case-sensitive, and whole-word matching.
Enter the text content you want to search through.
Type the word or pattern you want to find.
Type the text to replace each match with.
Click replace all or step through matches one at a time.
This page finds every match in a block of text, highlights the occurrences, and replaces them in one operation. Literal mode escapes regular-expression punctuation, while regex mode treats the find field as an ECMAScript pattern. Case sensitivity changes the regular-expression flags but never modifies the source text until Replace All is selected.
A concrete input and expected output from the current implementation.
Input
Source: bee2 BEE2 Bee2 Find: bee2 Replace: b2KIT Case sensitive: off
Expected output
Source: b2KIT b2KIT b2KIT
The global, case-insensitive literal search matches all three case variants and replaces each with the same supplied value.
Characters such as dot, star, plus, brackets, and parentheses are escaped before the pattern is built. They match themselves instead of acting as regex operators.
Replacement strings can use JavaScript replacement tokens such as $1 when the pattern contains capture groups. Invalid patterns are reported before replacement.
Dot is a regular-expression wildcard. Escape it as a backslash followed by dot, or switch to literal mode to match an actual period.
No. The result appears separately, allowing the original and transformed text to be compared before copying.
The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.
Count words, characters, sentences, and paragraphs in any text instantly.
Convert text between uppercase, lowercase, title case, sentence case, and more.
Paste text and hear it read aloud using Web Speech API. Adjust voice, speed, and pitch in real time.
Compare two blocks of text side-by-side and highlight differences instantly.
Paste text and instantly remove duplicate lines while preserving order.
Strip extra whitespace, fix line breaks, and normalize text for clean output.