Find and Replace
Replace text with another string. Optional case-insensitive and whole-word matching. Browser-only.
0 replacements
About Find and Replace
Find and replace performs a literal string replacement across your input. Toggle case sensitivity if you only want exact-case matches, and toggle whole-word mode to avoid matching substrings inside larger words (so 'cat' won't match inside 'category'). All matches are replaced in one pass.
When to use it
- Renaming a variable, term, or label everywhere in a document
- Bulk-fixing a recurring typo
- Swapping placeholders for real values in a template
- Cleaning up boilerplate text from copied snippets
How it works
The find pattern is escaped to its literal form, optionally wrapped in word boundaries (\b...\b) when whole-word is enabled, and applied globally. Case-insensitive mode uses the regex i flag. The replace string is inserted verbatim — no backreferences or special characters.
Examples
Case-sensitive, default — 'Cats' isn't matched
Cats and dogs. The cat sat. find=cat, replace=fox
Cats and dogs. The fox sat.
Whole-word avoids matching inside 'Cats'
Cats and cat-like. find=cat, whole-word=on
Cats and cat-like.
Frequently asked questions
- Is the replacement literal or does it support backreferences?
- Literal. To use $1, $2 backreferences or other regex features, use the regex find-and-replace tool.
- How does whole-word matching work?
- The find pattern is wrapped in \b on both sides, so it only matches when surrounded by non-word characters (whitespace, punctuation, start/end). 'cat' will match 'cat.' and ' cat ' but not 'catfish' or 'category'.
- Is my text uploaded?
- No. The replacement runs entirely in your browser via JavaScript regex.