CODDY Tool

Find and Replace Text

Replace every occurrence of a word or phrase, with whole-word, case and regex options.

Swap one word for another across a whole document in one step. Match case or ignore it, restrict to whole words so “cat” leaves “category” alone, keep each match's capitalisation, or switch to regular expressions for patterns.

Everything you enter stays in this browser tab. Nothing is sent to our servers, logged or stored.

Loading tool…

About Find and Replace Text

Most editors have find and replace, but not every place text lives does: a CMS field, a spreadsheet cell, an email draft, a chunk of exported data. Paste it here, change what needs changing, and copy it back. The result updates as you type, with a count of how many replacements were made so you know the change actually landed.

Whole-word matching is the option that prevents the classic disaster — replacing “he” with “she” and getting “tshe” and “sheaven”. With it on, a match has to stand alone, bounded by spaces, punctuation or the edge of the text, and it understands accented letters, so “café” never matches inside “cafés”.

“Keep each match's capitalisation” solves the other common annoyance. Replacing “color” with “colour” across a document should give “Colour” at the start of a sentence and “COLOUR” in a heading, not lowercase everywhere. The tool copies the shape of each original — all caps, capitalised or lowercase — onto the replacement.

How to find and replace text

  1. Paste your text

    Any length up to 200,000 characters.

  2. Type what to find and what to replace it with

    Leave the replacement empty to delete every match.

  3. Pick your options

    Match case, whole words, keep capitalisation or regular expressions.

  4. Copy the result

    Check the replacement count first — zero usually means a typo or a case mismatch.

Regular expression examples

  • Reformat dates: find (\d{4})-(\d{2})-(\d{2}), replace with $3/$2/$1 — 2026-11-14 becomes 14/11/2026.
  • Collapse repeated spaces: find [ ]{2,} and replace it with a single space.
  • Swap “Last, First” to “First Last”: find (\w+), (\w+), replace with $2 $1.
  • Delete trailing whitespace: find [ \t]+$ and replace with nothing — ^ and $ match at the start and end of every line, as in a code editor.

Plain mode is literal

With regular expressions off, every character means itself. Searching for (draft) or 1+1 finds exactly that, and a replacement such as “$5 off” is inserted as written — the dollar sign is not treated as a group reference. That is a common bug in other tools.

Frequently asked questions

Why does it say no matches when the word is clearly there?

Usually one of three things: Match case is on and the capitalisation differs, Whole words only is on and the word is part of a longer one, or the search box has a trailing space copied in by accident.

Can I replace text with nothing?

Yes. Leave Replace with empty and every match is deleted. Combined with whole-word matching, that is a quick way to strip a filler word from a draft.

How do capture groups work?

Turn on regular expressions, wrap part of the pattern in parentheses, and refer to it in the replacement as $1, $2 and so on in order. Named groups — (?<year>\d{4}) — are referred to as $<year>, and $& inserts the whole match.

Is there a size limit?

200,000 characters, roughly a 35,000-word document. The cap exists because a badly written regular expression on very long text can lock up a browser tab, and there is no way to interrupt it once it starts.

All Text Tools

Find and Replace Text is free to use with no account, no watermark and no usage limits. Last updated 14 November 2026.