Find and replace

Replace words or phrases throughout any text. Keep capitals so Cat becomes Dog, match whole words only, run several replacements at once, or use regular expressions.

    Your text
    Result
    Type what to find and what to replace it with

    Examples

    WhatBeforeAfter
    Keep capitalsFind cat, replace with dogCat, cat and CATDog, dog and DOG
    Whole words onlyFind cat, replace with dogcat and concatenatedog and concatenate
    Line breaksFind \n, replace with a comma and a spaceone↵two↵threeone, two, three
    Regex: swap date orderFind (\d+)-(\d+)-(\d+), replace with $3/$2/$12026-11-1414/11/2026
    Regex: remove double spacesFind {2,} (a space, then {2,}), replace with one spacetoo many spacestoo many spaces

    Options

    • Keep capitals (on by default) copies the capitals of each match: lower case, a capital first letter, or all capitals.
    • Whole words only skips matches inside longer words.
    • Match case finds only text with exactly the same capitals.
    • Regular expression treats Find as a pattern. Use $1, $2 or $<name> in Replace for the groups, and $& for the whole match. To build and test a pattern first, use the regex tester.

    Matches are highlighted in your text as you type, and each rule shows how many it found.

    Several replacements at once

    Add a rule for each word you want to change, such as a list of product names or terms in a style guide. They run from top to bottom on the result of the one before, so put longer phrases above shorter ones that overlap with them.

    Questions people ask

    How do I replace a word everywhere except inside other words?
    Tick Whole words only. Then replacing “cat” changes cat, Cat and CAT but leaves “concatenate” and “category” alone.
    What does Keep capitals do?
    It copies the capitals of each match onto the replacement. Replacing “colour” with “shade” turns Colour into Shade and COLOUR into SHADE, so sentence starts and headings stay right.
    Can I replace several words at once?
    Yes. Use Add another for each pair. The rules run in order, top to bottom, so a later rule can change what an earlier one put in.
    How do I replace line breaks?
    Type \n in the Find box for a line break, or \t for a tab. For example, find \n and replace with a comma and a space to turn a list into one line.
    Is my text saved anywhere?
    No. Everything runs in your browser. Your text and rules are kept in this browser tab only so a refresh doesn’t lose them, and they’re never put in the page address.
    ↑↓ move↵ openesc close