Find & Replace
Bulk Find and Replace Text (Multiple Rules, Regex)
Replace several words in one go. Add as many “find → replace” rules as you need; they are applied from top to bottom. The result and the number of replacements update as you type. Your text never leaves this page.
Replacement rules (applied from top to bottom)
- Rules are applied in order, so a later rule also sees the changes made by earlier rules.
- Regular expressions use JavaScript syntax with the g, m and u flags (^ and $ match at each line). In the replacement you can use $1, $<name> and $& for the match, $$ for a dollar sign, and \n and \t for a line break and a tab.
- “Whole words” matches only when the text is not next to another letter or digit. It is meant for English; Japanese text has no spaces between words.
- “Whole lines” replaces only lines that consist of the search text alone.
About this tool
Replace words in a text using as many find-and-replace rules as you need, all at once. Rules are applied from top to bottom, and the number of replacements for each rule and in total is shown. Options include match case, regular expressions with $1 backreferences, and whole-word or whole-line matching. Your text is processed in your browser and never sent.
How to use
- Paste your text into Text.
- Enter Find and Replace with for each rule. Click Add a rule for more rules.
- Under Options, choose Match case or Regular expression, and choose Anywhere, Whole words or Whole lines under Match.
- Check the Result and the counts, then click Copy result. Use Use result as text to keep replacing.
Useful for
- Changing a company or product name throughout a document
- Making inconsistent spellings consistent in one pass
- Updating old URLs or prices in a draft
- Reordering date formats with regular expressions
FAQ
Can I replace several words at once?
Yes. Add as many rules as you need. They run from top to bottom, and each rule works on the result of the previous ones.
How do I delete a word?
Leave Replace with empty, and every match is removed.
Can I replace line breaks?
Yes, with Regular expression on. Use \n in Find, and \n or \t in Replace with for a line break or tab.
Is my text sent anywhere?
No. Replacement happens entirely in your browser.
Updates to this tool
All updatesReleased 19 new tools, including find and replace, date and business-day calculators, a tsubo/m² converter, image cropping, transparent PNGs, .htaccess redirects, robots.txt and a timer, for 44 tools in total
Other free tools
All 183 free tools- Character CounterCount characters, lines and words, and compare with limits for search results and social media.
- Japanese Proofreading CheckerCheck Japanese text for spelling variations, keigo errors, long sentences and common misuse.
- Full-width / Half-width ConverterConvert Japanese full-width and half-width letters, numbers, kana and spaces.
- Text DiffCompare two texts and highlight what was added or removed.
- List Cleaner (Dedupe and Sort)Remove duplicates and blank lines from a list and sort it.
- Hiragana / Katakana ConverterConvert hiragana and katakana, or half-width and full-width kana, with voicing marks handled correctly.
- Furigana GeneratorAdd furigana to kanji automatically. Ruby, brackets, hiragana, katakana or romaji.
- Text to SpeechRead text aloud in Japanese, English and more, with adjustable speed and pitch and sentence highlighting.