DataToolsLab
Text Tools

Find and Replace Tool

Find and replace text across a document, with case-sensitive and regex modes.

Loading tool…

What is Find & Replace?

The Find and Replace tool performs bulk search-and-replace across pasted text without opening a full text editor — supporting plain-text, case-sensitive, whole-word and regular-expression matching, with a live match count.

How it works

The find term is compiled into a RegExp (escaped when not in regex mode, wrapped in word boundaries for whole-word mode). The live match count updates as you type, and Replace All / Replace Next rewrite the document in place. Regex capture groups like $1 work in the replacement string.

  1. Paste your document. Any block of text — a chat export, PDF-extracted text, a draft, or config content.
  2. Enter find and replace terms. The match count updates live. Toggle case sensitivity, whole-word or regex mode as needed.
  3. Replace. Replace All rewrites every match; Replace Next steps through one at a time. Copy the result when done.

Examples

Fix a recurring typo

Replace every instance of 'teh' with 'the' across a long pasted document in one click.

Regex with capture groups

Replace pattern (\d{4}) with '$1-' to reformat year groups, using $1 to reuse the captured digits.

Common mistakes

Regex metacharacters in plain mode

Plain-text mode escapes regex characters automatically — a literal 'a.b' matches 'a.b', not 'aXb'.

Invalid regex patterns

A malformed pattern (e.g. an unmatched '(') shows a clear error instead of silently failing.

Alternatives

Text Diff Checker

To review what changed before and after an edit.

Regex Tester

For experimenting with complex patterns before applying them (coming soon).

Frequently asked questions

Does regex mode support capture groups?

Yes — the replacement string supports $1, $2, etc. to reference captured groups, and $& for the whole match.

Is my document uploaded?

No. All matching and replacement happens locally in your browser.

Online