Home Tools Blog About

Find and Replace

In short

Bulk find & replace in text - literal or regex mode, case-sensitive toggle, count + length stats. Free, offline, client-side, instant, secure.

  • Runs in your browser
  • Nothing uploaded
  • Free, no sign-up

Bulk-edit any text: documents, code snippets, articles. Toggle case-sensitivity and switch to regex mode for advanced patterns. Stats line reports replacement count plus character-count delta so you can sanity-check what changed.

- paste text, set find/replace, then click Replace All
🛡
100% PrivateNo server uploads, ever
InstantRuns in your browser
💧
No WatermarksClean output, always
🆓
Free ForeverNo accounts, no limits

How to Use Find and Replace

  1. Paste your text into the top textarea. Anything from a single sentence to tens of thousands of words handles instantly.
  2. Type what to find in the Find field. In literal mode (default) the search treats your input as plain text - special chars like . and * match themselves. In regex mode they have their usual regex meaning.
  3. Type the replacement in the Replace with field. Leave it empty to delete all matches. In regex mode, backreferences like $1 / $2 work for capturing groups.
  4. Toggle the options. Case-sensitive off (default) matches "Apple" / "apple" / "APPLE" interchangeably; on, only exact case. Regex mode flips the Find field's interpretation.
  5. Click Replace all or press Enter in either Find/Replace field, or Ctrl/Cmd + Enter from anywhere. Output appears in the result panel.
  6. Read the stats line. Number of replacements, plus the input → output character count delta - quick check that the change matches your expectation (e.g. deleting 5 occurrences of a 4-char word should drop 20 characters).
  7. Copy or download. Copy result uses the Clipboard API with an execCommand fallback. Download TXT saves replaced-text.txt.

Frequently Asked Questions

Is there a limit on how much text I can replace?

Because this application runs entirely within your computer’s browser memory (Client-side Javascript), it can handle exceptionally large documents (tens of thousands of words) almost instantly without slowing down or requiring a server upload.

What is Case Sensitivity?

If Case Sensitive is checked, searching for “Apple” will only find exactly “Apple” with a capital A. If it is unchecked, searching for “Apple” will also find “apple”, “APPLE”, and “aPpLe”.

How does the Regex mode work?

Regular Expressions (Regex) allow developers to search for complex patterns instead of exact words. For example, finding d{4} will locate any 4-digit number (like a year) throughout the entire document and replace them all in one click.

Is my text data secure and private?

Absolutely! All find and replace operations happen 100% client-side in your browser using JavaScript. Your text never leaves your device, is never uploaded to any server, and is not stored anywhere. The tool works completely offline after the page loads.

Can I undo a replacement?

While there’s no undo button, your original text remains in the top input box unchanged. If you need to start over, simply click “Clear All” or reload the page to reset everything.

What happens if the find pattern doesn’t exist in my text?

If the pattern you’re searching for isn’t found in your text, the result will be identical to your input, and the replacement counter will show “0 replacements made”. An info toast also flashes “No matches found” so you don’t think the button failed silently.

Can I replace text with nothing (delete it)?

Yes! Leave the “Replace with” field empty to effectively delete all instances of the found text. This is useful for removing unwanted characters, words, or patterns from your document. The character-delta in the stats line shows how many characters were removed.

What does the character delta in the stats line mean?

It’s after_length − before_length in characters. Positive means the text grew (e.g. replaced “cat” with “kitten” – +3 per replacement). Negative means it shrunk. Zero means equal-length substitution. Quick sanity check that the result is what you expected.

What if my regex has a syntax error?

The actual engine error gets surfaced – the stats line turns red with the exact message (“Unterminated character class”, “Invalid escape”, whatever). Fix the regex and click Replace All again. Your input text is preserved.

Keep going

Related Tools

All Text tools →
Share

Embed this tool

Add this free tool to your website. Copy and paste the code: