Find and Replace Text
Paste text, type what to find and what to replace it with, and see the result update live with a match count. Switch on regular expressions for advanced patterns — all in your browser.
How to find and replace
- Paste your text into the box.
- Enter the text to find and its replacement; enable Regex or case-insensitive if needed.
- Copy the replaced result.
About find and replace
Find-and-replace is the quickest way to make the same edit everywhere — fix a recurring typo, swap a name, update a URL or reformat a list. The live match count tells you how many replacements were made before you copy.
Turn on regular expressions for pattern matching — for example replacing all digits, collapsing whitespace, or reordering with capture groups like $1 and $2. With Regex off, your search text is matched literally. It all runs locally with nothing uploaded.
Repetitive edits show up everywhere: renaming a variable across a snippet, swapping a placeholder like NAME in a mail-merge template, changing a date format in an exported list, or stripping a prefix from hundreds of lines. For bigger clean-ups, work in passes — make one replacement, copy the result, paste it back as the new input and run the next. Chaining simple replacements is often clearer than building one complicated pattern.
Two habits prevent most regex accidents. First, remember that characters like the dot, plus, question mark and parentheses carry special meaning in a pattern — a dot matches any character, not just a full stop — so escape them with a backslash when you mean them literally. Second, test the pattern on a short sample of your text and watch the match count before running it over the whole thing; an unexpected count is the earliest warning that the pattern is matching more, or less, than you intended.
Frequently asked questions
Does it support regular expressions?
Yes. Turn on Regex to use full JavaScript regular-expression syntax in the find field, including capture-group references like $1 in the replacement. With it off, the find text is matched literally.
Can I match without case sensitivity?
Yes — switch on case-insensitive matching and the search ignores upper/lower case, so “Cat” matches “cat” and “CAT”.
How many replacements does it make?
All of them. Every match is replaced, and the live count next to the output shows exactly how many were found and replaced.
Is my text uploaded?
No. Finding and replacing happens entirely in your browser, so your text never leaves your device.
Why does searching for a dot or bracket match the wrong text?
That happens with Regex switched on, where many punctuation characters are pattern operators — a dot means any character and brackets define groups or character sets. Either escape the character with a backslash, like \. for a literal dot, or turn Regex off so the find field is matched exactly as typed.