↑

Free Find and Replace Tool

What this tool does

The Find and Replace tool swaps every occurrence of a word or phrase in your text at once. Paste your text, type what to find and what to replace it with, and the result appears with a match count. Case-sensitive and whole-word options keep replacements precise, and regex mode handles patterns like dates and numbers, with $1 back-references for rearranging captured groups. Copy or download the result. Free and private.


Plain mode treats Find literally. Regex mode supports patterns like \d+ and $1 back-references in the replacement.
-
Matches found
-
Replacements made
-
Output characters
Result

Let us know

Please share your experience with this tool.

Thanks for rating!
No ratings yet — be the first!

How do I find and replace text online?

Paste your text, type the word or phrase to find and what to replace it with, and every occurrence is swapped at once. The defaults turn "The quick brown fox jumps over the lazy dog. The dog was not amused." into the same sentence with "cat" in place of both dogs, and the stats confirm 2 matches found and 2 replacements made. Results update as you type, so you can refine the search before copying. When you are happy, copy the result to the clipboard or download it as replaced-text.txt. The original text box is never modified, so you can experiment freely.

When should I use case-sensitive or whole-word matching?

 

 

By default the search ignores case, so "dog" also matches "Dog" and "DOG". Turn on Case sensitive when capitalization carries meaning, such as replacing a brand name without touching the common word, or fixing "us" without changing "US". Whole word only prevents partial matches inside longer words: replacing "cat" with whole-word on leaves "category" and "cats" untouched, which is exactly what you want when renaming a variable, a product or a person. Combining both gives the most surgical replacement. If a replacement surprises you, check these two toggles first; they explain almost every "it changed too much" moment.

What can regex mode do?

Regex mode treats the Find field as a regular expression, so one pattern can match many different strings. The Sample button finds every date in the form 2026-11-28 with the pattern \d{4}-\d{2}-\d{2} and replaces both with [date]. Other everyday patterns: \d+ for any number, \s+ for runs of whitespace, ^ and $ for line starts and ends in multiline text, and [A-Za-z]+ for words. Capture groups in parentheses can be reused in the replacement as $1, $2 and so on, which lets you rearrange text, for example turning "Last, First" into "First Last". Invalid patterns are reported with the browser's own error message instead of failing silently.

What are common uses?

Writers use find and replace to rename a character across a whole draft, standardize spellings (organize to organise), or swap placeholder text like [NAME] in a template. Developers use it to rename variables, update URLs after a domain move, strip HTML tags with a pattern, or reformat dates and phone numbers in bulk. Students clean up copied notes, remove double spaces, or replace straight quotes. SEO work has its own uses: updating a brand name across meta descriptions, fixing a repeated typo in a keyword list, or swapping http for https in a set of URLs. Anywhere the same edit repeats more than twice, this page beats doing it by hand.

What are the limits?

Replacement is all-or-nothing: every match is replaced, with no step-through-one-by-one mode, so check the match count before copying when the stakes are high. In plain mode the replacement is literal, meaning a dollar sign stays a dollar sign; in regex mode, $ followed by a number is a back-reference, and $$ writes a literal dollar. Whole-word matching uses word boundaries, so it works best with letters and numbers; symbols at the edges of your search can behave unexpectedly. Very large pastes are fine because everything runs locally, but the result box is read-only by design: edit the source text and re-run instead. Nothing is stored or sent anywhere.

Is it free and private?

Yes. The find and replace tool is free, with no signup, no account and no limits. Replacement runs entirely in your browser, so your text is never sent to a server, stored or logged, which matters for drafts, code and client documents. For writers, developers, students and anyone fixing repeated text, this page does the job in seconds.

FAQs

How many times does "dog" appear in the default text?

Twice. Replacing it with "cat" gives 2 replacements, as the stats show.

What does whole word only do?

It matches complete words only, so replacing "cat" will not touch "category" or "cats".

How do I replace all dates with regex?

Turn on Regex mode and search for \d{4}-\d{2}-\d{2}, as in the Sample. Any replacement text works.

Can I rearrange text with capture groups?

Yes, in regex mode. Put groups in parentheses in Find and reuse them as $1, $2 in the replacement.

Is the replacement literal in plain mode?

Yes. In plain mode a $ in the replacement stays a dollar sign. In regex mode, $1 means the first captured group.

Is my text stored anywhere?

No. Replacement runs in your browser. Your text is never sent to a server or stored.


Author

Awais Arshad

Web Tools Developer & Content Creator at FastToolKit.