Find and Replace Text Online

Paste any text and swap every copy of a word or phrase for something else in one click. Match case, replace whole words only, or use a regular expression for advanced patterns. Everything runs in your browser, so your text stays on your device.

0characters0words0lines
Result
0characters0words0lines

About find and replace

What does find and replace do?

Find and replace searches your text for a word or phrase and swaps every copy of it for new text at once. It's the quick way to rename a term across a whole document, fix a repeated typo, or update a link without scrolling through the text by hand. You can match case, limit the change to whole words, or use a regular expression for more advanced patterns, all in one pass.

Why use our find and replace tool

  • ·Free. No signup, no paywall, no limits.
  • ·Runs in your browser. Nothing gets uploaded, your text stays with you.
  • ·Replaces every match. Swaps all copies in one pass and counts them for you.
  • ·Fine control. Match case, match whole words, or use a regular expression.
  • ·Keeps the original. Your input stays put so you can compare before and after.

Options explained

Match case

Only replaces text that matches the exact capitalization you typed. With it off, 'Cat', 'cat', and 'CAT' all count as a match. Turn it on when case matters, like variable names or codes.

BeforeCat cat CATAfterdog cat CAT

Whole word

Only replaces the text when it stands on its own as a full word, not when it sits inside a longer word. So finding 'cat' changes 'cat' but leaves 'category' alone.

Beforecat category catsAfterdog category cats

Regular expression

Treats the find field as a regular expression for advanced patterns, like matching digits with \d+ or any of several words. You can use $1, $2 in the replace field to reuse captured groups.

Beforeid-12 id-34Afterid-** id-**

Each example above finds "cat" and replaces it with "dog" so you can see how the option changes the result.

When to use find and replace

Swapping text in bulk saves time whenever the same word appears again and again. Here are the most common reasons people use a find and replace tool:

  • ·Renaming a term. Change a product, person, or company name everywhere it appears in a document.
  • ·Fixing a repeated typo. Correct the same misspelling across a long block of text in one pass.
  • ·Updating links or paths. Swap an old URL or file path for a new one everywhere it shows up.
  • ·Cleaning pasted text. Remove or replace stray characters, tags, or placeholders in copied content.
  • ·Reformatting with patterns. Use a regular expression to reshape numbers, dates, or IDs across the whole text.

Frequently asked questions

How do I find and replace text?
Paste your text into the big box, type the word or phrase you want to find, and type what it should become in the 'Replace with' box. Click Replace all and every match is swapped at once. You can then copy the result or download it as a .txt file.
Does it replace every match at once?
Yes. Replace all swaps every copy of the text you searched for in a single pass and tells you how many matches were replaced. There is no need to click through one match at a time.
Can I match uppercase and lowercase separately?
Yes. Turn on 'Match case' so the search only replaces text with the same capitalization you typed. With it off, the tool treats 'Cat', 'cat', and 'CAT' as the same word.
How do I replace a whole word only?
Turn on 'Whole word' so the tool only replaces the text when it stands on its own. That way finding 'cat' changes 'cat' but leaves 'category' and 'scatter' untouched.
Does it support regular expressions?
Yes. Turn on 'Regular expression' to use patterns like \d+ for numbers or a|b to match either word. You can reference captured groups in the replacement with $1, $2, and so on. If a pattern is not valid, the tool shows an error instead of changing your text.
Is the find and replace tool free?
Yes, it's completely free with no signup, no limits, and no watermarks. Use it as often as you like.
Is my text safe and private?
Your text never leaves your browser. All processing runs locally on your device, so nothing is uploaded to a server. Once the page has loaded you can even use it offline.