Match case
Only replaces text that matches the exact capitalization you typed. With it off, 'Cat', 'cat', and 'CAT' all count as a match. Turn it on when case matters, like variable names or codes.
Cat cat CATAfterdog cat CATPaste any text and swap every copy of a word or phrase for something else in one click. Match case, replace whole words only, or use a regular expression for advanced patterns. Everything runs in your browser, so your text stays on your device.
Find and replace searches your text for a word or phrase and swaps every copy of it for new text at once. It's the quick way to rename a term across a whole document, fix a repeated typo, or update a link without scrolling through the text by hand. You can match case, limit the change to whole words, or use a regular expression for more advanced patterns, all in one pass.
Only replaces text that matches the exact capitalization you typed. With it off, 'Cat', 'cat', and 'CAT' all count as a match. Turn it on when case matters, like variable names or codes.
Cat cat CATAfterdog cat CATOnly replaces the text when it stands on its own as a full word, not when it sits inside a longer word. So finding 'cat' changes 'cat' but leaves 'category' alone.
cat category catsAfterdog category catsTreats the find field as a regular expression for advanced patterns, like matching digits with \d+ or any of several words. You can use $1, $2 in the replace field to reuse captured groups.
id-12 id-34Afterid-** id-**Each example above finds "cat" and replaces it with "dog" so you can see how the option changes the result.
Turn on Regular expression, then copy a pattern into the Find box and the replacement into the Replace box. Each one below was tested in this tool.
| To do this | Find | Replace with | Example result |
|---|---|---|---|
| Swap “Last, First” to “First Last” | (\w+), (\w+) | $2 $1 | Lee, Jordan → Jordan Lee |
| Change 2026-09-26 to 26/09/2026 | (\d{4})-(\d{2})-(\d{2}) | $3/$2/$1 | 26/09/2026 |
| Remove HTML tags | <[^>]+> | (leave empty) | <b>Hi</b> → Hi |
| Remove text in brackets | \s*\([^)]*\) | (leave empty) | Paris (France) → Paris |
| Squeeze repeated spaces | two spaces, then + | one space | Double spaces become single |
| Join lines with commas | \n | , | red, green, blue |
| Hide every number | \d+ | # | Order 1234 → Order # |
A few characters have a special meaning in patterns: . * + ? ( ) [ ] \ | ^ $. To search for one of them as plain text, put a backslash in front, like \. for a full stop, or just turn Regular expression off.
Swapping text in bulk saves time whenever the same word appears again and again. Here are the most common reasons people use a find and replace tool: