Free · No sign-up
100% private · Runs in your browser
Regex & multi-pair

Find and Replace Text Online

Swap any word, phrase or regex pattern across long text — case-sensitive, whole-word and multi-pair replacements, 100% in your browser.

Replace text
Paste your text, set find/replace pairs, copy the result — instantly.
4 matches
4 total matches
155155 chars
11 lines
1 pair
Try:

What is Find and Replace?

A find and replace tool scans a block of text for every occurrence of a word, phrase or pattern and swaps it with something else. It's the fastest way to make bulk edits — updating a year across an article, normalising spellings in a report, anonymising names in a log file, or refactoring repeated strings in code — without opening a heavy editor like Microsoft Word, Google Docs or VS Code.

Modes Explained

Four matching modes you can mix freely — pick what fits the edit.

ModeWhat it doesBest for
PlainLiteral text match, case-insensitive by default.Updating a name, year or phrase.
Case-sensitiveDistinguishes "Apple" from "apple".Brand names, code identifiers.
Whole wordSkips matches inside larger words.Replacing "cat" without touching "category".
RegexFull JavaScript regular expressions with capture groups.Stripping HTML, reformatting dates, log parsing.

How to Use

  1. Paste your text into the Input box on the left.
  2. Type the word or pattern in the Find field and the replacement in Replace with.
  3. Toggle case-sensitive, whole-word or regex if you need finer control.
  4. Click Add another pair to queue multiple replacements in one pass.
  5. Copy or download the cleaned result from the output pane.

Regex Quick Reference

Character classes
  • \dAny digit (0–9)
  • \wWord character (a–z, 0–9, _)
  • \sWhitespace (space, tab, newline)
  • [abc]Any of a, b, or c
Quantifiers & anchors
  • + / * / ?One+ / zero+ / optional
  • .*?Lazy match (shortest)
  • ^ / $Start / end of line (multiline)
  • .Any character (dot-all for newline)
Groups & references
  • (abc)Capture group
  • $1, $2Reference in Replace field
  • (?:abc)Non-capturing group
  • \bWord boundary
Escapes
  • \.Literal dot
  • \( \)Literal parentheses
  • \n \tNewline / tab in Replace
  • \\Literal backslash

Use Cases

Update a year
Swap 2025 → 2026 across a long article or report in one click.
US ↔ UK spelling
Pipeline color → colour, organize → organise, favorite → favourite.
Anonymise data
Strip names and emails from chat exports or log files before sharing.
Clean HTML / markdown
Use regex like <[^>]+> to strip tags or normalise whitespace.
Refactor code snippets
Rename a variable across a snippet without opening an IDE.
Tidy pasted text
Collapse extra spaces, replace tabs, fix curly quotes in seconds.

Multi-Pair Replace

One-shot Ctrl+H is fine for a single edit but breaks down when you need ten swaps in sequence. With multi-pair mode you queue every find/replace as its own row and the tool applies them top-to-bottom in a single pass — useful for migrating terminology across a document or normalising mixed data exports.

Find and Replace vs Word, Google Docs & VS Code

FeatureThis toolWord / DocsVS Code
Opens instantlyYesNoNo
Works on any deviceYesPartialNo
Multi-pair pipelinesYesNoNo
Regex with capture groupsYesLimitedYes
No install / no accountYesNoNo

Tips & Pitfalls

  • In plain mode the Find field is taken literally — special characters like . and ( need no escaping.
  • In regex mode, escape literal dots as \. and parentheses as \(.
  • Use Whole word to avoid replacing fragments inside other words.
  • Capture groups ($1, $2) let you keep parts of the match in the replacement.
  • Quantifiers like .* are greedy; use .*? for lazy matching.

Privacy & Performance

Every replacement runs in your browser using the native JavaScript engine. No text is uploaded, logged or stored. Long documents — entire articles, log files, exported CSVs — process instantly because the work never leaves your machine.

Frequently Asked Questions