Home / Text Cleaning / Find & Replace

Find & Replace Text Online

Updating a repeated word across a long document, swapping a placeholder with real content, or correcting the same typo in dozens of places one by one takes longer than it should. Paste your text here, type what you want to find and what to replace it with, and every match gets swapped in one go. Nothing is uploaded.

Whole Word
Match Case
Replace All
Use Regex
Text Input
0 words · 0 chars
MODIFIED OUTPUT Download .txt
Result will appear here…

Related text cleaning tools

About This Tool

How it works

Paste your text into the main panel. Type the word or phrase you want to find in the Find (Target) field, and what you want to replace it with in the Replace With field. Auto-run will do the rest, or click Run (if Auto-run off) and every occurrence gets swapped at once. Leave the replace with field empty to delete all matches instead of replacing them.

The four options

Replace All Occurrences swaps every match in the text in a single pass. With it off, only the first match gets replaced. Turn it on for bulk editing and leave it off when you only want to change a specific instance.

Match Case treats uppercase and lowercase as different characters. With it on, searching for “Status” only matches “Status” and skips “status” or “STATUS”. Turn it off and all variations get replaced regardless of capitalization. For code, where variable and function names are case-specific, always keep this on.

Match Whole Word limits replacements to standalone words. Searching for “log” with this on replaces “log” but leaves “login”, “logout”, and “catalog” untouched. Without it, every string containing those letters gets replaced, which causes problems in structured text and code.

Use Regex lets you search for patterns rather than fixed text. Instead of typing one specific email address, a regex pattern matches every email address in the same format. Instead of listing every HTML tag individually, one pattern removes them all. For simple word and phrase replacements you do not need it, but for matching dates, numbers, tags, or any consistent text format across a document, it is the right approach.

Where this gets used

Template processing is one of the most common uses. Documents built from templates use placeholders like [CLIENT_NAME] or {{invoice_date}} that need swapping with real values before sending. Paste the template, replace each placeholder, and the document is ready.

Fixing recurring typos in long documents is another. If a name or term was misspelled throughout a draft, one replacement operation catches every instance without manually scrolling through the whole text.

Data cleaning uses find and replace to normalize inconsistent values. A column of country names where some entries say “US”, some say “USA”, and some say “United States” can be standardized in a few passes. Running the output through the remove extra spaces tool afterwards cleans up any stray whitespace left behind from the replacements.

Code refactoring outside an IDE is useful when you have a snippet or config file in plain text and need to rename a variable, swap an API endpoint, or change a repeated value without opening a full editor.

Common questions

Yes. Leave the replacement field empty and hit replace. Every match gets removed from the text with nothing put in its place.
Only the first match in the text gets replaced. Everything else stays unchanged. Turn it on to replace every occurrence in one pass.
Use it when the word you are searching for also appears as part of longer words you do not want to change. Searching for “port” without whole word matching would also change “report”, “export”, and “transport”. With it on, only the standalone word “port” gets matched.
Regex, short for regular expression, is a way of describing a text pattern rather than a fixed string. Instead of searching for one specific phone number, you write a pattern that matches any phone number in the same format. For simple word replacements you do not need it. For removing HTML tags, matching dates in a specific format, or finding any number sequence in a document, regex is the right approach.
Your original text stays in the input panel until you clear it or paste something new. If the output is not what you expected, adjust the fields and run it again from the original.
No. All processing runs in your browser. Nothing is transmitted or stored.
No enforced limit. Large documents process locally so performance depends on your browser and device. Most modern machines handle several megabytes of text without issue.
Yes, on current iOS and Android browsers.