About this tool
Replace every occurrence of a word or pattern in a block of text at once. Plain mode matches exactly what you type; regular expression mode adds patterns, capture groups ($1, $2) and line anchors for advanced edits. A live match count shows what will change, and your text never leaves the browser.
How to use Find and Replace
- Paste the text you want to edit.
- Enter what to find and what to replace it with.
- Set options like match case, whole words or regex.
- Copy or download the updated text.
Frequently asked questions
How do I insert a line break in the replacement?
Keep the \n and \t option on and type \n for a new line or \t for a tab in the replacement box. To replace line breaks themselves, search for \n.
Which regex syntax is supported?
JavaScript regular expressions, as used in modern browsers. Use $1, $2 for capture groups and $& for the whole match in the replacement.
Why do I see "Invalid pattern"?
In regex mode, characters like ( [ * + ? have special meaning. Escape them with a backslash, or switch regex off to search for them literally.