Toolsky

Free Online Tools & Utilities for Every Task.

Text Replacer

Replace any string occurences in text.

Every long document hides the same small error dozens of times: a product name spelled two ways, an old price code that should have been updated, a placeholder like [NAME] waiting to be filled in. Fixing each occurrence by hand means scrolling, hunting, and inevitably missing one. A text replacer does the whole job in a single pass — you tell it what to find and what to put in its place, and every matching occurrence in your text is swapped at once.

What the Text Replacer Is For

The tool performs a straightforward find-and-replace across a block of text. You paste in the text, enter the string you want to remove, enter its replacement, and the tool rewrites every exact match. It is the same operation word processors have offered for decades, stripped down to the essentials and available without opening a heavy application — useful for cleaning exported data, updating templates, standardising terminology across a draft, or stripping out a repeated token entirely by replacing it with nothing.

Because the matching is literal, the tool is predictable: it finds character-for-character matches of your search string. That predictability is what makes it safe for bulk edits, provided you choose your search string with a little care.

Features of the Text Replacer

  • Replace every occurrence: all matches in the text are swapped in one operation, not just the first one found.
  • Works on any pasted text: articles, lists, exported CSV rows, code snippets, email drafts, and template files.
  • Delete by replacing: leave the replacement empty to remove a repeated string from the whole text.
  • Multi-word phrases: the search string can be a full phrase, not only a single word.
  • Instant result: the edited text is produced immediately, ready to copy back into your document.

How to Replace Text in a Few Steps

  1. Paste the full text you want to edit into the input area.
  2. Type the exact word or phrase you want to find in the search field.
  3. Type the replacement text — or leave it blank if you want the matches deleted.
  4. Run the replacement and let the tool rewrite every occurrence.
  5. Read through the result, or search it for the old string, to confirm nothing was missed.
  6. Copy the finished text back into your document or system.

Example: Updating a Price List

Imagine an exported price list that reads: "USB Cable — USD 9, HDMI Adapter — USD 14, Laptop Stand — USD 32." Your store now displays prices with the dollar sign instead. Search for USD and replace it with $, and the output becomes "USB Cable — $ 9, HDMI Adapter — $ 14, Laptop Stand — $ 32" — three occurrences fixed in one action, with no risk of updating two and forgetting the third. The same pattern works for swapping an old brand name for a new one across a product catalogue, replacing a placeholder token such as {{CITY}} throughout an email template, or removing a repeated tracking code from a block of links. For broader tidy-ups after replacing, the text cleaner can strip extra spaces and stray formatting from the result.

The same technique rescues documents built from templates. A mail-merge draft might contain tokens such as {{FIRST_NAME}}, {{ORDER_ID}}, and {{DELIVERY_DATE}}; run the replacer once per token with the real customer's details and the generic template becomes a finished, personalised message. Chaining a few deliberate replacements like this is often faster than editing the document by hand, because every occurrence of each token is guaranteed to be caught, including the one hiding in the footer that manual editing always seems to miss.

Tips, Limitations and Common Mistakes

The classic trap is the partial-word match. Replace "art" with "craft" and you will also turn "start" into "stcraft" and "party" into "pcrafty", because the tool matches the letters wherever they appear. Guard against this by searching for longer, more specific strings — include a surrounding space or punctuation where you can, such as " art " instead of "art". A second caution: matching is literal, so check the exact form of your search string, including capitalisation; if your document mixes "Email" and "email", run the replacement once for each variant, or normalise the text first with a case converter. Third, keep a copy of the original text until you have reviewed the output — bulk edits are fast precisely because they touch everything, and a quick read-through catches the one context where the replacement reads wrongly. Finally, if you need pattern-based replacements, such as swapping anything that looks like a date, that is regular-expression territory; experiment in a regex tester rather than forcing a literal tool to guess.

Frequently Asked Questions

Does it replace all occurrences or just the first one?

All of them. Every exact match of your search string in the pasted text is replaced in a single run, which is the point of using it for bulk edits.

Can I delete a word everywhere by replacing it?

Yes. Enter the word as the search string and leave the replacement field empty. Watch out for doubled spaces left behind where the word used to sit.

Is the search case-sensitive?

The replacement works on exact matches, so treat it as case-sensitive: "Apple" and "apple" are different strings. Run the tool once per variant if your text mixes cases.

Can I replace a phrase, not just a single word?

Absolutely. The find field accepts multi-word phrases, punctuation, and symbols, as long as they appear in the text exactly as you typed them.

What happens if the replacement contains the search string?

The tool makes one pass over the original text, so it will not loop forever. Still, avoid replacements that reintroduce the search term, as the result can confuse later edits.

Will it work on code and HTML?

Yes — it operates on plain text, so renaming a CSS class, a variable, or an HTML attribute value across a pasted snippet works the same as editing prose.

Is there a way to undo a replacement?

There is no built-in undo once you discard the input, so keep your original text in a separate tab or document until you have checked the result.

Making Bulk Edits Without the Hunt

Find-and-replace is one of those operations that feels minor until you are forty minutes into manually fixing the same word. Give the replacer a well-chosen search string, review the output once, and a tedious editing pass becomes a ten-second task.