Find & Replace
Apply an ordered chain of literal or regular-expression replacements.
Enter text to get started.
How to use Find & Replace
- Paste or type your input. You can also load the example below.
- Adjust the available options. Results update after you finish typing; for very large inputs, select Run.
- Review the result, then copy it or download it to your device.
How this tool works
Rules run in order. Literal replacement keeps dollar signs as typed; regex mode supports JavaScript capture references. Invalid patterns are skipped with a warning.
Input and output stay in the current page. Refreshing or closing the page clears them. For very large inputs, use Run to start processing; a task that takes too long is stopped so you can change the input.
Frequently asked questions
In what order are multiple replacement rules applied?
Rules run from top to bottom. Each rule receives the text produced by the previous rule, so an earlier replacement can create a match for a later one.
Can I use capture groups such as $1 in a replacement?
Yes, when regular-expression mode is enabled for that rule. Literal replacement preserves dollar signs as typed. Invalid regular expressions are skipped with a warning while other rules continue.