🔍 Text Tool

Find & Replace

Search and replace any word, phrase, or pattern in your text. Supports regex, case-sensitive and whole-word matching.

Type something to find matches
Input text
Original 0 words · 0 chars
Preview
0Matches
0Replaced
0Words
0Chars
Changes diff

How to use the find and replace tool

Paste your text in the left panel, enter a search term and a replacement, then click Replace All. The right panel shows a live preview with all matches highlighted in orange before any replacement is made. Use Replace This to step through matches one by one.

PatternMatchesExample
\d+Any sequence of digits123, 4567
\w+Any word (letters, digits, _)hello, foo_bar
[aeiou]Any vowela, e, i, o, u
\s+One or more whitespace charactersspaces, tabs
^Start of a line^Hello matches line-start Hello
$End of a lineworld$ matches line-end world
(foo|bar)Either "foo" or "bar"foo, bar
\bWord boundary\bcat\b matches "cat" not "catch"
🔍 Live preview

All matches are highlighted before replacing. Navigate with Prev/Next to step through matches one at a time — no accidental replacements.

🔤 Regex support

Enable Regex mode to use full JavaScript regular expression syntax. Capture groups, lookaheads, and backreferences all work as expected.

↩ Undo

Every Replace All action saves the previous text. Hit Undo to instantly revert the last replacement — no data is ever lost.

📋 Diff view

After replacing, a diff shows exactly what changed — deleted text in red, inserted text in green. Perfect for reviewing bulk edits.

Frequently asked questions

Paste your text, type what you want to find and what to replace it with, then click Replace All. The preview panel shows highlighted matches before anything changes. Use Replace This to replace one at a time.
Enable the Regex toggle, then enter a JavaScript regex pattern in the Find field. For example, \d+ matches any number sequence. The Regex Reference table above lists the most common patterns.
Type the word in Find, leave the Replace field empty, and click Replace All. All instances will be removed from the text.
Whole word matching only replaces the term when it appears as a standalone word. For example searching "cat" with whole word on will not match "catch" or "concatenate" — only the word "cat" exactly.
No. All processing happens entirely in your browser. Your text is never sent to any server and is not stored anywhere. Closing the tab clears everything.
🔗 Related tools