Skip to content
TabKiwiTabKiwi

Find and Replace

Search and replace text with plain matching or regular expressions, case and whole-word options.

TextRuns in your browser. Your files never leave this device.
Loading tool…

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

  1. Paste the text you want to edit.
  2. Enter what to find and what to replace it with.
  3. Set options like match case, whole words or regex.
  4. 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.

More Text tools

View all 60 →