Text

Find and Replace Text Online

Search and replace text across a document with case sensitivity, whole-word matching, and full regular expression support.

Also available in:EspañolPortuguêsFrançaisDeutschItalianoNederlandsPolski

Everything runs in your browser. Your input is not uploaded to a server.

About the Find & Replace

Bulk text edits — renaming a product across a document, swapping a domain in a list of URLs, stripping a repeated prefix — are trivial with find and replace and painful without it. This tool supports plain text, whole-word, and full regular expression modes, and reports how many replacements were made.

How to use the Find & Replace

  1. Paste your text into the input box.
  2. Enter what to find and what to replace it with.
  3. Toggle case sensitivity, whole-word matching, or regex mode as needed.
  4. Check the replacement count, then copy the result.

Frequently asked questions

What does whole-word matching do?

It stops partial matches. Replacing "cat" without it would also alter "category" and "concatenate"; with it enabled, only the standalone word is changed.

How do I use capture groups?

Enable regex mode, wrap part of your pattern in parentheses, and reference it in the replacement as $1, $2 and so on. Swapping "Last, First" to "First Last" is a one-line job.

Why does my regex not match anything?

Usually an unescaped special character. Dots, question marks, brackets, and plus signs all have meaning in a regex; escape them with a backslash to match them literally.

Is my text sent anywhere?

No. Everything runs in your browser, so confidential documents never leave your device.