ToolHarbor

Find & Replace Tool

Find and replace text instantly with support for case sensitivity, whole word matching, and regular expressions.

Features

  • Find and replace all occurrences in any text
  • Case-sensitive and case-insensitive matching
  • Whole word matching to avoid partial replacements
  • Regular expression support for advanced patterns
  • Real-time match count as you type
  • Copy the result with one click

How to Use

  1. 1Paste or type your text in the source text area
  2. 2Enter the text you want to find in the Find field
  3. 3Enter the replacement text in the Replace field
  4. 4Toggle options like case sensitivity, whole word, or regex mode
  5. 5Click "Replace All" and copy the result

Examples

Simple replacement

Input

Find: "foo" → Replace: "bar" in "foo is great, foo is fast"

Output

bar is great, bar is fast
Case-sensitive replacement

Input

Find: "API" (case sensitive) → Replace: "endpoint" in "The API and the api"

Output

The endpoint and the api
Whole word matching

Input

Find: "cat" (whole word) → Replace: "dog" in "cat category caterpillar"

Output

dog category caterpillar
Regex pattern

Input

Find: "\d+" (regex) → Replace: "X" in "Order 123 has 5 items"

Output

Order X has X items

What Is a Find and Replace Tool?

Find and Replace is one of the most fundamental text editing operations. It searches for all occurrences of a specified string or pattern in your text and replaces them with another value. This online tool brings that functionality to your browser without needing to open a text editor or IDE.

The tool supports three matching modes that can be combined. Case-sensitive mode distinguishes between uppercase and lowercase letters, so "API" and "api" are treated as different strings. Whole word mode only matches complete words, preventing unintended partial replacements — searching for "cat" will not match "category" or "caterpillar". Regex mode lets you use regular expression patterns for complex matching like digits, email addresses, or repeating structures.

Common use cases include cleaning up data exports, normalizing text formats, renaming variables across code snippets, stripping unwanted characters, and batch-editing content. Developers use it to refactor code, writers use it to fix repeated typos, and data analysts use it to transform column values.

The match counter updates in real time as you type your search term, giving you immediate feedback on how many occurrences exist before you commit to the replacement. This helps you verify your search pattern is correct and avoid unintended changes.

All processing happens in your browser. Your text is never sent to a server, making this tool safe for confidential code, private documents, and sensitive data. Paste, replace, copy — done.

Frequently Asked Questions

Related Tools