Find & Replace Text Online

Search for a word or phrase and replace every occurrence in one pass. Ignore or match capitalisation, restrict the search to whole words, or switch on regular expressions. Everything happens instantly, in your browser.

Find & Replace
Options
Advanced
Off by default. Turn it on to search with a pattern instead of literal text: $1 and $& work in the replacement, and whole-word matching becomes \b in your pattern.

0
Original Characters
0
Result Characters
0
Matches Found
0
Replacements Made

Your text stays in your browser. Nothing is uploaded.

What This Tool Does

Find & Replace Text searches the text in the left-hand box for every occurrence of a word or phrase and writes a copy of that text, with the occurrences replaced, into the right-hand box. Your original is never overwritten. The result is a separate copy you can read, check against the counters and copy out when you are happy with it.

Everything runs as you type. Change the search term, change the replacement, tick Match case, and the result plus all four counters update immediately. There is no submit button, no waiting and no round trip to a server.

What it handles

  • Plain words and phrases — the default mode. What you type is what gets found, with spaces, punctuation and line breaks treated literally rather than as special characters.
  • Every occurrence at once — one pass replaces all of them, not just the first.
  • Deletion — leave Replace with empty and the matched text is simply removed.
  • Case-insensitive search — with Match case off, acme, Acme and ACME are all found.
  • Whole words only — so cat does not also hit category or concatenate.
  • Regular expressions — an optional advanced mode for patterns, capture groups and $1-style replacements.

How to Find and Replace Text

  1. Paste your text into the Your Text box.
  2. Type the word or phrase you want to find into Find.
  3. Type the replacement into Replace with, or leave it empty to delete the matched text instead.
  4. Read the result on the right and check Matches Found before you commit to it. If the number is higher than you expected, tick Whole word only or Match case.
  5. Press Replace All to confirm the run, then Copy Output to take the result with you.

A worked example

Find: Acme Corp  ·  Replace with: Globex Ltd

Acme Corp shipped the widget on Monday.
Acme Corp will ship three more in June.
Our lawyers reviewed the Acme Corp contract.

becomes

Globex Ltd shipped the widget on Monday.
Globex Ltd will ship three more in June.
Our lawyers reviewed the Globex Ltd contract.

Three matches, three replacements, and the rest of the text untouched: the line breaks, the punctuation and the spacing all stay exactly as they were. Only the matched text changes.

Replace Multiple Occurrences

The replacement is always global. One pass covers every match in the text, from the first character to the last, so a word that appears four hundred times is fixed as thoroughly as one that appears twice. There is no “replace next” to click through and no limit on how many occurrences are changed.

Matches cannot overlap, which only ever shows up when the search term repeats itself. Finding the the in “the the the” changes the first pair and leaves the second, exactly as a desktop editor would. Copy the result back in and run it once more to catch the rest.

  • Repeated words. Find the the, replace with the, and doubled words collapse wherever they appear in the draft.
  • A name changed everywhere. One find and replace renames a person, a product or a company across a whole document after a rebrand or a correction.
  • A phrase updated throughout. Swap an old tagline, an out-of-date price, a revised job title or a changed piece of legal wording in a single step.
  • Removing a word. Leave Replace with empty to delete every occurrence, the quickest way to strip filler like very, a repeated boilerplate sentence, or a watermark string a website stamped through the copy.
  • Updating URLs. Find http://old-domain.com and replace it with the new one, or add and remove a tracking parameter across every link at once.

Because the result is a copy, you can try several different replacements and compare the counters before you keep any of them. To chain edits — fix one word, then another, then another — copy the result out and paste it back in as the new starting text, which keeps each step visible and reversible.

Match Case, Whole Words & Regex

Three switches control how strictly the search behaves. All three are off by default, which keeps the ordinary job — find this exact text, replace it everywhere — as simple as possible, and puts the advanced behaviour one deliberate click away.

  • Match case. Off, the search ignores capitalisation, so acme finds Acme and ACME as well. On, only an exact capitalisation counts. Turn it on when case carries meaning, such as replacing the identifier count without touching the word Count in the prose around it.
  • Whole word only. Off, matches happen inside longer words too: finding cat also hits category, concatenate and scat. On, a match must stand alone — nothing alphanumeric immediately before or after it. The boundary test is “not a word character” rather than “must be a letter”, so a punctuation or symbol search gets a boundary test too.
  • Regular expression mode. The advanced option, grouped separately and off unless you ask for it. On, the Find field is read as a JavaScript regular expression and Replace with supports the usual substitution patterns: $1 for the first capture group, $2 for the second, $& for the whole match and $$ for a literal dollar sign. Match case still applies, setting the i flag; Whole word is disabled, because in this mode you write the boundary yourself with \b.

