Skip to content

Find and Replace

Find and replace text, with whole-word, case-sensitive and regular expression options.

Leave empty to delete the matches.

Runs in your browser — nothing you enter is sent to a server.

How the Find and Replace works

Paste your text, type what to find and what to put instead. The result updates as you type and shows how many replacements were made. By default the search ignores case and matches anywhere; tick Whole words only so “cat” doesn't change “catalog”.

Tick Regular expression for patterns: \d+ for numbers, \s+ for runs of spaces, and $1, $2 in the replacement to reuse captured groups. Without it, every character is matched literally.

Formula

a match counts only when no letter, digit or underscore touches it on either side

This works for accented and non-Latin letters too.

Examples

Whole words

Replace cat with dog in “cat catalog cat.” → dog catalog dog. (2 replacements)

Reformat dates with a regular expression

Find (\d{4})-(\d{2})-(\d{2}), replace with $3/$2/$1: 2026-09-29 → 29/09/2026

Frequently asked questions

How do I delete every match?

Leave Replace with empty.

How do I insert a dollar sign in a regex replacement?

Write $$. For example, replacing \d+ with $$$& turns 5 into $5.

Can I undo a replacement?

Your original text stays in the input box until you choose Use result as input, so you can adjust and try again.

Whitespace Cleaner

Remove extra spaces, tabs and blank lines, fix non-breaking spaces and join broken lines from PDFs.

Text Tools

Remove Duplicate Lines

Delete repeated lines from a list, keeping the first occurrence and the original order.

Text Tools

Text Difference Checker

Compare two texts and highlight what was added, removed or changed, line by line or word by word.

Text Tools

Also in Tools for Writers.