About this tool
Bulk find and replace with optional regex support.
The Find & Replace tool works like a powerful text editor's search function. Enter a search string or a JavaScript regular expression, type your replacement, and apply it to the entire text at once. Supports global replacement, case-sensitive mode, and full regex syntax including capture groups referenced with $1, $2 in the replacement.
Example
Text: "cat cat cat" · Find: cat · Replace: dog → Result: "dog dog dog" (3 replaced)
How to use
- Paste your text in the main area.
- Enter the search term or regex pattern.
- Enter the replacement text.
- Click Replace All or Replace First.
Features
- Plain text and regex search
- Global and single replace
- Case-sensitive toggle
- Capture group support ($1, $2 …)
- Undo available
Frequently Asked Questions
What regex syntax is supported?+
JavaScript (ECMAScript) regex — the same flavour as Chrome DevTools. Supports lookahead, lookbehind, capture groups and all standard quantifiers.
How do I reference a capture group?+
Use $1, $2, etc. in the replacement field to insert captured group values.
Does it replace all occurrences?+
Use Replace All to change every occurrence. Replace First changes only the first match.
Is there a text size limit?+
No practical limit. The tool handles large text blocks efficiently in the browser.
Does the regex support lookahead?+
Yes. JavaScript lookahead ((?=...)) and lookbehind ((?<=...)) are supported in all modern browsers.
Can I use it to strip HTML tags?+
Yes. Use the regex <[^>]*> with an empty replacement field to remove all HTML tags from the text.