Free Online Find & Replace Text
Replace words or patterns, with optional regular expression support.
Plain text mode escapes special characters automatically. Use $1, $2 in the replacement when using regex groups.
About the Find & Replace Tool
Find and replace is one of the most useful editing operations there is, but it is often buried in a menu or missing entirely from a web form. This tool gives you a full-width workspace for the source text and a clear preview of the result, so you can inspect changes before copying them back into your document.
In the default plain-text mode, the search string is treated literally. Characters such as dots, brackets,
and question marks match themselves, which makes everyday replacements safe. When you enable the
regular expression option, the search string becomes a pattern. That allows you to match
numbers, repeated whitespace, or groups of characters in one pass, and to reference captured groups with
$1, $2, and so on in the replacement field. The match counter tells you how many
occurrences were found, which is valuable for checking that a pattern is neither too broad nor too narrow.
Case sensitivity and global replacement
The case sensitive option distinguishes “Apple” from “apple”. Leave it off for normal editing and turn it on for code identifiers or brand names where capitalisation matters. The replace all occurrences option controls whether every match is changed or only the first one. All processing happens locally, so contracts, drafts, and internal documents never leave your device.
Frequently asked questions
Why does my regular expression show an error?
A pattern must be valid JavaScript regular expression syntax. Unclosed brackets, unbalanced parentheses, and dangling backslashes are the most common causes. The tool displays the browser's error message to help you correct it.
Can I use capture groups?
Yes. In regex mode, groups written with parentheses can be referenced in the replacement as $1, $2, and so on. In plain-text mode dollar signs are treated literally.
Does the tool edit my original text?
No. The original stays untouched and the result appears in a separate read-only panel. You can copy or download it and keep editing the source.