Tools/Text Tools/Find and Replace

Find and Replace Text Free Online

Find and replace words, phrases, and repeated text blocks instantly in your browser.

If this tool isn’t working as expected, please take a screenshot of the error and report the problem here so we can investigate and improve it.

About this tool

Find and replace in text editors works on open files, but when text is in an email, a web form, or copied from a source, you need an independent replacement tool. This tool works on any pasted text: type what you're searching for in Find, type the replacement, and every occurrence updates instantly - the Matches Found counter shows exactly how many replacements were made.

Matching is plain literal text, not a pattern language - special characters like $, ., or * in your Find field are searched for exactly as typed, with no escaping needed. Match Case toggles between case-insensitive (default) and case-sensitive matching.

There's no whole-word option, so "cat" also matches inside "category" - see Limitations for exactly how that plays out and what to use instead if you need pattern-based matching.

A find and replace tool that performs bulk text substitution - replacing every occurrence of a word or phrase in pasted text with the replacement you specify - saving time on repetitive editing tasks that would otherwise require manual find-and-replace in a document editor.

How to Use Find and Replace

Paste Text

Add the text block you want to update.

Find Terms

Enter the word or phrase you want to search for in the text.

Replace Matches

Add the replacement text and generate the updated output instantly.

Copy or Download

Copy the updated text or download it as a text file.

Common Workflows

Paste Your Text

Add the text block you want to edit.

Type What to Find

Enter the exact text to search for - no pattern syntax, just literal text.

Type the Replacement

Enter what should replace each match; the Updated Text box and Matches Found count update instantly.

Copy or Download

Copy the updated text or download it as a .txt file.

Best For

  • Replaces every occurrence of a word or phrase in pasted text with your specified replacement, and shows a live Matches Found count.
  • Matching is plain literal text - no regex syntax, no escaping needed for special characters like $ or . - and works correctly on any language or script, not just English.
  • Match Case toggle switches between case-insensitive (default) and case-sensitive matching. No login, no signup.

Examples

Substring matching: "cat" replaces inside "category" too

Input

"The category is broad. My cat is fluffy." - Find: "cat", Replace with: "dog"

Result

"The dogegory is broad. My dog is fluffy." - Matches Found: 2

There's no whole-word option, so "cat" matches the letters "cat" wherever they appear, including inside "category" - producing "dogegory." Make your Find text more specific (like "cat " with a trailing space, or "cat.") if you only want to match the standalone word.

A genuine gotcha: "$&" in the Replace field means "the matched text," not literal "$&"

Input

"hello world" - Find: "world", Replace with: "[$&]"

Result

"hello [world]"

The Replace field isn't purely literal: JavaScript's text-replacement engine treats "$&" as "insert the matched text" even though there's no pattern syntax in the Find field. This is a genuine edge case - if you need the replacement to literally contain "$&", type a "$" twice ("$$&") to get a literal "$&" in the output.

Use Cases

Renaming a term across copied marketing copy

Update a product or brand name everywhere it appears in pasted content.

Standardizing terminology before importing pasted content

Replace inconsistent terms with one standard version across a block of text.

Fixing a repeated typo in a large block of imported text

Correct the same mistake everywhere at once instead of scanning manually.

Cleaning up repeated headers from concatenated CSV exports

Strip a repeated header row that appears throughout a merged export.

Common Mistakes

Problem

Expecting regex or wildcard pattern support

Solution

There isn't any. The Find field matches literal text only - characters like $, ., *, and ? are searched for exactly as typed, not treated as pattern syntax.

Problem

Assuming it only matches whole words

Solution

It doesn't. "cat" matches the letters "cat" anywhere they appear, including inside "category" - there's no whole-word-only option.

Problem

Typing "$&", "$$", or similar sequences in the Replace field expecting literal text

Solution

These specific sequences have special meaning in the replacement ("$&" inserts the matched text, for example) - type "$$" to get a literal dollar sign in your output.

Problem

Expecting the Find field to need escaping

Solution

It doesn't - unlike a regex tool, you can type special characters like $1.99 directly and they're matched literally, with no backslashes needed.

Tips & Best Practices

Add surrounding characters to avoid substring matches

If "cat" is matching inside words like "category," search for " cat " (with spaces) or include punctuation to narrow the match.

Use Regex Tester for pattern-based find and replace

If you need wildcards, character classes, or capture groups, this tool won't do it - use the site's Regex Tester for pattern matching instead.

Verify your edit with Text Compare

Paste the original and updated text into Text Compare afterward to see exactly which lines changed.

Turn on Match Case for code or identifiers

Case-sensitive matching prevents accidentally replacing a differently-cased variable or term.

Limitations

No regex or pattern matching

The Find field is matched as literal text only - there's no support for wildcards, character classes, or capture groups.

No whole-word option

Matching is substring-based - "cat" matches inside "category," "concatenate," and similar words.

The Replace field recognizes a few special sequences

"$&" (matched text) and "$$" (literal $), among others, have special meaning in the replacement, even though the Find field has no pattern syntax - a genuine edge case worth knowing about.

No multi-pair batch replacement

Only one Find/Replace pair can be applied at a time - there's no way to queue up several different replacements in one pass.

No case-preservation on replacement

The replacement text is inserted exactly as typed, regardless of the matched text's original casing - replacing "Cat" with "dog" won't capitalize to "Dog."

Comparisons

This Tool vs. the Site's Regex Tester

Both work with text patterns, but only one actually matches patterns.

This Tool (Find and Replace)Regex Tester
MatchingLiteral text only - no pattern syntaxFull regular-expression pattern matching
Whole-word / boundariesNot supported - substring matching onlySupported via regex word-boundary syntax (\b)
Best forStraightforward renames and typo fixes in pasted textPattern-based extraction, validation, or complex replacements

Which should you use?

Use this tool for a fast, literal find-and-replace on pasted text; use the Regex Tester when you need pattern matching, whole-word boundaries, or capture groups.

FAQs

The most common question is whether this supports regex or pattern matching - it doesn't. Find and Replace matches your Find text literally, character for character, so special characters like $ or . don't need escaping and won't be interpreted as patterns. The FAQ below covers this in detail, along with the substring-matching behavior ("cat" matches inside "category") and one genuine gotcha in the Replace field itself.

Does this support regular expressions (regex)?

No. The Find field matches literal text only - special characters like $, ., and * are searched for exactly as typed, not interpreted as pattern syntax. Use the site's Regex Tester if you need pattern matching.

Will it replace "cat" inside "category"?

Yes. There's no whole-word option, so matching is substring-based - "cat" matches the letters "cat" wherever they appear, including inside longer words.

Do I need to escape special characters like $ or .?

No. Type them exactly as you want to search for them in the Find field - no escaping is needed.

Why did typing "$&" in the Replace field insert my matched text instead of "$&"?

The Replace field recognizes a few special sequences from JavaScript's text-replacement engine - "$&" means "the matched text." Type "$$&" if you need a literal "$&" in your output.

Is my text uploaded anywhere?

No. CoditTools's find and replace tool runs entirely in your browser - your text is never sent to any server.

Get more tools like this

Leave your email so we can prioritize similar tools and updates.

Trending Tools

Trending tools will appear as visitors explore the catalog.

Recently Used

Your recently visited tools will show up here.