Find and replace text with optional regex.
Need to find and replace text across a large block of content instantly? This free find and replace tool lets you swap any word, phrase, or pattern in seconds — right in your browser, with no sign-up required. Toggle case-insensitive matching for flexible searches, or switch to regex mode for powerful pattern-based replacements. The result updates live so you can see exactly how many replacements were made before copying your text.
This tool always replaces every occurrence in your text by default — it uses a global search flag automatically, so you don't need to do anything special. All matches are replaced in one go.
Yes. Check the 'Use regex' checkbox and enter a valid JavaScript regular expression in the Find field (e.g. \bcat\b to match whole words only). If your pattern is invalid, a clear error message will appear below the options.
Simply leave the 'Replace with' field empty. Every match for your Find pattern will be removed from the text, effectively deleting it. The replacement count will still show how many deletions were made.
Yes — the 'Case insensitive' checkbox works for both plain text and regex mode. When enabled, the search treats uppercase and lowercase letters as identical, so searching for 'hello' will also match 'Hello', 'HELLO', and so on.