Find and Replace Text Online

Replace words, phrases or patterns across any text in one go. Add several rules at once, match whole words, keep the original capitalization, or use regular expressions for advanced edits.

  • Multiple rules at once
  • Whole words & case options
  • Regex supported

How to use the Find and Replace tool

  1. Paste your textPut the text you want to edit in the top box.
  2. Add find & replace rulesType what to find and what to replace it with. Click “Add another rule” to do several replacements at once.
  3. Choose optionsMatch case, whole words only, keep capitalization, or switch on regular expressions.
  4. Copy the resultEach rule shows how many replacements it made. Copy or download the finished text.

Features

  • Batch replacementsRun any number of rules in order, perfect for renaming several terms in a document.
  • Whole-word matchingReplace “cat” without touching “category” or “concatenate”.
  • Smart capitalizationOrder → Purchase and ORDER → PURCHASE are handled automatically.
  • Regular expressionsUse patterns and capture groups ($1, $2) for advanced find and replace.
  • Line breaks & tabsType \n for a new line or \t for a tab in the find or replace fields.

When to use find and replace

  • Update names and terms: rename a product, a company or a person across an entire document.
  • Fix repeated mistakes: correct a misspelled word everywhere at once.
  • Clean data: replace semicolons with commas, remove extra characters or standardize date formats.
  • Prepare text for code: wrap lines, change quotes or turn line breaks into commas.
  • Edit templates: fill placeholders like {name} and {date} with real values.

Useful options

OptionWhat it doesExample
Match caseOnly replaces text with exactly the same capitalsReplaces “Apple” but not “apple”
Whole words onlyIgnores matches inside longer words“art” doesn’t change “start”
Keep capitalizationCopies the capitals of the found textOrder → Purchase, ORDER → PURCHASE
\n and \tRepresent a line break and a tabReplace “, ” with “\n” to put each item on its own line

Using regular expressions

Turn on regular expressions to match patterns instead of fixed text. A few handy examples:

  • \s+ → a single space: collapses multiple spaces and line breaks.
  • (\d{2})/(\d{2})/(\d{4}) → $3-$2-$1: turns 31/12/2026 into 2026-12-31.
  • ^ → - : adds a dash at the start of every line (^ and $ match each line).
  • <[^>]+> → nothing: strips simple HTML tags.

Rules are applied from top to bottom, and each rule works on the result of the previous one. Test complex patterns first in the Regex Tester, and compare the before and after with the Text Diff Checker.

Frequently asked questions

How do I replace a word in a whole text?
Paste the text, type the word in “Find” and the new word in “Replace with”. Every occurrence is replaced instantly.
Can I make several replacements at once?
Yes. Click “Add another rule” for each replacement. Rules run from top to bottom.
How do I replace text with a line break?
Type \n in the “Replace with” field. Make sure “\n = new line” is ticked.
Can I use regular expressions?
Yes. Tick “Use regular expressions” to use JavaScript regex syntax, including $1 and $2 for captured groups.
Is my text stored anywhere?
No. Everything happens in your browser and nothing is uploaded or saved.