ToolBark
Text

Find and Replace Text

Find and replace text with optional regex.

About

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.

FAQ
How do I replace all occurrences, not just the first one?+

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.

Can I use regular expressions for advanced find and replace?+

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.

How do I delete text without replacing it with anything?+

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.

Does case-insensitive mode work with regex too?+

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.

Related tools