Most editors have find and replace, but not every place you write does: web forms, CMS fields, chat apps, or a block of exported data. This tool gives you a full-featured replace in any browser, including regular expressions for jobs that plain search can’t do.
Typical jobs
- Style fixes: change British to American spelling, or a product’s old name to its new one.
- Data clean-up: reformat dates from 2026-11-20 to 20/11/2026 with one regex.
- Anonymising: replace email addresses or phone numbers with placeholders before sharing a document.
- Code edits: rename a variable across a snippet with whole-word matching.
Because the result updates as you type, you can refine a pattern and watch the count change before copying anything.
How to use the Find and Replace
- Paste your text into the left box.
- Type what to look for in Find and the new text in Replace with.
- Tick Whole words only to avoid changing parts of longer words, and Match case if capitals matter.
- For patterns, tick Regular expression and use
$1,$2or$<name>to reuse matched parts. - Check the replacement count, then copy or download the result.
Features
- Plain mode treats every character literally, so dots and brackets just work.
- Regex mode uses JavaScript regular expressions with Unicode support and multiline anchors (^ and $ match at each line).
- Whole-word matching that works with accented letters, not just A–Z.
- Live preview and a count of how many replacements were made.
- Invalid patterns show a clear error instead of silently doing nothing.
Frequently asked questions
How do I swap the order of words with a regular expression?
Capture each part in brackets and reorder them in the replacement. For example, find (\w+), (\w+) and replace with $2 $1 to turn “Smith, Anna” into “Anna Smith”.
Why did replacing “cat” also change “category”?
By default the tool replaces every match, including inside longer words. Tick Whole words only and “category” will be left alone.
How do I replace line breaks?
Turn on Regular expression and search for \n. To join lines with a comma, replace \n with “, ”. The Remove Line Breaks tool is simpler for most clean-ups.
Which regex syntax is supported?
JavaScript (ECMAScript) syntax, including lookahead, lookbehind, named groups like (?<year>\d{4}) and Unicode classes like \p{L}. The u and m flags are always on.
Written by Dewan Razib