TL
Tool Lab
💰Donate
💰Donate

Find & Replace Tool

Search and replace text with plain strings or regular expressions. Supports capture groups and whole-word mode.

Input Text
Find
Replace with

About This Tool

The Find & Replace Tool performs text substitution across an entire block of text in one click. Plain string mode is ideal for simple literal replacements.

Regex mode gives full JavaScript regex power, including capture groups ($1, $2) in the replacement string, lookaheads, and character classes. All replacements happen locally in the browser.

How to Use

  1. Paste your text into the input area or click Sample.
  2. Enter the search term in Find and the replacement in Replace with. Leave Replace empty to delete matches.
  3. Toggle options as needed: case-sensitive, whole-word, or regex mode.
  4. Click Replace All. The match count is shown next to the button. Copy the result.

Use Cases

Developers clean exported data by replacing placeholder values. Technical writers update product names throughout document drafts. Data engineers replace null representations before importing.

FAQ

  • Can I use capture groups?Yes, in regex mode. Wrap parts of the pattern in parentheses and reference them with $1, $2, etc. in the replacement.
  • What does "whole word" mean?Whole word mode wraps the search in \b word-boundary anchors. "fox" matches "fox" but not "foxes" or "quickfox".
  • Does leaving Replace empty delete the matches?Yes. An empty replacement string deletes all matched text.