ToolNimba

πŸ” Find and Replace Text Online

Shihab Mia By Shihab Mia Β· Updated 2026-07-15

Enter your text and a term to find, then press Replace.

Find and replace text swaps one word or phrase for another across your whole document in a single click. Paste your text, type what you want to find, type what it should become, and press Replace. This free online find and replace tool changes every match at once (or just the first one), can ignore upper and lower case, and can limit matches to whole words so "cat" never touches "category". It also shows a live count of how many replacements were made, so you can sanity-check the result. Everything runs in your browser using plain JavaScript, which means your text is never uploaded to a server and there is no sign-up, no limit on document size, and no cost. Leave the replace field empty and it deletes the found term instead.

What is the Find and Replace Text?

Find and replace text is one of the most common editing jobs there is: you have a block of text and you need to change every occurrence of a term into something else. Doing it by hand is slow and unreliable, especially when the same word appears dozens of times and it is easy to miss one. A find and replace tool scans the entire text, performs the swap consistently, and reports how many changes it made so nothing slips through. That single count is the difference between guessing and knowing your edit was complete.

The behaviour you want depends on the task, and this is where the three options earn their keep. "Replace all" changes every match and is the right default for bulk edits such as updating a product name throughout a page. Switch it off and only the first match changes, which is useful when you want to fix one specific spot without disturbing identical text elsewhere. "Case-insensitive" makes the search ignore capitalisation, so a search for "color" also catches "Color" and "COLOR". "Match whole word" stops a search for "cat" from also hitting "category" or "scatter" by only matching the term when it stands alone between word boundaries.

Under the hood this find and replace tool treats your find term as plain literal text, not a pattern. That distinction matters because characters such as a dot, dollar sign, asterisk, or bracket carry special meaning in regular expressions. The tool automatically escapes those characters, so searching for "a.b" matches the literal string "a.b" and not "axb" or "a1b". What you type in the Find box is exactly what gets matched, and your replacement text is inserted exactly as written, which keeps the results predictable even when your text contains punctuation and symbols.

Compared with the find and replace built into Word, Google Docs, or a spreadsheet, an online tool wins on speed and privacy. There is nothing to open, no document to load, and no account to sign into. You paste, replace, and copy the clean result back out in seconds. Because the work happens locally in your browser, sensitive text such as contracts, code, or personal notes never leaves your device, which is a genuine concern with cloud editors that sync everything you type.

A few habits make find and replace text far more reliable. Always read the replacement count and compare it against roughly how many matches you expected. Turn on Match whole word whenever your search term is also a fragment of longer words, and turn on Case-insensitive only when capitalisation genuinely should not matter, since leaving it on can change words you meant to leave alone. For multi-step cleanups, run the smallest, most specific replacement first, then the broader ones, so each pass sees a cleaner starting point.

The same find and replace text workflow scales from a one-word fix to a full document rewrite. Renaming a brand, correcting a repeated typo, stripping unwanted characters, standardising spellings, or blanking out a placeholder token are all the same operation with different inputs. Once the pattern of Find, Replace, and the three toggles clicks into place, this tool becomes one of the fastest ways to reshape text without touching a code editor or writing a single regular expression.

When to use it

  • Renaming a product, brand, or person throughout a long document in one consistent pass.
  • Cleaning up pasted text by replacing double spaces, stray characters, tabs, or curly quotes.
  • Updating URLs, file paths, or placeholder tokens across a block of code, config, or a template.
  • Swapping British spellings for American ones (or the reverse) before publishing.
  • Redacting a name or email by replacing every occurrence with a placeholder such as [redacted].
  • Fixing a repeated typo across meeting notes or a transcript without re-reading every line.

How to use the Find and Replace Text

  1. Paste or type your text into the large text box.
  2. Enter the word or phrase to look for in the Find field.
  3. Enter what it should become in the Replace with field (leave it empty to delete the matches).
  4. Toggle Replace all, Case-insensitive, or Match whole word to suit the job.
  5. Press Replace, read the count of changes made, then use Copy to grab the result.

Formula & method

For each match of the find term in the text, substitute the replace term. "Replace all" changes every match; otherwise only the first match is changed. The find term is matched as literal text, with special characters escaped automatically so symbols match themselves rather than acting as patterns.
Find and replace text flowINPUT TEXTFINDREPLACE WITHRESULTThe cat sat by thecat flap all day,a lazy little cat.catdogThe dog sat by thedog flap all day,a lazy little dog.Replace all: 3 changes madeOptions: Replace all changes every match. Case-insensitive ignores capitals.Match whole word keeps "cat" from hitting "category". Runs in your browser.

Worked examples

Replace every "teh" with "the" in a paragraph, ignoring case, with Replace all on.

  1. Find = teh, Replace with = the
  2. Case-insensitive on, so "Teh" and "teh" both match
  3. Text "Teh cat sat on teh mat" has 2 matches
  4. Both are swapped in one pass

Result: "the cat sat on the mat", 2 replacements

Replace whole-word "cat" with "dog" so "category" is left untouched.

  1. Find = cat, Replace with = dog
  2. Match whole word on, so only the standalone word counts
  3. Text "a cat in a category" has 1 whole-word match
  4. "cat" becomes "dog", "category" is unchanged

Result: "a dog in a category", 1 replacement

Delete every comma by leaving the Replace field empty.

  1. Find = , (a comma), Replace with = (empty)
  2. Replace all on
  3. Text "1,000,000" has 2 matches
  4. Each comma is replaced with nothing

