Find and Replace
Replace text everywhere at once, without opening an editor. Alongside plain search you get case matching, whole-word matching so 'cat' does not match 'category', and full regular expressions with capture groups you can reuse in the replacement as $1 and $2. An unfinished regex simply reports itself instead of breaking the page.
Capture groups can be used in the replacement as $1, $2 and so on.
Nothing is uploaded — this tool runs inside your browser, so your files never leave your device.
Why use this tool
- Replaces every match at once, with a count of what changed
- Whole-word matching so 'cat' doesn't match inside 'category'
- Full regular expressions with $1 and $2 capture groups
- Leave the replacement empty to delete every match instead
How it works
- 1Paste your text into the box above.
- 2Type what to find and what to replace it with.
- 3Copy the result, or download it as a .txt file.
Find and Replace — frequently asked questions
Type what you want gone in the Find box and leave 'Replace with' empty. Every match is removed.
More text tools
Looking for something else? Browse all text tools
Explore the other tools
Same deal everywhere on the site — free, no sign-up, and no watermark on anything you download.
Or see every tool on one page.