Find and Replace Text

Search a document for a word or regular expression and replace every match without sending the file anywhere.

Character Count: 0 | Word Count: 0 | Sentence Count: 0 | Line Count: 0

Literal search, regex, and case folding

Paste a document, enter the find string and the replacement, then run the swap in this tab. Optional regex uses JavaScript regular expressions; optional case-insensitive matching folds Latin letters. Invalid patterns surface as an error instead of silently corrupting the paste.

Bulk edits that are too small for an IDE

Use this for renaming a product across a changelog, stripping a campaign UTM fragment from many URLs, or converting “colour” to “color” in a localized snippet. For deleting a set of single characters, Character Remover is simpler. For joining PDF wraps, use Remove Line Breaks.

Catastrophic regex and privacy

Greedy patterns on a huge paste can freeze the tab—the same risk as any in-browser regex tester. There is no server-side engine and no upload. Keep a copy of the original until you confirm replacements, especially with capturing groups.

Frequently asked questions

Is the regex flavor JavaScript?

Yes. Lookbehind, flags, and Unicode property escapes follow what your browser’s JS engine supports—not PCRE or Python.

Can I replace across multiple files?

This page edits one paste at a time. Concatenate files yourself or use an editor for a project-wide rename.

Does “replace all” change overlapping matches?

Replacements are applied left to right on the current string. A replacement that reintroduces the find term will not be scanned again in the same pass.