ToolNimba Browse

🔁 Find and Replace Text

By ToolNimba Editorial Team · Updated 2026-06-19

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

This find and replace tool swaps one piece of text for another across your whole document in one click. Paste your text, type what you want to find, type what it should become, and press Replace. You can replace every match at once or just the first one, ignore upper and lower case, or limit matches to whole words. Everything runs in your browser, so your text is never uploaded anywhere.

What is the Find and Replace Text?

Find and replace is one of the most common text editing jobs there is: you have a block of text and you need to change every occurrence of a word or phrase into something else. Doing it by hand is slow and error-prone, especially when the same term appears dozens of times. A find and replace tool scans the entire text and performs the swap consistently, then tells you how many changes it made so you can sanity-check the result.

The behaviour you want depends on the job. "Replace all" changes every match and is the right default for bulk edits like updating a product name throughout a page. Turning it off replaces only the first match, which is handy when you want to fix one specific spot. "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 when the term stands alone between word boundaries.

Under the hood this tool treats your find term as plain literal text, not a pattern. That matters because characters like a dot, dollar sign, or bracket have special meaning in pattern matching. The tool automatically escapes those characters, so searching for "a.b" matches the literal "a.b" and not "axb". This keeps the behaviour predictable: what you type in the Find box is exactly what gets matched, and your replacement text is inserted exactly as written.

When to use it

  • Renaming a product, brand, or person throughout a long document in one pass.
  • Cleaning up pasted text by replacing double spaces, stray characters, or curly quotes.
  • Updating URLs, file paths, or placeholder tokens across a block of code or config.
  • Swapping British spellings for American ones (or the reverse) before publishing.

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.

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

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

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/-

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.

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.

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.

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. Turn it off if you only want to change the first occurrence.

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

Tick the Case-insensitive option. With it on, a search for "color" will also match "Color" and "COLOR". Leave it off to match the exact case you typed.

What does Match whole word do?

It limits matches to standalone words, so replacing "cat" will not touch "category" or "scatter". It is useful when 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 and nothing is sent to a server.

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.