Find & Replace

Batch process text documents with advanced string matching. Supports basic regex patterns.

fact_check Reviewed by Senior Editor
verified Reviewed: Jul 28, 2026
update Updated: Jul 28, 2026
commit v2.0.0
schedule 4 min read

lightbulb When to use this tool

  • check_circle Replacing every occurrence of an old company name, domain, or API endpoint across a copied configuration block.
  • check_circle Changing a variable name consistently across a pasted code snippet before it goes into a file.
  • check_circle Doing bulk text cleanup on a pasted document — changing all double spaces to single, replacing em-dashes with hyphens, normalising line endings.
  • check_circle Using regex mode to do pattern-based replacements — strip HTML tags, reformat dates, extract and rearrange fields.
  • check_circle Quick find-and-replace on content before pasting into a CMS, email template, or presentation.

Why use our tool?

Plain Text and Regex Mode

Case Sensitivity and Whole-Word Options

Match Count Reporting

Undo / Restore Original

Works on Any Text — Code, Prose, CSV, JSON

How it works

1

Paste your text into the input area.

2

Enter the search term in the 'Find' field.

3

Enter the replacement text in the 'Replace With' field (leave empty to delete all occurrences).

4

Set options: case-sensitive, whole-word, or regex mode.

5

Click 'Replace All' — the modified text appears in the output area with a replacement count.

6

Click 'Copy Result' to copy the modified text, or 'Restore Original' to revert.

Examples

science Bulk Domain Replacement

science Strip HTML Tags (Regex Mode)

Frequently Asked Questions

How do I use capture groups in regex replacement? expand_more
In regex mode, capture groups in the search pattern (parentheses) can be referenced in the replacement string using $1, $2 etc. (or \1, \2 in some conventions). Example: search pattern (\w+)@(\w+\.\w+) captures username and domain. Replacement $2/$1 would produce domain.com/username from user@domain.com. This enables rearranging captured portions of matched text into any order in the replacement.
Can I replace text with nothing (delete all occurrences)? expand_more
Yes. Leave the 'Replace With' field empty and click 'Replace All'. Every match is deleted — replaced with an empty string. This is useful for removing specific words, stripping HTML tags (with regex), deleting all occurrences of a pattern, or removing unwanted characters from data.
What does 'whole word' mode do? expand_more
Whole word mode adds word boundary markers (\b) around your search term, so it only matches the search term as a standalone word rather than as part of a longer word. Searching for 'cat' with whole word enabled matches 'cat' but not 'category', 'concatenate', or 'scatter'. This is particularly useful when replacing variable names in code where a short name might appear as part of longer identifiers.
Is there a character limit for the input text? expand_more
There is no hard limit imposed by the tool. The practical limit is your browser's available memory. For typical text operations — a few thousand to tens of thousands of words — performance is instantaneous. For very large text files (multiple megabytes), a code editor like VS Code with its built-in find-replace is more appropriate.

More Text Tools