How to use the Find and Replace Text
- Paste your text in the Input box, drop a file on it, or click "Example" to try it.
- Adjust the options (find, replace with, use regular expression, case sensitive) to fit your needs.
- The output updates instantly as you type.
- Click Copy or Download. Use "Use as input" to chain another operation.
About this tool
Find and replace words or patterns in text, with optional regular expressions, case sensitivity and whole-word matching. It is part of the free Text Tools collection on Online Tools Harbor. Everything happens locally in your browser, so it is fast and private.
Frequently asked questions
Can I use capture groups?
Yes. Tick "Use regular expression" and reference groups with $1, $2… in the replacement. Use \n for a new line.
Can I replace with nothing?
Yes, leave "Replace with" empty to delete every match.
Is the Find and Replace Text free?
Yes. The Find and Replace Text is completely free to use, with no sign-up and no limits on normal use.
Is my data safe?
Yes. This tool runs entirely in your web browser using JavaScript. Your text is never uploaded to our servers.
Is there a size limit?
There is no fixed limit: it depends on your device. Several megabytes of text are processed in a fraction of a second on most computers.
Does it work on mobile?
Yes, it works in any modern browser on phones, tablets and computers. No app to install.