482+ free calculators — no sign-up, no ads, no paywalls. Browse all tools →
Start typing to search...
Online Text Tool

Find and Replace Text Online

Find words, phrases, or regular expressions in any text. Replace one match or all occurrences, review the results, then copy or download your edited text.

Case-sensitive Whole words Regex support

Make bulk text edits confidently

Correct repeated typos, rename terms, remove phrases and edit plain text in your browser.

Free Find and Replace Text Tool

Paste your text, enter a search term, and choose the replacement options.

Original Text

Regex uses JavaScript syntax. Capturing groups such as $1 work in regex mode. Max text length: 1,000,000 characters.

Edited Text

Replacement is processed in your browser. Text is not submitted to this PHP page for processing.
0Matches found
0Replacements made
0Input characters
0Output characters

Why Use a Find and Replace Text Tool?

Edit repeated text accurately without searching every occurrence manually.

Find exact words

Case-sensitive and whole-word options help control which phrases are changed.

Regex replacements

Use regular expressions and capture groups for advanced editing patterns.

Copy or download

Review the edited text, copy it instantly, or save the output as a TXT file.

How to Find and Replace Text Online

Paste your content into the original text box, enter a word or pattern in Find, and type the replacement. Choose whether to match uppercase letters, whole words or regex expressions. Click Replace All or Replace First and review the output before copying or downloading it.

Case-Sensitive and Whole-Word Matching

Case-sensitive matching distinguishes Apple from apple. Whole-word matching can replace cat without altering category. For advanced patterns, enable regex to match numbers or optional spellings.

Advanced Regex Find and Replace

Regex mode uses JavaScript regular expressions. For example, find (\d+)-(\d+) and replace with $2-$1 to swap number groups. Invalid regex patterns show an error without changing the result.

Related Text Tools

Need structured data tools too? Use our JSON Formatter, JSON Validator, and Base64 Encoder.

Find and Replace Text FAQs

Can I replace every occurrence in one click?

Yes. Replace All changes each matched occurrence in the pasted text, while Replace First changes only one match.

Can I replace a word with nothing?

Yes. Leave the Replace with field blank to remove matching text.

Does this tool support regular expressions?

Yes. Enable regex mode to use patterns and captured groups such as $1.

Does the tool upload my text?

No. All text replacement calculations take place in your browser using JavaScript.

What happens if I enter invalid regex?

The tool shows an error message and leaves your current result unchanged.