Text Finder & Replacer

Free online find and replace tool. Search for any word, phrase, or pattern across large documents and replace every occurrence instantly. Supports case-sensitive matching, whole word search, and full regular expressions — with live match highlighting. Everything runs in your browser — no signup, nothing uploaded.

Input & find/replace

Paste text, enter terms, replace
Find & Replace
Tip: Leave the Replace with field empty to delete every match. In regex mode use $1, $2 for capture groups.
Options

Result

Ready when you are

Your replaced text will appear here

Paste some text on the left, enter a find term, and click Replace All.

What does this Text Finder & Replacer do?

This free online find and replace tool scans through your text and replaces every occurrence of a search term with a replacement term of your choice. It's the tool you reach for when you need to fix a repeated typo, rename a product across a catalogue, update every instance of a variable name in a code file, or clean up a spreadsheet export — without opening a text editor or writing a script.

Unlike a simple find-and-replace in a text editor, this tool gives you three powerful matching modes that stack together. Case-sensitive matching lets you target only the exact case you type — so Hello won't match hello. Whole word matching makes sure you only replace complete words — so replacing cat won't accidentally turn catalog into catalog. And regular expression mode unlocks pattern matching for tasks like collapsing whitespace, standardising date formats, or stripping HTML tags.

Every match is highlighted in a live preview panel before you commit to the replacement, so you can see exactly what's going to change. Everything runs locally in your browser — your text never leaves your device, and there's no signup or usage limit.

How to find and replace text

  1. Paste your text. Drop the document, code file, or list you want to search into the input box on the left.
  2. Enter the find term. Type the word, phrase, or pattern you're looking for. Matches are highlighted instantly in the preview panel.
  3. Enter the replacement. Type what you want matches to become. Leave it empty to delete every match.
  4. Choose your options. Enable case-sensitive, whole word, or regex mode as needed. The preview updates live.
  5. Click Replace All. The result appears in the output panel with statistics on how many matches were replaced.
  6. Copy or download. Grab the result to your clipboard or save it as a .txt file.

Understanding the matching options

OptionWhat it doesExample
Case-sensitiveMatches the exact case of your search termFind Hello matches only Hello, not hello or HELLO
Whole words onlyOnly replaces complete words bounded by whitespace or punctuationFind cat matches cat but not catalog or concatenate
Regular expressionEnables full RegEx pattern matchingFind \d+ matches every sequence of digits

These options combine. Enabling both case-sensitive and whole-word gives you the strictest possible match — perfect for renaming a specific product or variable. Disabling both gives the loosest match — useful for bulk text cleanups where you don't care about case or word boundaries.

Regular expression cheat sheet

When regex mode is on, your find term is treated as a pattern rather than literal text. These are the most useful building blocks:

PatternMatches
\dAny digit (0–9)
\wAny word character (a–z, A–Z, 0–9, underscore)
\sAny whitespace character (space, tab, newline)
.Any single character
^ / $Start of line / end of line
+ / * / ?One or more / zero or more / zero or one
[abc]Any one of the characters inside the brackets
(…)Capture group — reference it in the replacement with $1, $2, etc.
\bWord boundary (start or end of a word)

In the replacement field, capture groups are referenced with $1, $2, and so on. For example, to swap the day and month in a date like 12/05/2025, find (\d{2})/(\d{2})/(\d{4}) and replace with $3-$2-$1 to get 2025-05-12.

Common use cases

  • Renaming a product or brand — Case-sensitive ON, whole words ON. Rename every occurrence without touching similar-looking substrings.
  • Fixing capitalisation errors — Case-sensitive OFF, whole words ON. Turn every teh into the regardless of case.
  • Removing extra spaces — Regex ON. Find \s+, replace with a single space.
  • Standardising date formats — Regex ON. Find (\d{2})/(\d{2})/(\d{4}), replace with $3-$2-$1.
  • Stripping HTML tags — Regex ON. Find <.*?>, replace with nothing.
  • Bulk variable renaming in code — Case-sensitive ON, whole words ON. Rename oldVar to newVar across an entire file.
  • Cleaning spreadsheet exports — Regex ON. Strip currency symbols, trailing whitespace, or reference codes.
  • Bulk email redaction — Regex ON. Find an email pattern and replace with [redacted].

Before and after examples

Simple rename (case-sensitive, whole words)

Find: Apple → Replace: Orange

Input: Apple pie and apple sauce. Apply the Apple logo.

Output: Orange pie and apple sauce. Apply the Orange logo.

Case-insensitive fix (case-sensitive OFF, whole words ON)

Find: teh → Replace: the

Input: teh quick brown fox. TEH end.

Output: the quick brown fox. the end.

Regex: collapse whitespace

Find: \s+ → Replace:

Input: hello world again

Output: hello world again

Regex: swap date parts with capture groups

Find: (\d{2})/(\d{2})/(\d{4}) → Replace: $3-$2-$1

Input: Released on 12/05/2025.

Output: Released on 2025-05-12.

Frequently asked questions

It searches through your text for a given find term and replaces every occurrence with a replacement term. You can use plain text, whole-word matching, or full regular expressions.
Yes, completely free. No signup, no premium plans, no credit card. A few small ads cover hosting costs.
Yes. Enable the RegEx option to use patterns like \d+, \s+, or ^https?:// for advanced search and replace. Capture groups are supported with $1, $2, and so on in the replacement.
Yes. Leave the Replace field empty and every match will be removed from the output.
No. Everything runs locally in your browser using JavaScript. Your text never leaves your device, there is no server processing, and nothing is logged or stored.
Yes. The tool is fully responsive and works on phones, tablets, laptops, and desktops.
The tool keeps the original input in the left panel. Simply edit the find or replace term and click Replace All again to apply a different transformation.
Yes. Once the page has loaded, the find and replace tool keeps working without an internet connection because all processing is local.
If you enter a malformed pattern, the tool shows an error message in the preview panel instead of crashing. Fix the pattern and the preview updates automatically.