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)

    Options
    Match

    • 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

    1. Paste your text into Text.
    2. Enter Find and Replace with for each rule. Click Add a rule for more rules.
    3. Under Options, choose Match case or Regular expression, and choose Anywhere, Whole words or Whole lines under Match.
    4. 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.

    Contact