Patterns worth trying: \s+ to collapse runs of whitespace, \b(\w+)\s+\1\b to catch doubled words, https?://[^\s]+ to isolate every URL, or \d4-\d2-\d2 to match ISO dates. When a pattern is not valid JavaScript regex the tool says so in red above the result and leaves your text untouched rather than guessing. The two match counters show an em dash until the pattern is fixed, because a count that could not be calculated is never displayed as a number.

Common Uses

  • Replacing repeated words — collapse “the the” and other doubled words across a whole draft in a single pass.
  • Correcting spelling mistakes — find a misspelling once and fix every instance of it instead of hunting them down one by one.
  • Changing names or company names — rename a client, a product or an employer throughout a document after a rebrand, a marriage or a correction.
  • Updating phrases throughout text — swap an old tagline, a superseded price, a changed job title or revised legal wording everywhere it appears.
  • Removing unwanted words or phrases — leave the replacement empty to strip filler, boilerplate, a source attribution or a watermark string.
  • Updating URLs — move every link from an old domain to a new one, or add and remove a tracking parameter across a whole post.
  • Making bulk text changes — the same edit applied to a long document, a pasted CSV column or a list of product descriptions.
  • Cleaning copied text — drop the odd characters, em dashes or attribution lines a website or a PDF leaves behind when you copy out of it.
  • Editing AI-generated text — replace the tics a model repeats, such as delve, “in today’s fast-paced world” or an over-used opener, without rewriting the whole answer by hand.

Your Text Never Leaves Your Browser

Find & Replace Text runs entirely on your device. There is no API call, no upload, no database and no server-side text processing. Nothing you type is sent anywhere, and the tool keeps working offline once the page has loaded.

That is deliberate rather than incidental, and it matters more here than with most tools. What people run a find and replace over is often a contract clause, a client list, a manuscript, a payroll export or something covered by an NDA, text where one leaked name or number is the entire problem. None of it needs to leave the machine to have a word changed in it, so none of it does.

Frequently Asked Questions

How do I find and replace text online?

Paste your text into the Your Text box, type the word or phrase you want to find into Find, and type the replacement into Replace with. The result appears in the right-hand box as you type. There is nothing to submit and no file to upload. Check the Matches Found counter to confirm the search caught what you expected, then press Copy Output. Leaving Replace with empty deletes the matched text instead of swapping it.

Can I replace every occurrence of a word?

Yes. The replacement is always global: one pass covers every match in the text, from the first character to the last, not just the first one it meets. Replacements Made tells you exactly how many were changed. There is no “replace next” to click through and no cap on the number of occurrences.

Can I replace text without matching case?

That is the default. With Match case unticked the search ignores capitalisation, so finding acme also matches Acme and ACME. Tick Match case when capitalisation carries meaning — renaming the variable count without touching the word Count in the prose above it, for example. The replacement is inserted exactly as you typed it, so it does not inherit the capitalisation of the word it replaced.

What does whole word matching mean?

It means a match has to stand on its own. With Whole word only ticked, nothing alphanumeric may sit immediately before or after the match, so finding cat changes “the cat sat” but leaves category, concatenate and scat alone. It is the switch that stops a short search term from chewing holes in longer words. It works for punctuation too: the boundary test is “not a word character”, not “must be a letter”.

Can I use regular expressions?

Yes — tick Regular expression mode under Advanced. It is off by default and kept separate from the two basic switches, so the ordinary find-and-replace experience stays simple. In that mode the Find field is read as a JavaScript regular expression and Replace with supports the usual substitution patterns: $1 for the first capture group, $& for the whole match, $$ for a literal dollar sign. Match case still applies; Whole word is disabled because you write the boundary yourself with \b. If a pattern is not valid the tool tells you in red and leaves your text untouched rather than guessing.

Can I use find and replace to delete a word?

Yes. Leave the Replace with field empty and every match is removed rather than swapped. It is useful for stripping filler words, a repeated boilerplate sentence, a source attribution or a watermark string that a website stamped through a copied document. If you also want the leftover double spaces tidied up afterwards, run the result through Remove Line Breaks with Remove extra spaces on.

Is my text uploaded anywhere?

No. Find & Replace Text runs entirely in your browser. There is no API call, no upload, no database and no server-side processing. Your text is never sent anywhere, and the tool keeps working offline once the page has loaded. That is deliberate: the documents people run a find and replace over are often contracts, client lists, manuscripts or payroll exports, where a single leaked name or number is the whole problem.