Result: "1000000", 2 replacements

Collapse repeated blank space so a pasted block reads cleanly.

  1. Find = two spaces, Replace with = one space
  2. Replace all on so every double space is caught
  3. Run it twice if some gaps were three or more spaces wide
  4. Text "hello world" tidies down toward "hello world"

Result: "hello world", spacing normalised

What each option does

OptionEffect when onEffect when off
Replace allChanges every match in the textChanges only the first match
Case-insensitiveIgnores upper and lower case (color = Color)Matches the exact case you typed
Match whole wordMatches only standalone words (cat, not category)Matches the term anywhere, even inside words

Common cleanup replacements

GoalFindReplace with
Collapse a double space to onetwo spacesone space
Remove all commas,(leave empty)
Swap "colour" for "color"colourcolor
Turn slashes into dashes/-
Strip a placeholder token{{name}}(leave empty)
Standardise a brand nameToolNimba.comToolNimba

Find and replace across popular apps

AppShortcutReplace all
This online toolType in Find and Replace fieldsOn by default, shows a count
Microsoft WordCtrl + H (Cmd + Shift + H on Mac)Replace All button
Google DocsCtrl + H (Cmd + Shift + H on Mac)Replace all button
Excel / Google SheetsCtrl + HReplace All button
VS Code / most editorsCtrl + H (Cmd + Option + F on Mac)Replace All icon

Common mistakes to avoid

  • Forgetting case sensitivity. By default the search matches the exact case you typed, so "color" will not catch "Color". Turn on Case-insensitive when capitalisation should not matter.
  • Matching inside larger words by accident. Replacing "is" without whole-word on will also change "this", "island", and "vision". Turn on Match whole word when you only mean the standalone term.
  • Replacing only the first match unintentionally. If Replace all is off, only the first occurrence changes. For a bulk edit across the whole document, keep Replace all on (it is the default).
  • Expecting wildcards or patterns to work. This tool matches your find term as literal text, so symbols like a dot or asterisk match those exact characters, not a pattern. That is intentional and keeps results predictable.
  • Not checking the replacement count. The count is your safety net. If you expected roughly ten changes and see two, your find term or your options are probably off. Read the number before you copy.
  • Chaining replacements in the wrong order. When you run several passes, a broad replacement can swallow text a later, more specific one needed. Do the most specific replacement first, then the general ones.

Glossary

Match
A spot in your text where the find term appears, according to your case and whole-word settings.
Case-insensitive
A search mode that treats upper and lower case as the same, so "Text" and "text" both match.
Whole word
A match that stands alone between word boundaries, so "cat" matches only the word cat and not parts of other words.
Replace all
Changing every match in the text at once, rather than just the first occurrence.
Escaping
Treating special characters such as a dot or bracket as ordinary literal text rather than pattern symbols.
Literal text
A find term matched exactly as typed, character for character, with no wildcard or pattern behaviour.
Regular expression
A pattern language used by advanced find and replace tools to match by rule; this tool escapes such syntax so it stays literal.
Word boundary
The invisible edge between a letter or digit and a space, punctuation, or the start or end of the text, used by whole-word matching.

Frequently asked questions

How do I find and replace text online?

Paste your text into the box, type the term to find and the term to replace it with, then press Replace. The result appears below with a count of how many changes were made, and a Copy button to grab it. Nothing is uploaded, so it works instantly and privately in your browser.

Can I replace all occurrences at once?

Yes. Replace all is on by default, so every match in the text is changed in a single pass and the tool tells you the total count. Turn the option off if you only want to change the first occurrence and leave the rest untouched.

How do I make the search ignore upper and lower case?

Tick the Case-insensitive option. With it on, a search for "color" also matches "Color" and "COLOR". Leave it off to match the exact case you typed, which is safer when capitalisation is meaningful in your text.

What does Match whole word do?

It limits matches to standalone words, so replacing "cat" will not touch "category" or "scatter". A whole word is one that sits between word boundaries such as spaces or punctuation. Use it whenever your search term is also a fragment of longer words.

Is my text uploaded or stored anywhere?

No. All processing happens in your browser using plain JavaScript. Your text never leaves your device, nothing is sent to a server, and nothing is saved after you close the page, which makes it safe for contracts, code, and personal notes.

How do I delete a word instead of replacing it?

Type the word in the Find field and leave the Replace with field empty, then press Replace. Each match is replaced with nothing, which removes it from the text. This is the quickest way to strip placeholders, tags, or unwanted characters.

Can I find and replace multiple words at the same time?

This tool replaces one find-and-replace pair per pass, which keeps every change visible and easy to verify. To change several different terms, run the tool once per term: replace the first pair, then edit the Find and Replace fields and press Replace again on the updated text.

Does the tool support regular expressions or wildcards?

No. It matches your find term as literal text and automatically escapes special characters, so a dot matches a dot and an asterisk matches an asterisk. This avoids surprise matches and makes the tool predictable for non-technical users who just want a plain word swap.

Is there a limit on how much text I can paste?

There is no fixed character limit because the work runs locally on your own device rather than a server. Very large documents depend on your browser and computer memory, but ordinary articles, essays, code files, and transcripts process instantly.

How is this different from find and replace in Word or Google Docs?

The result is the same, but this tool is faster to reach and more private. There is no document to open and no account to sign into, and because the text stays in your browser it is never synced to the cloud. Word and Docs are better when you also need to keep the formatting of a live document.

Sources