Find and replace text

    Replace words in text, with case, whole-word and regex options.

    Your text stays on this device

    About the Find and Replace tool

    This find and replace tool changes a word or phrase everywhere in a text at once and shows how many matches were replaced. Options: Match case, Whole words only (replace "cat" but not "catalog") and Use regular expression, with groups like $1 in the replacement. Whole-word matching works for Hindi words too. For example, replacing "Delhi" with "Mumbai" in the built-in example changes 3 matches. Use it to update a name, date or amount across a letter.

    At a glance

    Options
    Match case, whole words only, regular expressions
    Regex
    JavaScript syntax with Unicode support; $1-style groups in the replacement
    Output
    Number of replacements shown; copy or download result.txt
    Price
    Free, no sign-up
    Works in
    Your browser, on phone or computer. Works offline after the first visit.
    Privacy
    What you type never leaves your device.

    How to find and replace

    1. Paste your text.
    2. Type what to find and what to replace it with.
    3. Set the options, then copy or download the result.

    Private

    Your text stays in your browser and is never sent to a server.

    Instant

    Results update as you type, with nothing to install.

    Free

    No sign-up, no limits and no ads inside your writing space.

    Find and Replace: frequently asked questions

    What does "Whole words only" do?

    It replaces "cat" but leaves "catalog" alone.

    Can I use regular expressions?

    Yes. Turn on "Use regular expression"; you can use groups like $1 in the replacement.

    How do I swap first and last names in a list?

    Turn on "Use regular expression", find (\w+) (\w+) and replace with $2 $1. In a list with one two-word name per line, "Asha Rao" becomes "Rao Asha" and "Ravi Kumar" becomes "Kumar Ravi", and the note shows "2 replaced".

    Is my text sent anywhere?

    No. Everything runs in your browser and your text never leaves your device. Nothing is stored on any server.